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 #2030] Adjust opportunity response to contain the agency name #2182

Merged
merged 3 commits into from
Sep 20, 2024

Conversation

chouinar
Copy link
Collaborator

Summary

Fixes #2030

Time to review: 5 mins

Changes proposed

Add the agency name to the opportunity response

Make it so the agency name can be fetched in the opportunity model

Context for reviewers

Recent work added a table for agency data, and while this won't be populated for a bit (needs some testing in the lower envs), the tables themselves are setup. This will attempt to fetch the agency, and if found cause the name to be returned. This is technically how the agency name works in the current system although the schema of the agency is quite a bit different.

Additional information

Works both for the data loaded into the search index as well as the data returned by the GET /opportunity endpoint:
Screenshot 2024-09-19 at 12 48 50 PM
Screenshot 2024-09-19 at 12 49 02 PM

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Sep 19, 2024
Copy link
Collaborator

@mdragon mdragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chouinar chouinar merged commit e96eafc into main Sep 20, 2024
8 checks passed
@chouinar chouinar deleted the chouinar/2030-agency-name branch September 20, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api database documentation Improvements or additions to documentation python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Adjust opportunity response to contain the agency name
3 participants