util function to only allow creating one database entry for a given key #3
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?
There are a few things (like memberships) that don't make sense to create more than one instance of for any given user/id pair. While it currently doesn't break anything, it's an invalid state. W& aren't entirely sure how it would work at this time (might make more sense in the future), but leaving this issue here as a note to whoever ends up implementing/needing it.
This is a thing the database can do, apparently. The postgresql documentation should explain atomic operations and how to use unique combined data as a way to make this kind of thing atomic. The server should expect only this particular type of failure and handle it correctly ("You have already claimed this task" or whatever message is relevant).