On 2025-08-14 00:58:52 +0000 (+0000), Khalil, Ghada wrote: [...]
I get the following error when trying to delete the "stx.11.0" label from this storyboard: https://storyboard.openstack.org/#!/story/2011361
500: DELETE /api/v1/stories/2011361/tags: DELETE statement on table 'story_storytags' expected to delete 1 row(s); Only 2 were matched. [...]
Thanks for reporting, I've cleaned this up by manually deleting it in the database just now. For those curious, it looks like the story_storytags table is intended and expected not to contain duplicate rows, but if there's any enforcement of that it's probably only being done in TOCTOU racy checks in SB itself instead. The edit log suggests that the tag was reapplied within 5 seconds, so if the system was loaded and/or DB backend was slow to respond at that time it could easily explain what happened. -- Jeremy Stanley