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

Modify the backend notification script to handle saved searches #3538

Open
1 task
chouinar opened this issue Jan 15, 2025 · 0 comments
Open
1 task

Modify the backend notification script to handle saved searches #3538

chouinar opened this issue Jan 15, 2025 · 0 comments

Comments

@chouinar
Copy link
Collaborator

chouinar commented Jan 15, 2025

Summary

Logic should be roughly:

  • Fetch all saved searches since the last job ran (TODO - how to know when the last job ran?) based on the last_notified_at timestamp
  • Merge all saved searches with the same query together (maintain which records in the DB these connect to)
  • Query the search index with all the searches, only fetching opportunity IDs
  • For any searches that produce a different set of results, update the user notification mapping + user_saved_search table.

TODO - fill out in a bit more detail

The job does not need to actually notify, it can just write to the table created in #3546

Acceptance criteria

  • Backend script updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant