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 #3204] Remove opportunities connected to test agencies from search results #3234

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

chouinar
Copy link
Collaborator

Summary

Fixes #3204

Time to review: 5 mins

Changes proposed

If an opportunity is connected to a test agency, do not load it into the search index

Fixed a bug with how incremental updates/deletes worked that was deleting everything if it wasn't in an update

Context for reviewers

Certain agencies are marked as test agencies, and will be excluded from appearing in the left-hand navigation already. However, that doesn't stop you from finding them in search results by other means. Even though the number of test records appearing in search is small (5 at the time of writing), we'll be cautious and just filter them all out, which lets us potentially do more in the future as well.

We also handle deleting anything that already exists in the incremental job - that likely won't matter in most cases, but if an agency is ever marked as a test that wasn't previously, we'll handle that.

Additional information

In prod, there are only 5 opportunities this will actually filter out right now, some subagencies aren't included in the list yet, but we'll deal with that separately:
https://simpler.grants.gov/search?agency=GDIT,IVV,IVPDF,0001,FGLT,NGMS,NGMS-Sub1,SECSCAN&status=forecasted,posted,archived,closed

@chouinar chouinar merged commit 9ee9e4d into main Dec 16, 2024
2 checks passed
@chouinar chouinar deleted the chouinar/3204-test-opps branch December 16, 2024 21:00
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 opportunities connected to test agencies from search results
2 participants