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 #3390] Remove agency_phone_number from Opportunity/Search API responses #3392

Conversation

mikehgrantsgov
Copy link
Collaborator

Summary

Fixes #3390

Time to review: 10 mins

Changes proposed

Remove agency_phone_number from opportunity GET and search API responses.

Context for reviewers

Additional context in #3390 and associated ticket.

Additional information

See updated unit tests.

@@ -208,7 +208,7 @@ def validate_opportunity_summary(db_summary: OpportunitySummary, resp_summary: d
== resp_summary["applicant_eligibility_description"]
)

assert db_summary.agency_phone_number == resp_summary["agency_phone_number"]
assert "agency_phone_number" not in resp_summary
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like that you make this a negative assertion rather than just removing the check entirely.

@mikehgrantsgov mikehgrantsgov merged commit e2302f0 into main Jan 6, 2025
@mikehgrantsgov mikehgrantsgov deleted the mikehgrantsgov/3390-remove-phone-number-from-opportunity-endpoints branch January 6, 2025 15:27
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.

Remove agency_phone_number from Opportunity/Search API responses
4 participants