Skip to content

If delete an object in main that is modified in a branch it cannot be synched #365

@arthanson

Description

@arthanson

Plugin Version

v0.7.2

NetBox Version

v4.4.5

Python Version

3.10

Steps to Reproduce

  • Create a site in main
  • Create a branch
  • Delete the site in main
  • Edit the site in the branch
  • See warning error telling me to sync main into the branch
  • Sync main into branch

Expected Behavior

  • Main is synced into the branch
  • The site is no longer in the branch

Observed Behavior

{
    "log": [
        "Syncing branch test_delete_in_main (branch_i422n6ia)",
        "Found 1 changes to sync",
        "Setting branch status to syncing",
        "Applying change 6 using schema_branch_i422n6ia (DCIM | site dffd deleted by admin)",
        "Deleting site dffd",
        "Cannot delete site 'dffd' because it has been deleted in the main branch. Sync with the main branch to update."
    ]
}

Metadata

Metadata

Assignees

Labels

app: branchingseverity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions