nautobot / nautobot-app-design-builder

https://docs.nautobot.com/projects/design-builder/en/latest/
Other
8 stars 2 forks source link

Model attribute namespace collisions #160

Open lampwins opened 3 months ago

lampwins commented 3 months ago

Environment

Expected Behavior

Design builder should be entirely agnostic to any naming of custom relationships, custom fields, or other built in properties/attributes/field names, etc that exist on models.

Observed Behavior

Certain named attributes throughout design-builder have effectively been implemented as reserved attributes/names and cause errors when referenced.

Steps to Reproduce

  1. Create a custom model named Environment
  2. Create a custom relationship between Device and Environment
  3. Create a design that attempts to create a device (even without populating the custom relationship)
  4. Run the design
  5. Receive an error that 'Device' does not have an attribute named 'environmnet'.