Skip to content

Fixes #98: Cable changes in branch should not impact main schema #149

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 1 commit into from
Sep 25, 2024

Conversation

jeremystretch
Copy link
Contributor

Fixes: #98

Replicate the dcim_cablepath table when provisioning a branch to ensure cable changes do not interfere with the main schema.

Copy link
Contributor

@arthanson arthanson left a comment

Choose a reason for hiding this comment

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

Was able to switch cables, pre this patch was getting a lot of errors switching the cables and going back to them - the data looked to be in a bad state and trace_paths didn't fix it so may need to kill any branches where you've switched cables.

@@ -21,11 +21,6 @@ def _get_db(self, model, **hints):
warnings.warn(f"Routing database query for {model} before branching support is initialized.")
return

# Bail if the model does not support branching
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm assuming this isn't needed anymore, won't affect plugins and such? Didn't know how to test that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct; this was originally addressed under #59 but isn't technically needed.

@jeremystretch jeremystretch merged commit b7d9053 into develop Sep 25, 2024
7 checks passed
@jeremystretch jeremystretch deleted the 98-invalid-cable-paths branch September 25, 2024 16:58
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.

Exception and invalid CablePath state after editing a cable in a branch
2 participants