-
Notifications
You must be signed in to change notification settings - Fork 35
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
B-21961/I-13804: Pagination and Sorting on Transportation office #14754
base: integrationTesting
Are you sure you want to change the base?
B-21961/I-13804: Pagination and Sorting on Transportation office #14754
Conversation
…g' into B-21961-Add-Roles-To-Requested-Office-Users-List-Sorting-fix-int
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.
…rs-List-Sorting' into B-21961-Add-Roles-To-Requested-Office-Users-List-Sorting-fix-int
…g' into B-21961-Add-Roles-To-Requested-Office-Users-List-Sorting-fix-int
Checking on this now. Dang pop query
@danieljordan-caci Fixed. Needed to adjust the query a bit. |
…-Office-Users-List-Sorting-fix-int
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.
Looks good! Tried out filtering/sorting with 4-5 different users, approved one and it wasn't showing up in the search anymore. Send it.
…-Office-Users-List-Sorting-fix-int
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.
…-Office-Users-List-Sorting-fix-int
…-Office-Users-List-Sorting-fix-int
…g' into B-21961-Add-Roles-To-Requested-Office-Users-List-Sorting-fix-int
@cameroncaci as discussed via Slack. These lines are covered from test I put in pkg/handlers/adminapi. The "Go: Toggle Test Coverage Tool in Current package" does not take into account tests in other packages that covers these lines of code. I added additional tests in pkg/services/requested_office_users to cover some of these lines as well. Overall all lines are covered by a test. Test coverage in this package has now went from 80.9 to 85.7. |
…-Office-Users-List-Sorting-fix-int
…-Office-Users-List-Sorting-fix-int
Agility ticket
Issue ticket
Summary
In this PR the following has been added :
Is there anything you would like reviewers to give additional scrutiny?
this article explains more about the approach used.
Verification Steps for the Author
These are to be checked by the author.
Verification Steps for Reviewers
These are to be checked by a reviewer.
Setup to Run the Code
How to test
Access the admin app
Go to the Requested Office Users Tab
Notice the roles are now showing on the list
![image](https://private-user-images.githubusercontent.com/136514590/406427185-df38f1d3-8eb6-4cd0-b508-0860759e6e73.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMDQ1NjUsIm5iZiI6MTczOTAwNDI2NSwicGF0aCI6Ii8xMzY1MTQ1OTAvNDA2NDI3MTg1LWRmMzhmMWQzLThlYjYtNGNkMC1iNTA4LTA4NjA3NTllNmU3My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwODQ0MjVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMzc3N2M1ZDFkZTlmYjg4MDE0MWM4ZDcxNDI2YWFjOGRjOTVjYjEzODMyMjUyYjU4MjA2MDQ4MzM2M2Y5M2IxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.zxM3xyjibBgFEFlquGCWTgh4A1fr6nUOwvg7Cq2Vbnk)
Type in the Transportation Office Filter - I typed USAF
![image](https://private-user-images.githubusercontent.com/136514590/406427615-823c62f6-bdcb-4574-a054-5ad8204bfdda.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMDQ1NjUsIm5iZiI6MTczOTAwNDI2NSwicGF0aCI6Ii8xMzY1MTQ1OTAvNDA2NDI3NjE1LTgyM2M2MmY2LWJkY2ItNDU3NC1hMDU0LTVhZDgyMDRiZmRkYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwODQ0MjVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00YzJjNDgxY2QwZWIzZjBlYTIxYWI3YmQ5ZjBmN2M2YWI4MTczMTRmN2VlMTE3MmEwNzliOWY0YmRmOWE3YTQ3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.yOxbxmSSzR1SG23HzqEUHJH0a-YLQZTFQowuy55Ykt8)
Type into the Roles Filter - I typed "Ta" for Task Ordering and Task Invoicing
![image](https://private-user-images.githubusercontent.com/136514590/406428544-6f401347-a9c8-40ba-9d2a-b23d660671b4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMDQ1NjUsIm5iZiI6MTczOTAwNDI2NSwicGF0aCI6Ii8xMzY1MTQ1OTAvNDA2NDI4NTQ0LTZmNDAxMzQ3LWE5YzgtNDBiYS05ZDJhLWIyM2Q2NjA2NzFiNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwODQ0MjVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zOWI0OWEwZThjYjg0ODM2NGM5M2FiNzY5YTIxZWNkYWMyOTBlMGQwYjgxZjFhZGNmZWNiYjIzNTVmZTIyMDAxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.f4g28OMuCd_vXbTmwQqSm2ckvWTP_4x7Pfz-c6StK5Q)
Type into both filter
![image](https://private-user-images.githubusercontent.com/136514590/406428902-eb16d902-b351-4a05-a7b0-d07466f823e7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMDQ1NjUsIm5iZiI6MTczOTAwNDI2NSwicGF0aCI6Ii8xMzY1MTQ1OTAvNDA2NDI4OTAyLWViMTZkOTAyLWIzNTEtNGEwNS1hN2IwLWQwNzQ2NmY4MjNlNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwODQ0MjVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZmRkNGU2ODUxNDEzNWYwZjc3MDhkYjMwMGMxMjdmNTE1NjNkNDlkNjZiMjkyNTk2YzFlYzQwOWM4NmM3ZGQ4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.8DRdqXeXpUDoHzTo6dhCnGo_rHxtVzUIlIGd_V3KBfU)
Sort list based on the different columns
Frontend
officeApp
class or custommin-width
styling is used to hide any states the would not be visible to the user.Backend
Database
Any new migrations/schema changes:
Screenshots