-
-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Labels
Ready for DevelopmentAutomatically assigned to issues that are ready to be picked upAutomatically assigned to issues that are ready to be picked up
Description
Problem
We manage our Typesense collection schemas through the Firebase Function checkSearchIndexVersion - which when run will check all Typesense collections and, if their schemas are out of date, runs a schema migration and backfill.
Unfortunately, this function has to be run manually at the moment and is easily forgotten - to amend this, we should make triggering this check an automatic part of our deployment process.
According to our wiki (https://github.com/codeforboston/maple/wiki/Search-and-Typesense), we allegedly did have this set up at one point, but if so, the functionality seems to have vanished.
Success Criteria
- Add a trigger to the DEV and PROD Github deploy actions to automatically run the
checkSearchIndexVersionfunction after a successful deploy- This can be run from the CLI with
gcloud pubsub topics publish --project=digital-testimony-dev checkSearchIndexVersion --message='{"check": true}'for DEV (and for PROD with project=digital-testimony-prod) - the function in question is a pubsub function.
- This can be run from the CLI with
- If the former proves too difficult/fragile (for whatever reason) and we need a fallback, add a note to run this function in the Github PR review template (to remind PR reviewers to check for this when relevant - with Typesense schema updates). Please reach out if you feel this is the best solution, but it would certainly still be a better state than we're in today.
Metadata
Metadata
Assignees
Labels
Ready for DevelopmentAutomatically assigned to issues that are ready to be picked upAutomatically assigned to issues that are ready to be picked up