Unable to create a dataset without resources
- Dominant language
- Python
- Stars
- 102
- Forks
- 182
- PR merge metrics
- No merged PRs in 30d
Description
I have set `CKAN__DATASET__CREATE_ON_UI_REQUIRES_RESOURCES=False` in my ckan configuration, as I wish to create datasets without any resources. However, the addition of the scheming plugin has removed that functionality. In the scheming "add dataset" page, a draft dataset is created at the end of each step and it is only converted to an active state when a resource is added. My understanding is that the post to the create dataset endpoint is intercepted to add the draft state, and then the active state is set in the plugin's new resource handler. The result is that if I click through the new dataset page and click "finish" without adding a resource to the resource page, nothing happens. I believe this is a bug, as we should be able to finish creating the dataset without adding a new resource.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the scheming “add dataset” flow with CKAN__DATASET__CREATE_ON_UI_REQUIRES_RESOURCES=False and finish without adding a resource. Read the create dataset endpoint handling and the plugin’s new resource handler described in the issue. Done means the dataset is created in an active state without requiring a resource.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100