-
-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[management] Refactor group to use store methods (#2867)
* Refactor setup key handling to use store methods Signed-off-by: bcmmbaga <[email protected]> * add lock to get account groups Signed-off-by: bcmmbaga <[email protected]> * add check for regular user Signed-off-by: bcmmbaga <[email protected]> * get only required groups for auto-group validation Signed-off-by: bcmmbaga <[email protected]> * add account lock and return auto groups map on validation Signed-off-by: bcmmbaga <[email protected]> * refactor account peers update Signed-off-by: bcmmbaga <[email protected]> * Refactor groups to use store methods Signed-off-by: bcmmbaga <[email protected]> * refactor GetGroupByID and add NewGroupNotFoundError Signed-off-by: bcmmbaga <[email protected]> * fix tests Signed-off-by: bcmmbaga <[email protected]> * Add AddPeer and RemovePeer methods to Group struct Signed-off-by: bcmmbaga <[email protected]> * Preserve store engine in SqlStore transactions Signed-off-by: bcmmbaga <[email protected]> * Run groups ops in transaction Signed-off-by: bcmmbaga <[email protected]> * fix missing group removed from setup key activity Signed-off-by: bcmmbaga <[email protected]> * fix merge Signed-off-by: bcmmbaga <[email protected]> * fix merge Signed-off-by: bcmmbaga <[email protected]> * fix sonar Signed-off-by: bcmmbaga <[email protected]> * Change setup key log level to debug for missing group Signed-off-by: bcmmbaga <[email protected]> * Retrieve modified peers once for group events Signed-off-by: bcmmbaga <[email protected]> * Add tests Signed-off-by: bcmmbaga <[email protected]> * Add account locking and merge group deletion methods Signed-off-by: bcmmbaga <[email protected]> * Fix tests Signed-off-by: bcmmbaga <[email protected]> --------- Signed-off-by: bcmmbaga <[email protected]>
- Loading branch information
Showing
22 changed files
with
866 additions
and
323 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
Oops, something went wrong.