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

Validate User Role Permissions JSONs #1140

Merged
merged 3 commits into from
Sep 25, 2023
Merged

Conversation

Mythicaeda
Copy link
Contributor

Description

A trigger was added to the user_role_permission table that checks if all the keys and permissions are actual Keys and Permissions. For Permissions, there is an additional check that Plan Merge Permissions are only applied to Plan Merge Functions.

Additionally, we were creating all the preloaded users/user-roles across several files. They've been moved to a single file: default_user_roles.sql

Verification

New Permissions DB tests were added

Documentation

No documentation changes are necessary

Future work

@Mythicaeda Mythicaeda added refactor A code change that neither fixes a bug nor adds a feature feature A new feature or feature request labels Sep 13, 2023
@Mythicaeda Mythicaeda self-assigned this Sep 13, 2023
@Mythicaeda Mythicaeda requested a review from a team as a code owner September 13, 2023 17:26
@Mythicaeda Mythicaeda temporarily deployed to e2e-test September 13, 2023 17:27 — with GitHub Actions Inactive
@Mythicaeda Mythicaeda temporarily deployed to e2e-test September 13, 2023 17:27 — with GitHub Actions Inactive
@Mythicaeda Mythicaeda temporarily deployed to e2e-test September 13, 2023 17:27 — with GitHub Actions Inactive
This will make it easier to maintain vs having the roles created and assigned permissions across multiple files
@Mythicaeda Mythicaeda force-pushed the feat/validate-urp-json branch from 6ce4b8f to b528aec Compare September 21, 2023 22:48
@Mythicaeda Mythicaeda temporarily deployed to e2e-test September 21, 2023 22:48 — with GitHub Actions Inactive
@Mythicaeda Mythicaeda temporarily deployed to e2e-test September 21, 2023 22:48 — with GitHub Actions Inactive
@Mythicaeda Mythicaeda temporarily deployed to e2e-test September 21, 2023 22:48 — with GitHub Actions Inactive
@Mythicaeda Mythicaeda force-pushed the feat/validate-urp-json branch from b528aec to 100261b Compare September 21, 2023 22:50
@Mythicaeda Mythicaeda temporarily deployed to e2e-test September 21, 2023 22:50 — with GitHub Actions Inactive
@Mythicaeda Mythicaeda temporarily deployed to e2e-test September 21, 2023 22:50 — with GitHub Actions Inactive
@Mythicaeda Mythicaeda temporarily deployed to e2e-test September 21, 2023 22:50 — with GitHub Actions Inactive
@Mythicaeda Mythicaeda force-pushed the feat/validate-urp-json branch from 100261b to 799c0ef Compare September 25, 2023 19:06
@Mythicaeda Mythicaeda temporarily deployed to e2e-test September 25, 2023 19:06 — with GitHub Actions Inactive
@Mythicaeda Mythicaeda temporarily deployed to e2e-test September 25, 2023 19:06 — with GitHub Actions Inactive
@Mythicaeda Mythicaeda temporarily deployed to e2e-test September 25, 2023 19:06 — with GitHub Actions Inactive
Copy link
Contributor

@adrienmaillard adrienmaillard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for the code walk-through.

@Mythicaeda Mythicaeda merged commit a18c037 into develop Sep 25, 2023
10 checks passed
@Mythicaeda Mythicaeda deleted the feat/validate-urp-json branch September 25, 2023 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature or feature request refactor A code change that neither fixes a bug nor adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Input validation of permissions in user roles table
3 participants