nautobot-app-ssot icon indicating copy to clipboard operation
nautobot-app-ssot copied to clipboard

Evaluate SSoT with Data Valdation Engine

Open chadell opened this issue 1 year ago • 4 comments

Environment

  • Nautobot version: 1.5.16
  • nautobot-ssot version: 1.2.0

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.

chadell avatar Apr 11 '23 17:04 chadell

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()?

Kircheneer avatar Apr 24 '23 14:04 Kircheneer

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

chadell avatar Apr 26 '23 05:04 chadell

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

Kircheneer avatar Apr 26 '23 06:04 Kircheneer

if the default behavior is good enough, then no

chadell avatar Apr 26 '23 08:04 chadell