Skip to content

feat: non numeric grades for faps#1180

Merged
TCMeldrum merged 21 commits intodevelopfrom
non-numeric-grades-for-faps
Oct 22, 2025
Merged

feat: non numeric grades for faps#1180
TCMeldrum merged 21 commits intodevelopfrom
non-numeric-grades-for-faps

Conversation

@TCMeldrum
Copy link
Contributor

@TCMeldrum TCMeldrum commented Sep 11, 2025

Closes UserOfficeProject/issue-tracker#1399

Needs UserOfficeProject/user-office-lib#217

Description

Non-numeric grades have been introduced for faps. Added options the the FAP basis question to allow the user office to chose things such as max and min grade, decimal point and what other non number options they would like to set.

Motivation and Context

The change was required to allow for more flexibility and specificity in grading. It addresses the limitation of numeric grading, thereby improving the accuracy of evaluations.

Changes

  1. The database column grade in the fap_reviews table was altered to type varchar(30).
  2. The grade attribute in the Review model was changed from number to string.
  3. The setting for GRADE_PRECISION was removed from various files as it is no longer applicable.

New options on the FAP proposals basis:
image

What the user will see:

Recording.2025-10-03.113543.mp4

These changes ensure that the grading system is now capable of handling non-numeric grades and eliminates the need for grade precision settings.

How Has This Been Tested?

Fixes Jira Issue

https://jira.esss.lu.se/browse/

Depends On

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

@TCMeldrum TCMeldrum requested a review from a team as a code owner September 11, 2025 11:25
@TCMeldrum TCMeldrum requested review from mehta-pooja123 and removed request for a team September 11, 2025 11:25
@TCMeldrum TCMeldrum changed the title Non numeric grades for faps feat: non numeric grades for faps Sep 11, 2025
@yoganandaness yoganandaness self-requested a review October 1, 2025 11:37
(
'dynamic_multiple_choice_question',
proposal_template_id_var, proposal_topic_id_var, 6, '{"variant":"dropdown", "url":"", "jsonPath":"","isMultipleSelect":true, "apiCallRequestHeaders":[],"readPermissions":[]}'
proposal_template_id_var, proposal_topic_id_var, 10, '{"variant":"dropdown", "url":"", "jsonPath":"","isMultipleSelect":true, "apiCallRequestHeaders":[],"readPermissions":[]}'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were 4 questions with sortOrder 6 meaning the templete export tests was failing as these 6 questiond could appear in the topic array in any order. IDK what about this PR made this unstable but hopefully this should make it more stable going forward

"dependencies": [],
"dependenciesOperator": "AND"
},
{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regenerated export with fixed sort orders

@TCMeldrum TCMeldrum merged commit 909dae0 into develop Oct 22, 2025
22 checks passed
@TCMeldrum TCMeldrum deleted the non-numeric-grades-for-faps branch October 22, 2025 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow for non-numeric grade for the fap score

3 participants