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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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
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
2 participants