nautobot / nautobot-app-ssot

Single Source of Truth for Nautobot
https://docs.nautobot.com/projects/ssot/en/latest/
Other
37 stars 38 forks source link

Evaluate SSoT with Data Valdation Engine #96

Open chadell opened 1 year ago

chadell commented 1 year ago

Environment

Proposed Functionality

Evaluate/Document how this plugin could leverage the Data Validation Engine plugin to "outsource" the validation logic.

Use Case

Simplify SSoT plugins externalizing data validation logic to another plugin.

Kircheneer commented 1 year ago

As validated_save() today already runs validations from the data validation engine, is the ask here to move that validation from the object CRUD into the loading? I.e. somehow calling full_clean() from within load()?

chadell commented 1 year ago

The idea is to connect the dots. If the validated_save() is already calling the validation rule from the Data Validation Engine, we just need to document and add an example to help people that do not know about it how to use

Kircheneer commented 1 year ago

Alright, so purely a documentation issue then, no code required on the SSoT side?

chadell commented 1 year ago

if the default behavior is good enough, then no