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

fix: add DropUnique to rollback ES migration #3652

Merged
merged 4 commits into from
Feb 14, 2024

Conversation

tobybellwood
Copy link
Member

@tobybellwood tobybellwood commented Feb 12, 2024

In #3641 additional tables, fields and indexes were added to show environment<>service connections. In the rollback migration, an index was missed for removal. This PR resolves that. It doesn't need a seperate migration, as it hasn't been released yet, and would only be encountered on a rollback.

This PR also adds a github action test designed to try and catch any rollback/migration errors at the point of initial commit. It shouldn't fire without a migration present.

In the development of this PR, it was discovered that migrations could fail if there were multiple services in the same environment with the same "name". As this name is not descriptive (nor unique), the migration now adds a functionality to remove any duplicate service names. With the advent of the build deploy and remote controller changes, it will become impossible for an environment to have multiple identically named services (as it is a docker compose constraint).

@tobybellwood tobybellwood added this to the 2.18.0 milestone Feb 12, 2024
@shreddedbacon shreddedbacon force-pushed the fix-env-services-drop-index branch from 88f33f8 to 20e2fca Compare February 13, 2024 22:43
@shreddedbacon shreddedbacon force-pushed the fix-env-services-drop-index branch from 20e2fca to 7cf8427 Compare February 13, 2024 23:51
@shreddedbacon shreddedbacon force-pushed the fix-env-services-drop-index branch from 7cf8427 to 3e1c266 Compare February 14, 2024 00:05
@tobybellwood
Copy link
Member Author

Merging as reviewed and functional tested by @tobybellwood and @shreddedbacon

@tobybellwood tobybellwood merged commit 85aa0f1 into main Feb 14, 2024
2 checks passed
@shreddedbacon shreddedbacon deleted the fix-env-services-drop-index branch February 14, 2024 01:05
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