-
Notifications
You must be signed in to change notification settings - Fork 61
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
Create Mobile appeal model #18197
Create Mobile appeal model #18197
Conversation
Generated by 🚫 Danger |
module V0 | ||
module Adapters | ||
class Appeal | ||
def parse(appeal) |
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.
Doesn't depend on instance state (maybe move it to another class?) - UtilityFunction
config/features.yml
Outdated
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.
There's enough being enforced that wasn't before that I think there's a good chance it could cause a rise in error rates. This will keep that from becoming an issue.
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.
note that I didn't add the appeals model to the index of this controller because it already uses a claim overview model. We could put the appeal model before the claim overview but that doesn't seem like it'd be of any benefit
@@ -1,6 +1,6 @@ | |||
type: object | |||
properties: | |||
data: | |||
date: |
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.
typo
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.
took the appeal response from before this change and made sure the model didn't change anything about the response.
I didn't realize you could nest attributes like that. That is better. I've updated to do this but unfortunately it looks like there's some issues with having the |
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 didn't know about that optional limitation, but I think this is a good compromise. 👍
Summary
Create a model for /v0/appeal/{id} resource
the following endpoint does not use a model, defining the schema of the output in the serializer using Structs. These only specify the top level attributes so any nested objects do not have a defined schema. This has caused issues with schema changing out from under us.
We can fix this by creating a model for all of these endpoints that will validate the full schema.
Related issue(s)
department-of-veterans-affairs/va-mobile-app#8145
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?