Add dependency validation to DELETE /api/v1/projects/{project_pk}/features/{id}/.
Acceptance criteria
- Deleting (not archiving) a feature is rejected with a 400 while any
SegmentFlagReference row points at it.
- Removing the last reference allows deletion to proceed.
Add dependency validation to
DELETE /api/v1/projects/{project_pk}/features/{id}/.Acceptance criteria
SegmentFlagReferencerow points at it.