Summary
Clicking Add New AI Model immediately creates a model record in the database (e.g. ID 168, named "New AI Model") and navigates to the edit wizard — before the user has filled in any data.
If the user closes the editor or navigates away without filling anything, an orphaned draft model with no name, no metadata, and no version remains in the database.
Impact
- Pollutes the Draft models list with incomplete entries
- May count against org model quotas
- Makes it impossible to distinguish intentional drafts from abandoned attempts
- During testing, model ID 168 was created and left as an empty draft
Steps to Reproduce
- Navigate to
/dashboard/organization/{org}/aimodels
- Click Add New AI Model
- Observe: URL immediately changes to
/aimodels/edit/{id}/details with a new model ID
- Close the editor without filling any fields
- Return to the models list — the empty "New AI Model" draft is present
Expected Behaviour
Either:
- (a) Show a "Name your model" prompt before creating the DB record, OR
- (b) Auto-delete models closed within 60s of creation with no metadata filled
Environment
- URL:
https://dev.civicdataspace.in/dashboard/organization/civicdatalab/aimodels
- Discovered: 2026-06-22 via QA audit
- Report ref: CDS-002
Summary
Clicking Add New AI Model immediately creates a model record in the database (e.g. ID 168, named "New AI Model") and navigates to the edit wizard — before the user has filled in any data.
If the user closes the editor or navigates away without filling anything, an orphaned draft model with no name, no metadata, and no version remains in the database.
Impact
Steps to Reproduce
/dashboard/organization/{org}/aimodels/aimodels/edit/{id}/detailswith a new model IDExpected Behaviour
Either:
Environment
https://dev.civicdataspace.in/dashboard/organization/civicdatalab/aimodels