nautobot / nautobot-app-version-control

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

webhooks not saving the Object Type(s) upon initial webhook create #158

Open tim-fiola opened 2 years ago

tim-fiola commented 2 years ago

Dolt objects (Pull request, pull request review) don't get saved when webhooks are initially created.

At this point I can get this to happen consistently with the dolt objects. I see this happen intermittently with other types of objects.

Nautobot version: v1.2.0b2 and 1.1.5 Python version: 3.6

To reproduce the problem:

  1. Navigate to Extensibility--> Webhooks --> +
  2. Create a webhook to fire for dolt | pull request object type creation
  3. Click Create button
  4. Observe that the created webhook Object Type(s) field is blank

In this example below, I configured this webhook to fire upon creation of a Pull Request object: image


The created webhook does not save the Object Type(s) values: image


If I edit the webhook, I can add the dolt | pull request object (again) and it does then save when I click the Update button: image


When I try this using both a circuit object and pull request object, no object type(s) get saved upon webhook create:

image

image


When I try this with just a circuit object, the object type(s) are not saved upon creation on this try (although sometimes it does save the object type(s); with non-dolt objects the problem appears to be more intermittent):

image