GetDKAN / dkan2

Deprecated: please use the 2.x branch of the dkan repo
https://github.com/GetDKAN/dkan
GNU General Public License v2.0
18 stars 16 forks source link

Enhancements to dkan_metadata_form #397

Closed dharizza closed 4 years ago

dharizza commented 4 years ago

Steps to test

Do a fresh install of dkan2.

  1. Existing dataset:
    • [x] Go to /admin/content/datasets and click on the "Edit" link for any dataset, you should be redirected to a page admin/dkan/dataset/{uuid} that displays the json form
    • [x] Update any field and submit the form.
    • [x] A success message should be shown and you should stay in the page with the updated data in the form.
  2. New dataset:
    • [x] Go to admin/content/datasets and click on "Add new datasets", you should be redirected to the page admin/dkan/dataset that displays the json form.
    • [x] Fill in the form and submit.
    • [x] A success message should be shown.
  3. Wrong UUID:
    • [x] Go to /admin/dkan/dataset/{uuid}` (the uuid shouldn't be from a dataset, it can be invalid too).
    • [x] You should be redirected to /admin/content/datasets and a warning message should be shown with the text "No dataset with the UUID {uuid} could be found."