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

Update UserDbRequest models #3

Merged
merged 19 commits into from
Nov 21, 2024
Merged

Conversation

NeonDaniel
Copy link
Member

@NeonDaniel NeonDaniel commented Nov 8, 2024

Description

Refactors UserDbRequest into seprate schemas for CRUD operations
Maintains compat. with users service by determining model based on the requested operation
Adds a users permissions config and annotates PermissionsConfig values

Issues

Other Notes

Needs to be rebased on dev after merge of #2

@NeonDaniel NeonDaniel force-pushed the FEAT_UpdateUserDbCRUDOperations branch 2 times, most recently from 367fb53 to 66d5bbf Compare November 12, 2024 02:12
@NeonDaniel NeonDaniel force-pushed the FEAT_UpdateUserDbCRUDOperations branch from 66d5bbf to 532e288 Compare November 19, 2024 21:33
Update TokenConfig model to reflect expected database schema
Refactor AccessRoles values to allow for more in-between values
Add methods to read/dump PermissionsConfig to JWT-compatible role strings
…omment

Update unit test to account for token config change
Refactor `HanaToken` to include params previously used in `TokenConfig`
Maintains compat. with users service by determining model based on the requested `operation`
… admin-authenticated changes

Finish test coverage for MQ user database CRUD models
Update raised exception to use exact keys
… any read operation

Define "READ_USERS" role and annotate special roles
Validate passed token as an access token, rather than refresh
Annotate config values in PermissionsConfig to describe application of permissions
Add a `users` permission to define access to the users service independent of the rest of the backend (matches `node` and `llm` behavior)
@NeonDaniel NeonDaniel force-pushed the FEAT_UpdateUserDbCRUDOperations branch from 532e288 to 131c5fa Compare November 19, 2024 23:21
… already define read and write access, respectively
Add import tests to ensure all imports resolve
@NeonDaniel NeonDaniel force-pushed the FEAT_UpdateUserDbCRUDOperations branch from 98fc370 to d4bd68a Compare November 20, 2024 00:40
@NeonDaniel NeonDaniel requested a review from mikejgray November 20, 2024 02:16
@NeonDaniel NeonDaniel marked this pull request as ready for review November 20, 2024 02:16
@NeonDaniel NeonDaniel merged commit db62bab into dev Nov 21, 2024
6 checks passed
@NeonDaniel NeonDaniel deleted the FEAT_UpdateUserDbCRUDOperations branch November 21, 2024 21:28
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.

2 participants