API methods for removing worlds and games #115
Labels
No labels
Doing
To Do
bug
clarification needed
duplicate
enhancement
help wanted
invalid
question
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nik/veripeditus-server#115
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?
First, add a column named enabled to Game. Add an on_update trigger, which will ensure that if a game is disabled, all worlds related to it are disabled, too (look into SQLAlchemy docs for how to add on_update triggers).
Add an API method (a method following the structure of our API methods, decorated as api_method) to World, which will delete the world and all objects related to it, but only if the world was disabled before. Also add an API method to Game, which deletes the game if it is disabled, and cascades to the delete methods of all associated worlds.
Reassigned to @eike
Also, in the code scanning available games, add a reverse scan that looks for objects in the game table, disabling all games that are not available anymore.
Mentioned in commit
1625ef3038Mentioned in commit
f62edf7f2cMentioned in commit
6db81d30e5Done
Status changed to closed
Status changed to reopened
You missed out on my last comment…
Status changed to closed by commit
e6427da722