-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: cascade delete of plugins_configurations. fix #107
This proposes a way to delete all `plugins_configurations` related to `Consumers` or `APIs` when deleting one of the two later. `:delete()` is simply overridden to iterate over all related `plugins_configuration` and delete them one by one. Caveats: - I am very unhappy with how painful it is to use one DAO inside another DAO. To avoid what would appear to be a cycling reference I rather opted for instanciating a new DAO inside of the `delete` method. - It is painful to perform a paginated query through the base_dao. - It is even more painful to perform a find_by_keys query as a paginated query.
- Loading branch information
1 parent
617503f
commit e3fbadd
Showing
7 changed files
with
301 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.