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

[Issue 893] Make opportunity API model have more fields from the DB #917

Merged
merged 5 commits into from
Dec 18, 2023

Conversation

chouinar
Copy link
Collaborator

Summary

Fixes #893

Time to review: 5 mins

Changes proposed

Return a few additional fields from the opportunity table in the opportunity search + get endpoints.

Updated the DB factory to only add a category explanation if the category is O (other)

Context for reviewers

As we currently have things setup the DB model is converted to JSON directly, so we just need to update the response model to have it get returned in response.

Additional information

Some examples of responses from the API endpoints:

Screenshot 2023-12-14 at 12 26 44 PM
Screenshot 2023-12-14 at 12 26 58 PM

@chouinar chouinar merged commit 746accd into main Dec 18, 2023
@chouinar chouinar deleted the chouinar/893-add-more-fields-to-opp-api branch December 18, 2023 16:14
SammySteiner pushed a commit that referenced this pull request Dec 22, 2023
…917)

[Issue 893] Make opportunity API model have more fields from the DB


---------

Co-authored-by: nava-platform-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Return more values in the API from opp table
3 participants