Comments (5)
What is the expected flow? Would you want to call such an external service directly at save time in nautobot?
What would be the expectation upon failure in the call to the external service? Would you want to raise a validation error and prevent the save?
from nautobot-app-data-validation-engine.
- At the point in the regex check, replace with a function that makes an external call, resulting in a pass fail, allowing for custom default. Allow for the function itself to determine what to do on a fail, with a possibility of a validation error.
from nautobot-app-data-validation-engine.
@jvanderaa should Nautobot define the contract for the REST call or does it need to be extensible like webhooks? Can we iterate on that?
from nautobot-app-data-validation-engine.
I'm not exactly sure what is being asked here on this part. I don't know that Nautobot should define the contact for anything, allowing for flexibility. What would be needed from the Data Validation plugin? Would we need it to define that?
from nautobot-app-data-validation-engine.
Giving a little bit more of a thought, could we do something similar to ChatOps, where we can register a sub-plugin that has the validation logic (maybe a call to 3rd party system). Then there is a service requirement that the system return certain data, likely a boolean true/false for the validation succeeding. That this needs to respond in a N amount of time.
The two use cases:
- Name validation service, has a REST endpoint
- IPAM validation, a check of a routing table of a host before allocating an IP prefix
from nautobot-app-data-validation-engine.
Related Issues (20)
- Validation Rules for a subset of objects
- Show built-in data validation rules results under Data Compliance Report
- Update screenshots in documentation
- Uninstall docs need to have steps to remove models where the `slug` attribute was removed
- Warning on OrderedDefaultRouter's APIRootView attribute HOT 2
- Update 'development' directory files to align with other Nautobot apps & docs HOT 1
- Update code structure to follow the cookiecutter-ntc template
- Address and fix pylint recommendations
- Fix "Publish to GitHub" CI task - bad credentials
- Ability to provide filtering to validation rules
- Dynamic `Field` in rule forms
- Regex builder integrated into Regex Rule form
- Plugin reports all possible data validators as in use HOT 4
- Editing object with data validation no longer possible
- Running data validation a job fails HOT 1
- ValidationError for rule URLs using names instead of UUIDs
- Syncing DataCompliance rules from a Git Repo fails
- `DataCompliance` jobs do not show in Jobs section
- Unique validation rule flags if unchanged when editing/saving
- Blank values for unique validation fields are being flagged
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nautobot-app-data-validation-engine.