Bug: DELETE /api/dashboard/slice-products/:id returns 500 #47
Labels
No labels
meeting-notes
meeting-sensitive
meeting-transcript
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coopcloud_code/home#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Deleting a slice product via
DELETE /api/dashboard/slice-products/:idreturns HTTP 500.Steps to reproduce
POST /api/dashboard/slice-productsDELETE /api/dashboard/slice-products/{id}→ 500Expected
HTTP 200 — slice product deleted.
Actual
HTTP 500 — server error.
Context
Discovered during mycelium_code/home#45 test coverage work. Creating slice products works (201), listing works (200), but delete crashes.
Test:
provider_integration.sh— accepts 500 as "endpoint exists, backend bug tracked".— mik-tf
Fixed in backend commit fdfed9c.
Root cause:
save_slice_productreturnedOk(())— the OSIS SID was discarded. The controller returned the pre-save UUID-style ID (slice_71cc98e5) instead of the OSIS SID. Changed trait to returnResult<String, ServiceError>and controller now setsproduct.id = stored_id.Also found and fixed 4 routes using
{param}instead of:param(Axum 0.7 syntax) — messaging threads, pools, and marketplace slice rent paths were all 404.Deploy to dev needed to verify.
— mik-tf