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

Branch fails to sync if one of the changes has an object created with a tag assigned #196

Open
cah-william-parsley opened this issue Jan 13, 2025 · 2 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@cah-william-parsley
Copy link

cah-william-parsley commented Jan 13, 2025

Plugin Version

0.5.2

NetBox Version

4.1.7

Python Version

3.10.14

Steps to Reproduce

  1. Create a new branch, but don't activate it.
  2. Create a device or circuit (or probably any object) in the main branch and assign a tag during creation.
  3. Switch to the branch created in step 1 and try to sync it with main

Expected Behavior

Branch syncs with main without error.

Observed Behavior

There is a deserialization error during the sync. Error below. This might be related, or the same issue as #193

DeserializationError("['“tag-name” value must be an integer.']: (circuits.circuit:pk=2) field_value was 'tag-name'")

@cah-william-parsley cah-william-parsley added the type: bug A confirmed report of unexpected behavior in the application label Jan 13, 2025
@cruse1977
Copy link
Member

Confirmed this issue - this doesn't occur on sites (so any object is incorrect) but does on devices

DeserializationError("['“test2” value must be an integer.']: (dcim.device:pk=1) field_value was 'test2'")

@cruse1977
Copy link
Member

This only occurs creating a device with a tag, adding a tag to an existing device syncs fine. Data in the changelog for the create tags "tags": ["Branch"]

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

No branches or pull requests

2 participants