-
Notifications
You must be signed in to change notification settings - Fork 7
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 Expanded lookup table endpoint #3674
Add Expanded lookup table endpoint #3674
Conversation
JaCoCo Test Coverage
|
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.
Awesome job! Nice thorough testing!
classification_code = classification["classification_code"] | ||
classification_name = classification["classification_name"] |
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.
Would this have any benefit here (and in the next conditional)?
classification_code = classification["classification_code"] | |
classification_name = classification["classification_name"] | |
classification_code = classification.get("classification_code") | |
classification_name = classification.get("classification_name") |
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 using dict[]
is preferred if we are certain the key exists which we are since we have the defaults set in the lookup_tables.get()
methods. I think the advantage of using dict.get()
is that handles the keyerror using the default. I am good to switch it if it helps readability and consistency though.
What was the problem?
This implements a new classification lookup table to classify Veteran contentions. The research for this new method is in Free Text Classification Research.
This establishes the new method and adds the endpoint. This will not be implemented in vets-api until we are able to conduct testing on the processing time and load testing on the API to ensure that it does not slow down the full submit process for the 526EZ.
Associated tickets or Slack threads:
How does this fix it?1
How to test this PR
pytest
Footnotes
Pull-Requests guidelines. If PR is significant, update Current Software State wiki page. ↩