Nautobot Status and other persisted objects should use uuid.uuid5 to generate ids #1809
Labels
type: feature
Introduction of new or enhanced functionality to the application
type: housekeeping
Changes to the application which do not directly impact the end user
Environment
Steps to Reproduce
nautobot-server dumpdata
to create a fixtureStatus
objects!Expected Behaviour
It would be great if
Status
and other pre-populated objects in Nautobot useduud.uuid5
to generate the IDs in a deterministic way. It would be double nice if there were a migration to update existing DBs to the new UUID but maintain existing relationships.Here's a small example of what
uuid.uuid5
might look like:Obviously the specifics of the name and namespace used are up to you guys. I don't think you'd have to go to the trouble of registering a urn namespace or anything, what's important is avoiding clashes with other applications.
The advantage of this would be that dump'd db's for test fixtures would be consistent without having to jump through hoops (for example, we delete the existing pre-populated objects in an override of
setUpClass
in test classes).cc @jvanderaa @PhillSimonds
The text was updated successfully, but these errors were encountered: