Closed vd1992 closed 1 month ago
Just to make sure your findings aren't lost @petertgiles This can be used to refine and create an issue to work on or edited as needed
I'm less confident about this plan for the "screening and assessment plan" kanban board due to the unusual "sort of paginated" nature. Maybe we scope that one out?
Seems reasonable to me, might not work having a unified query including that board/page
This issue needs more through reviewing with @vd1992 , @esizer & @Jerryescandon to sort out more stuff.
Things to update:
scopeOrderByClaimVerification
on candidate search page (all candidates table)Use verified priority refers to the pool candidate fields, avoid drawing from the user model. As a clarification
🐛 Bug
Right now our "Category" property for pool candidates is handled inconsistently. Sometimes the sorting uses a scope that takes validation into account, sometimes it doesn't, sometimes it handles it on the frotnend only. Usually the sorting happens on the backend and calculating the display name happens on the frontend. The whole system uses a numeric weight value that gets introduced into the business logic, making it harder to maintain.
🦋 Expected Behaviour
Sorting and naming should be happening on the backend. Backend sorting is mandatory to support paginated queries and the naming should happen with the same logic. Now that we have localized enums it should make the naming easier on the backend and we may even be able to get rid of the numeric weights. The three big pool candidate tables (pool candidate search, talent placement, screening and assessment) should be using shared logic for sorting and naming category.
🕵️ Details
https://github.com/GCTC-NTGC/gc-digital-talent/issues/10901#issuecomment-2225733446
📋 Steps to Reproduce
📸 Screenshot
🙋♀️ Proposed Solution
✅ Acceptance Criteria