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 #3685] Save search get opportunity id #3704

Merged
merged 30 commits into from
Feb 4, 2025
Merged

Conversation

babebe
Copy link
Collaborator

@babebe babebe commented Jan 30, 2025

Summary

Fixes #{3685}

Time to review: 10 mins

Changes proposed

Query the search index limiting the results to only opportunity ID
Store the list of opportunity IDs returned to the DB as a list/array (does not need to point to opportunity table as foreign keys)
Modify the users query to replace with static pagination

Additional information

Updated tests

api/src/services/opportunities_v1/search_opportunities.py Outdated Show resolved Hide resolved
api/src/services/opportunities_v1/search_opportunities.py Outdated Show resolved Hide resolved
api/src/api/users/user_routes.py Outdated Show resolved Hide resolved
api/tests/src/api/users/test_user_save_search_post.py Outdated Show resolved Hide resolved
api/tests/src/api/users/test_user_save_search_post.py Outdated Show resolved Hide resolved
@chouinar
Copy link
Collaborator

@babebe - could you make sure your PR title follows our usual format? Should be: [Issue #XXXX] Some sort of description - these are used in the deploy metadata

@babebe babebe changed the title 3685/save search get opp [Issue 3685] save search get opp Jan 31, 2025
@babebe babebe changed the title [Issue 3685] save search get opp [Issue 3685] save search get opportunity id Jan 31, 2025
@babebe babebe changed the title [Issue 3685] save search get opportunity id [Issue #3685] save search get opportunity id Jan 31, 2025
@babebe babebe requested a review from chouinar January 31, 2025 16:18
@babebe babebe changed the title [Issue #3685] save search get opportunity id [Issue #3685] Save search get opportunity id Feb 3, 2025
chouinar
chouinar previously approved these changes Feb 3, 2025
api/tests/src/api/users/test_user_save_search_post.py Outdated Show resolved Hide resolved
@babebe babebe merged commit 0ffc85b into main Feb 4, 2025
2 checks passed
@babebe babebe deleted the 3685/save-search-get-opp-id branch February 4, 2025 15:53
DavidDudas-Intuitial pushed a commit that referenced this pull request Feb 7, 2025
## Summary
Fixes [#{3685}](#3685)

### Time to review: __10 mins__

## Changes proposed
Query the search index limiting the results to only opportunity ID
Store the list of opportunity IDs returned to the DB as a list/array
(does not need to point to opportunity table as foreign keys)
Modify the users query to replace with static pagination 

## Additional information
Updated tests
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.

Modify the endpoint where we save user searches to also query the search index and get opportunity IDs
2 participants