Repository navigation
Conversation
…4/5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 23, 2026
Draft
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses
https://broadworkbench.atlassian.net/browse/DT-4348
Stacked PRs (merge in order):
Summary
Adds a database dump from dev (or staging) and fills the local Elasticsearch index.
scripts/export-db.sh: runs the Cloud SQL proxy andpg_dump(frompostgres:16.14-alpine, the same image as the local database) as containers on a temporary Docker network. The proxy publishes no ports. The token and the password go to Docker as environment variables, not on a command line. The dump is--no-owner --no-privileges, gzipped, and checked for thedump completeline before it moves into place. Only the newest dump stays.--db_env prodis refused before the script reads a secret.scripts/index-es.sh: callsPOST /api/dataset/indexthrough the local proxy with agcloudtoken, and fails on a non-2xx status, an empty or non-JSON body,Error indexing datasets, or"errors": truein the bulk response.render-configs.sh: adds--export_dband--db_env.--allmakes a dump only when there is none.scripts/db-connect.sh: moves tocloud-sql-proxyv2, on port 5433, because the local database publishes 5432.DEVNOTES.md: "Database dump" and "Elasticsearch index" sections. The reload command usesrm -sfv, so the old data volume, which holds a copy of the old dump, goes too.Testing
--all truewith a dump present skips the export.--db_env prodstops at once.index-es.sh(need the VPN and a running stack). This PR must record the time of a full dev dump.Have you read CONTRIBUTING.md lately? If not, do that first.
🤖 Generated with Claude Code