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

feat: #1626 Add tests pagination user role assignment endpoint #1646

Conversation

ianliuwk1019
Copy link
Collaborator

@ianliuwk1019 ianliuwk1019 commented Nov 4, 2024

Closes #1631

  • Use "create_date" as default sorting.
  • Return "create_date" for Get application-user-role-assignment endpoint.
  • Generalized sorting into paginate_service.
  • Use func.utcnow() instead of func.utcnow() to prevent using "fixed" time during model loading at FamUserRoleXref for now.
  • Re-gen client-code for application-user-role-assignment for frontend.
  • Add tests for paginate_service, crud_application.get_application_role_assignments and router_application GET "/{application_id}/user-role-assignment" endpoint for scenarios.

@ianliuwk1019 ianliuwk1019 marked this pull request as ready for review November 5, 2024 00:19
@ianliuwk1019 ianliuwk1019 requested a review from craigyu November 5, 2024 00:20
Copy link
Collaborator

@craigyu craigyu left a comment

Choose a reason for hiding this comment

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

Nicely done! Just added one question for one of the test files server/backend/testspg/crud/services/test_paginate_service.py

@ianliuwk1019 ianliuwk1019 requested a review from craigyu November 14, 2024 20:26
Copy link

Quality Gate Passed Quality Gate passed for 'nr-forests-access-management_admin'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@ianliuwk1019 ianliuwk1019 self-assigned this Nov 15, 2024
@ianliuwk1019 ianliuwk1019 merged commit 3c3ca61 into feat/backend-pagination-sort-search Nov 15, 2024
9 checks passed
@ianliuwk1019 ianliuwk1019 deleted the feat/1626-add-tests-pagination-user_role_assignment-endpoint branch November 15, 2024 18:32
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