-
Notifications
You must be signed in to change notification settings - Fork 1
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
SC-86 Evaluator journey: Upload complete evaluation #2024
base: main
Are you sure you want to change the base?
Conversation
@@ -8,14 +8,18 @@ class Support::Case::DocumentUploader | |||
attribute :support_case | |||
attribute :has_uploaded_documents | |||
|
|||
validates :files, presence: true, if: -> { support_case.has_uploaded_documents.nil? } | |||
validates :files, presence: true, if: -> { has_uploaded_documents.blank? } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused by the semantics here. Why is it important that it's blank?
rather than a boolean check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to validate the upload confirmation "Yes" or "No". By default it is blank which means no radio button selected.
@@ -0,0 +1,5 @@ | |||
class AddHasUploadedDocumentsToSupportEvalutors < ActiveRecord::Migration[7.2] | |||
def change | |||
add_column :support_evaluators, :has_uploaded_documents, :boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a default (probably false) and making this non-NULL.
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
Test coverageLine: 86.95% |
Changes in this PR
Added new files to upload completed documents
Screen-shots or screen-capture of UI changes