-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: #1537 create an api to return audit information #1587
feat: #1537 create an api to return audit information #1587
Conversation
…-information # Conflicts: # server/flyway/sql/V55__create_permission_audit_and_code_tables.sql
@ianliuwk1019 I definitely see what you meant by grouping some schemas now, I have 3 schemas under I won't be doing more schema changes here in order to keep this PR relatively small. I can do that if we have more time by the end of the sprint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Craig!
Just some information. In the past, (although I copy-paste the model class for the need but) I think Catherine sometimes used sqlacodegen
tool to generated them to use.
This is the command to generate when you have db up: sqlacodegen --generator declarative postgresql+psycopg2://postgres:postgres@localhost:5432/fam --schemas app_fam > ./api/app/models/model.py
(was documented in one of the past ticket). See if it is easier for you.
This reverts commit 95e6830.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for lots of docs in functions/classes!!
Looks good to me, just minor comments.
…rmation # Conflicts: # frontend/src/components/managePermissions/table/UserDataTable.vue
Quality Gate passed for 'nr-forests-access-management_admin'Issues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the big PR!!
Closes: #1537
Adds a GET endpoint
/permission-audit-history
Tests are also added, router tests are isolated by mocking the data returned from the crud function.
Crud tests are still interacting with the DB.
Thanks reviewers, changes are applied as requested.
For
permission_type
andscope_type
, I opted to use the human friendly format.I've highlighted the new changes in the comments below so it's easier to find