dkan icon indicating copy to clipboard operation
dkan copied to clipboard

Allow unpublished items in form

Open dafeder opened this issue 4 months ago • 0 comments

Describe your changes

Currently, if a keyword or other child item is unpublished, it will be invisible to the json_form_widget's autocomplete. This means if you create a dataset that is unpublished, then edit it again, the keywords will be missing from the form, and when you save will be removed.

QA Steps

  • [ ] Set default workflow state to "draft".
  • [ ] Create a dataset, add new keywords that were not previously in the autocomplete
  • [ ] Edit the dataset again, confirm that the keywords are still populated in the form.

Notes

This becomes unnecessary after the second save, when all child items are published. That workflow doesn't make a lot of sense though, and there is a todo to change that as well.

Checklist before requesting review

If any of these are left unchecked, please provide an explanation

  • [ ] I have updated or added tests to cover my code
  • [ ] I have updated or added documentation

dafeder avatar Oct 17 '24 16:10 dafeder