Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scoring function rule #33

Merged
merged 3 commits into from
Jan 29, 2025
Merged

Add scoring function rule #33

merged 3 commits into from
Jan 29, 2025

Conversation

echeng06
Copy link
Collaborator

Adds a scoring function rule required for C2F scoring rules.

@echeng06 echeng06 requested a review from hewanadun January 29, 2025 00:13
hewanadun
hewanadun previously approved these changes Jan 29, 2025
Copy link
Collaborator

@hewanadun hewanadun left a comment

Choose a reason for hiding this comment

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

Looks good!
Couple of minor fixes in _score_variables

  • Change the warning to "Field {key} not present or blank, skipping validation"
  • Passing value in line 1216 is not correct with the current error message.
  • We can change error message for SCORING_INVALID to "Provided value {0} does not match the expected score" [it's difficult to include the score here since final score is generated by applying logic, we can include the logic formula]

@echeng06 echeng06 merged commit 81199b9 into main Jan 29, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants