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

The current branch (if any) should be deactivated when attempting to create a new branch #87

Open
jeremystretch opened this issue Sep 6, 2024 · 1 comment · May be fixed by #185
Open
Assignees
Labels
app: branching type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Contributor

Plugin Version

v0.4.0

NetBox Version

v4.1.0

Python Version

3.10

Steps to Reproduce

  1. Activate a branch
  2. Select "Create a branch" from the branch selector dropdown at top right
  3. Enter a branch name and click "Create"

Expected Behavior

The new branch should be created.

Observed Behavior

An error is raised:

Cannot create or modify a branch while a branch is active.

After deactivating the current branch, creating a new branch succeeds.

@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Sep 6, 2024
@cvitan cvitan added the netbox-branching label Oct 31, 2024 — with Linear
@arthanson arthanson self-assigned this Dec 3, 2024
@jeremystretch
Copy link
Contributor Author

A similar problem arises when attempting to delete a branch while it or another branch is active. I think ideally the controls do so would be disabled while a branch is active, but that may provide infeasible to implement consistently across the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app: branching type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants