Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions rework #72

Merged
merged 15 commits into from
Oct 12, 2023
Merged

Actions rework #72

merged 15 commits into from
Oct 12, 2023

Conversation

mike-pisman
Copy link
Member

@mike-pisman mike-pisman commented Oct 12, 2023

📑 Description

This PR changes organization of actions. The action modules were cleaned up to include only resource related actions. For example, actions to create groups were moved from workspace module to groups module, actions related to policies were moved to the new actions/policy.py module, etc.

The actions were also reformatted for the upcoming Route Update. Most actions now perform a permission check, as the route based check will be removed in the future. Actions were also upgraded for new query system that will be also included with new Routing system. For example, the action to get groups now accepts arguments such as name, workspace, and account so it is possible to get groups from specified workspace, or if the workspace is omitted, all groups where the user has permissions to view groups will be returned. By analogy, many actions now support arguments which will assist in update for the adding query parameters.

The old route endpoints now use the updated actions and successfully pass the old tests.

Moved actions to get list of groups and create new group to GroupActions
Added new route to get list of groups, by default returns all groups which a user has permission to view, the endpoint also accepts query parameters to filter list of groups by name, workspace, or account
Moved Members related actions to a separate module. The old routes use new actions to view, add, remove members from Group/Workspace
Added GroupCreateRequest for new POST /groups endpoint that will replace workspace/{id}/groups
@mike-pisman mike-pisman merged commit b843563 into main Oct 12, 2023
2 checks passed
@mike-pisman mike-pisman deleted the actions_rework branch October 13, 2023 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant