Skip to content

fix: optional key configuration push for npm run migrate #1471

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

Merged
merged 2 commits into from
Apr 24, 2025

Conversation

PeterBaker0
Copy link
Contributor

Makes the application of key configuration from the local .env into the deployment an opt in --keys flag rather than default behaviour. The reason for this is that in deployed prod environments, it is hard or even impossible for the local environment to match the key configuration of the deployed environment, and migration is really about database migration in this context.

);

// Run database initialization and migration with force and pushKeys parameters
await initialiseAndMigrateDBs({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only called in one place and force is set to true, is there any need to retain this any more? Do we ever want to not overwrite old design documents now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's defer this as out of scope for this fix - but good point

https://jira.csiro.au/browse/BSS-946

@PeterBaker0 PeterBaker0 merged commit 770f943 into main Apr 24, 2025
3 checks passed
@PeterBaker0 PeterBaker0 deleted the build/optional-migrate-keys branch April 24, 2025 03:15
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.

2 participants