-
Notifications
You must be signed in to change notification settings - Fork 62
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
WIP - Generic VetsApi Non-database model #18568
Conversation
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: lib/vets/attributes.rb |
@@ -16,7 +16,7 @@ | |||
|
|||
let(:submission_record) { OpenStruct.new(application_uuid: 'UUID') } | |||
let(:form) do | |||
Preneeds::BurialForm.new(params).tap do |f| | |||
Preneeds::BurialForm.new(params[:application]).tap do |f| |
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.
You'd need to update other places that call new
(e.g. mobile preneeds controller)
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.
applicant
is incorrectly wrapping the params in the spec.
def burial_form_params
params.require(:application).permit(..omit..)
end
|
||
# rubocop:disable ThreadSafety/InstanceVariableInClassMethod | ||
def attributes | ||
@attributes |
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 think you can just inline disable?
@attributes | |
@attributes # rubocop:disable ThreadSafety/InstanceVariableInClassMethod |
@@ -13,7 +13,7 @@ class Race < Preneeds::VirtusBase | |||
}.freeze | |||
|
|||
ATTRIBUTE_MAPPING.each_value do |attr| | |||
attribute(attr, Boolean) | |||
attribute(attr, Boolean, default: false) |
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.
Couldn't false
be the implied default rather than explicitly setting?
|
||
# Parent class for other Preneeds Burial form related models | ||
# Should not be initialized directly | ||
# |
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.
# |
The base branch was changed.
Note: Delete the description statements, complete each step. None are optional, but can be justified as to why they cannot be completed as written. Provide known gaps to testing that may raise the risk of merging to production.
Summary
Related issue(s)
Testing done
Screenshots
Note: Optional
What areas of the site does it impact?
(Describe what parts of the site are impacted andifcode touched other areas)
Acceptance criteria
Requested Feedback
(OPTIONAL)What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?