rollthecloudinc / quell

Climate aware CMS breaking web apps free from carbon emissions.
https://demo.carbonfreed.app/pages/create-panel-page
GNU General Public License v3.0
14 stars 1 forks source link

Datasource Validation Plugin #312

Open ng-druid opened 1 year ago

ng-druid commented 1 year ago

Create validation plugin inside core which a datasource can be used. One popular use case for this is verifying uniqueness of entities across a specific data set like users. Perhaps the default behavior is when results are returned the field is invalid. When the result/response is empty the field valid. That seems like a simple way to handle things. The validator can have a param that references an existing datasource inside the same panel just like with the form element to populate options.