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

Improve handling of errors in contrib

Open Kircheneer opened this issue 1 year ago • 1 comments

Proposed Functionality

Upon failed object validation in create, update, or delete, raise the appropriate diffsync.exceptions.ObjectCrudException subclass (ObjectNotCreated, ObjectNotUpdated, ObjectNotDeleted). Include as much context as possible so the error can be acted upon.

Use Case

Instead of crashing the entire SSoT run, this singles out failures in individual CRUD operations and allows them to be properly logged.

This also enables the data validation engine integration.

Kircheneer avatar Dec 12 '24 12:12 Kircheneer

On second thought, in nautobot_ssot.contrib this is already happening, and that is all we can enforce. We should however, document the existence of this mechanism and what it entails.

Kircheneer avatar Dec 12 '24 13:12 Kircheneer