nautobot / nautobot-app-version-control

Version Control App that uses and requires a Dolt Database
Other
30 stars 6 forks source link

Dropdown selectors don't work on non-main branches when creating an object in Nautobot 1.2b #151

Closed tim-fiola closed 2 years ago

tim-fiola commented 2 years ago

On a non-main branch, when running Version Control with Nautobot 1.2b, the dropdown selectors can't load their options when creating a new object. The user sees a message in the dropdown that says The results could not be loaded.

To replicate:

This problem only appears in the Nautobot 1.2b running Version Control when a non-main branch is active.

This problem does not happen on the Version Control main branch running 1.2b or on a non-Version Control instance of Nautobot running 1.2b.

The first time the user accesses any dropdown menu, the selection options appear:

image

But after that, any other dropdowns cannot display their options:

image

Running Nautobot v1.2.0b1: image

glennmatthews commented 2 years ago

The response being returned on the second and subsequent menu-driven API calls is a 500 error with HTML content including:

<class 'dolt.utils.DoltError'>

Error writing model Session
                        on branch "test-branch":
                        non-versioned models must be written on branch
                        "main".
glennmatthews commented 2 years ago

As such this may share the same root cause as #152?

glennmatthews commented 2 years ago

Perhaps also #132?

glennmatthews commented 2 years ago

I can reproduce this on the demo site, but thus far I do not see it in a local development environment:

image

tim-fiola commented 2 years ago

fixed in https://github.com/networktocode-llc/gizmo-dolt-nautobot/pull/9