CivicDataLab / CivicDataLab/DataSpaceBackend
Creating a dataset, use case or collaborative fails if another is created in the same second
@saqibmanan is already working on this.
Since Sep 17, 2026.
- Dominant language
- Python
- Stars
- 2
- Forks
- 1
- Avg merge
- 52m
- Merged PRs (30d)
- 40
Description
What: creating a dataset, use case or collaborative fails when another one is created in the same second, by any user. The default title is New dataset 17 Sep 2026 - 09:43:04 (one-second precision), the slug is derived from it, and slug is globally unique, so the second save hits the constraint and the mutation returns success: False with no error.
Why it matters: a real user can hit it, and it blocked both release gates today when they ran concurrently.
Evidence: release gates for DataSpaceBackend #198 and DataSpaceFrontend #468, api-smoke started 09:43:06 and 09:43:04 — addDataset returned success=False: {'success': False, 'data': None}.
Fix: not fixed — make the generated slug collision-safe (api/schema/dataset_schema.py:587, usecase_schema.py:296/304, collaborative_schema.py:303/311, and the models' save()).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.