AuScope / ckan-docker

Scripts and images to run CKAN using Docker Compose
0 stars 2 forks source link

Schema validation #267

Closed NTaherifar closed 3 months ago

NTaherifar commented 3 months ago

Ensure that the URL and email fields follow the correct format.

For depth fields:

depth_from (if specified) must be less than depth_to. For sample dates:

If a parent sample is specified, validate the dates against the parent sample's dates. Specifically, the start date of the sample must be either the same as or later than the start date of its parent sample (i.e., the sample cannot exist before the parent sample).

NTaherifar commented 3 months ago

@kitchenprinzessin3880 , The issue is resolved and can be tested in the development version.

kitchenprinzessin3880 commented 3 months ago

Test 1 PASS, a small modification required Depth test - https://sample-dev.data.auscope.org.au/dataset/edit/moolart-soil-sample-mw-2

Screenshot 2024-07-29 at 2 34 26 PM

Test 2 PASS Parent sample - https://sample-dev.data.auscope.org.au/dataset/moolart-surface_soil-sample-mw (1st June - 30th June 2024) Child sample - https://sample-dev.data.auscope.org.au/dataset/moolart-surface_soil-sample-mw-1

Screenshot 2024-07-29 at 2 37 50 PM
kitchenprinzessin3880 commented 3 months ago

@NTaherifar if I enter the same depth, the edit is successful. depth_from < depth_to (not <=)

NTaherifar commented 3 months ago

@kitchenprinzessin3880 , It is completed and ready for testing on both the dev and prod.

kitchenprinzessin3880 commented 3 months ago
Screenshot 2024-08-06 at 2 43 02 PM