Data store records changed
A refusal to delete the records a search matches, because the search no longer matches the number of records you were shown.
| Field | Value |
|---|---|
type |
https://mockhub.dev/problems/store-records-changed |
| Status | 409 |
What it means
Section titled “What it means”A delete by search sends the count you saw as expectedTotal. MockHub runs the search again and deletes only while it matches exactly that many records. When a mock, a teammate or a script added, changed or removed a matching record in between, nothing is deleted, so a record you never saw is never deleted with the rest.
Status
Section titled “Status”Always 409.
Where it comes from
Section titled “Where it comes from”From Delete after Select all matching on a collection’s page, and from mockhub store delete --filter … --yes.
| When | detail |
|---|---|
| Always | The search now matches 3 records, not the 2 you saw. Nothing was deleted; search again and try again. |
This type carries no extension members.
{ "type": "https://mockhub.dev/problems/store-records-changed", "title": "Data store records changed", "status": 409, "detail": "The search now matches 3 records, not the 2 you saw. Nothing was deleted; search again and try again."}What to do
Section titled “What to do”- Search again, look at what matches now, and delete again.
- From a script, count the matches again for a new
expectedTotal, or delete bykeys, which removes those records whatever else changed.