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

[83] Edit Evaluator's Score #422

Merged
merged 16 commits into from
Feb 19, 2025
Merged

[83] Edit Evaluator's Score #422

merged 16 commits into from
Feb 19, 2025

Conversation

cpreisinger
Copy link
Contributor

#83

…evaluators-score

* 'dev' of github.com:GSA/Challenge_platform:
  [84] Submission Advancement (#397)
@cpreisinger cpreisinger self-assigned this Feb 17, 2025
…evaluators-score

* 'dev' of github.com:GSA/Challenge_platform:
  57 | Move submission evaluation status specs
  [266] Header Updates (#414)
  57 | Have service update the model directly to set evaluation_status
  codeclimate
  57 | Move logic  to calculate the evaluation status of a submission into a service
  57 | Refine approach to update the submission's evaluation_status
  57 | code climate
  57 | Update and track evaluation_status through submission, evaluation submission assignment, and evaluation for filtering
  57 | Migration - add evaluation_status to submission table
@r-bartlett-gsa r-bartlett-gsa added this to the Sprint 02/25/25 milestone Feb 18, 2025
@r-bartlett-gsa r-bartlett-gsa linked an issue Feb 18, 2025 that may be closed by this pull request
45 tasks
@stepchud stepchud linked an issue Feb 18, 2025 that may be closed by this pull request
42 tasks
Copy link
Contributor

@stepchud stepchud left a comment

Choose a reason for hiding this comment

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

Still reviewing, I'll go ahead and leave comments as they come up rather than wait for the full review to submit feedback all at once.

Comment on lines 153 to 154
def full_name(format: :default)
return "Unknown User" if first_name.blank? && last_name.blank?
Copy link
Contributor

@stepchud stepchud Feb 18, 2025

Choose a reason for hiding this comment

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

I'm not sure where this function came from but can we display the email address if the evaluator does not have any name associated? It shouldn't happen often because we require and update their first_name and last_name when they are added to the panel. :last_first format doesn't seem to be used rn.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just made something since we didn't have any consistent full name functionality for users/evaluators. But I can just do what is done in the other places. Mostly wanted to make sure potential white space, missing values, or anything else was handled in the same way

Copy link
Contributor

@stepchud stepchud Feb 19, 2025

Choose a reason for hiding this comment

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

There's nothing wrong with adding the function, but I don't think it should say "Unknown User" when there is a known user, they just don't have a first_name or last_name. we have a bug (which we should try to fix) in the invite flow where it's not always saving the name of the user after they accept the invite and I'd prefer not to highlight the missing name here. instead we have the email or it could use the username part of the email before the @ symbol.

Copy link
Contributor

Choose a reason for hiding this comment

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

the function is currently being used to show the name to the challenge manager and they already have access to the user's information on the evaluation panel so it's not leaking data.

@stepchud
Copy link
Contributor

There is an issue with the "Revised Score" total. If the input is empty, or there's no radio button selected, the "Revised Score" should show up in the UI as the original evaluator score. Just the display value. The input should remain null by default until the CM enters a different score, so it doesn't override the evaluator's score with the same value and they can update just the scores they want to modify and don't have to input values for all.

Screen.Recording.2025-02-18.at.10.03.38.PM.mov

…evaluators-score

* 'dev' of github.com:GSA/Challenge_platform:
  58 | Add submitter email to Submissions csv file (#428)
…latform into 83/edit-evaluators-score

* '83/edit-evaluators-score' of github.com:GSA/Challenge_platform:
  Update app/controllers/evaluations_controller.rb
Copy link
Contributor

@stepchud stepchud left a comment

Choose a reason for hiding this comment

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

🚢 ⚓ :shipit:

@stepchud stepchud merged commit 5828c68 into dev Feb 19, 2025
11 checks passed
@stepchud stepchud deleted the 83/edit-evaluators-score branch February 19, 2025 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edit Evaluator's Score Evaluation Form View for Challenge Managers
3 participants