Skip to content

Conversation

@ZacharyKlein
Copy link
Collaborator

This PR migrates away from the Permission entity class and replaces it with consistent using of the Permissions enum. The goal is to simplify the persistence around permissions/role permissions.

More details: #2136

Many updates were made to test fixtures to get the test suite working. Functionality should not be greatly changed except for the loss of the permission id (UUID).

- Refactor security filters and RolePermissionServices to use Permission enum
- Migration to drop composit key for role_permission table
- Updates to test fixtures
- Refactor security filters and RolePermissionServices to use Permission enum
- Migration to drop composit key for role_permission table
- Updates to test fixtures
# Conflicts:
#	server/src/main/java/com/objectcomputing/checkins/security/permissions/Permissions.java
#	server/src/main/java/com/objectcomputing/checkins/services/memberprofile/csvreport/MemberProfileReportController.java
#	server/src/main/java/com/objectcomputing/checkins/services/permissions/Permission.java
#	server/src/main/resources/db/dev/R__Load_testing_data.sql
#	server/src/test/java/com/objectcomputing/checkins/services/fixture/PermissionFixture.java
#	server/src/test/java/com/objectcomputing/checkins/services/fixture/RepositoryFixture.java
#	server/src/test/java/com/objectcomputing/checkins/services/role/role_permissions/RolePermissionsControllerTest.java
- Fixes to tests
@ZacharyKlein
Copy link
Collaborator Author

@mkimberlin Migration has been updated to copy over role_permission records to the new table structure

mkimberlin
mkimberlin previously approved these changes Apr 2, 2024
Copy link
Member

@mkimberlin mkimberlin left a comment

Choose a reason for hiding this comment

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

I feel like this covers the server side pretty well...now what will break on the frontend? Just permission management screen maybe? I think it keys off of the ids

pieperm

This comment was marked as resolved.

@pieperm pieperm self-requested a review April 4, 2024 15:49
pieperm

This comment was marked as resolved.

@pieperm

This comment was marked as resolved.

@pieperm pieperm self-requested a review April 5, 2024 22:46
@ZacharyKlein ZacharyKlein requested a review from mkimberlin April 10, 2024 15:39
@ZacharyKlein ZacharyKlein requested a review from pieperm April 10, 2024 19:05
@ZacharyKlein ZacharyKlein merged commit 6ce7c95 into develop Apr 11, 2024
@mkimberlin mkimberlin deleted the feature-2136/migrate-permission-entity branch August 27, 2024 18:43
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.

4 participants