jac-uk / admin

The Vue SPA for managing applications and applicants
https://admin.judicialappointments.digital
MIT License
4 stars 2 forks source link

Feat/2387 improve eligibility report v2 #2390

Closed KoWeiJAC closed 1 month ago

KoWeiJAC commented 1 month ago

What's included?

closed #2387

Who should test?

✅ Product owner ✅ Developers ✅ UTG

How to test?

Risk - how likely is this to impact other areas?

🟢 No risk - this is a self-contained piece of work

Additional context

Include screen grabs, video demo, notes etc.

Related permissions

Have permissions been considered for this functionality?


PREVIEW:DEVELOP can be OFF, DEVELOP or STAGING

github-actions[bot] commented 1 month ago

Visit the preview URL for this PR (updated for commit cb92b0e):

https://jac-admin-develop--pr2390-feat-2387-improve-el-s0bfjq10.web.app

(expires Sun, 30 Jun 2024 08:39:41 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4e92cf51659207b0ae3509dc5c40edde50edfec0

nickaddy commented 1 month ago

@KoWeiJAC I'm afraid you've misread this ticket: pls look again - for Statutory eligibility, we are asking to make a single recommendation for Statutory criteria, i.e. we need to display the flags for Prof Qualification and PQE but have only one recommendation dropdown and one reason free text field for the Statutory section.

Non-statutory section looks correct.

One other comment: is it possible to have a heavier line between candidates than we have within each candidate section?

image.png

I think this will help to pick out separate candidate entries.

KoWeiJAC commented 1 month ago

@nickaddy Thank you for finding this incorrect place out. I've had adjustments accordingly. The statutory issues share one overall recommendation and reason. Also, I've made the line below candidate name heavier. Could you help me to review those places again ? Thanks!

nickaddy commented 1 month ago

@KoWeiJAC The changes look good - thank you for remedying. However, there is a strange error occurring: when you make changes to the RLoS section dropdown and/or free text fields, the same changes are made to the equivalent fields in statutory section; pls investigate. I am happy to demo if it's not happening for you.

KoWeiJAC commented 1 month ago

@KoWeiJAC The changes look good - thank you for remedying. However, there is a strange error occurring: when you make changes to the RLoS section dropdown and/or free text fields, the same changes are made to the equivalent fields in statutory section; pls investigate. I am happy to demo if it's not happening for you.

@nickaddy Thank you for finding this bug, I've had a fix for it, could you help me to test it again? Thanks

nickaddy commented 1 month ago

@KoWeiJAC In reviewing the report download, I've noticed a couple of issues on this ticket:

nickaddy commented 1 month ago

@KoWeiJAC Some more comments from last week's UT:

KoWeiJAC commented 1 month ago

@KoWeiJAC Some more comments from last week's UT:

  • The test exercise had no PQE eligibility set so how was it awarding Met flags to candidates? I’ve changed it to 5y and refreshed but the calculation of PQE does not seem to be working properly
  • Related to the first point: Duration content in brackets missing after first candidate is missing
  • image.png
  • We need to rethink this filter; it was designed for just one recommendation dropdown: could it include candidates where 1 or more of the recommendation dropdowns is unassigned?
  • image.png
  • Once you have sorted the above, could you pls create an application that does meet all the criteria so that we can test the Display only candidates with Eligibility issues tickbox?

@nickaddy The refresh button is a little bit tricky, to prevent the system reset the recommendations, it only set one application for one time. It means if the application is added to report, this application won't be refreshed for not overwriting the existing recommendations. But the refresh button can add newly added applications to report. This mechanism is the same as the character issue report.

To improve it, maybe we can refresh(update) the application which have no recommendations. If the application have any recommendation being set, the refresh would skip this application for not overwriting those recommendations. Would you think it's workable ?

KoWeiJAC commented 1 month ago
  • The test exercise had no PQE eligibility set so how was it awarding Met flags to candidates?

@nickaddy The test exercise had no PQE eligibility set so how was it awarding Met flags to candidates? => The system will make the PQE to be Met as default if the PQE years is not set. Do we need to have change on this behaviour?

nickaddy commented 1 month ago

It looks like the only candidates that were flagged as Not Met were the ones that entered no work experience at all. If you check Exercise setup, the options under Eligibility Information are 5y, 7y or other - where you enter the number of years required. I don't understand how this exercise was created with 0 years PQE. If that is correct, even the candidates with no work experience should be flagged as Met.

KoWeiJAC commented 1 month ago

It looks like the only candidates that were flagged as Not Met were the ones that entered no work experience at all. If you check Exercise setup, the options under Eligibility Information are 5y, 7y or other - where you enter the number of years required. I don't understand how this exercise was created with 0 years PQE. If that is correct, even the candidates with no work experience should be flagged as Met.

Just had a test, when creating the legal exercise, the PQE field is not required, so user can leave it empty and the PQE will be 0 as default. I was using this exercise for test: https://jac-admin-develop--pr2390-feat-2387-improve-el-s0bfjq10.web.app/exercise/l6idrKzbXLr7BdJxmZvk/details/eligibility

Not sure if all the legal exercises need to look on PQE? If so, maybe we can make the PQE field required when creating exercise. To ensure PQE is greater than 0 and the candidates with no experience will be fagged Not Met.

Screenshot 2024-05-20 at 16 34 09
nickaddy commented 1 month ago

@KoWeiJAC I agree with your proposal above - the PQE field for legal exercises must be mandatory and any candidates that do not enter any experience flagged as Not Met (in addition to those that do not meet the required PQE.)

For reference, non-legal exercises do not request PQE according to my understanding.

HalcyonJAC commented 1 month ago

@KoWeiJAC I agree with your proposal above - the PQE field for legal exercises must be mandatory and any candidates that do not enter any experience flagged as Not Met (in addition to those that do not meet the required PQE.)

For reference, non-legal exercises do not request PQE according to my understanding.

@nickaddy

  1. The PQE field has been mandatory for legal exercises.
  2. The refresh button should be working now and it will keep the data of the recommendations.
nickaddy commented 1 month ago

@HalcyonJAC I can't find my comment, maybe it was in Slack, regarding the filter for unassigned, has this been fixed? The dropdown options should be All issues and Unassigned - the latter would show candidates where any of the 3 recommendations are not selected or any of the 3 free text fields not populated. Could you address the above pls?

HalcyonJAC commented 1 month ago

@HalcyonJAC I can't find my comment, maybe it was in Slack, regarding the filter for unassigned, has this been fixed? The dropdown options should be All issues and Unassigned - the latter would show candidates where any of the 3 recommendations are not selected or any of the 3 free text fields not populated. Could you address the above pls?

@nickaddy I have fixed the filter. Could you retest it, please?

nickaddy commented 1 month ago

@HalcyonJAC Looking good, Ryan. Can you pls:

  1. Remove the Generate report button
  2. Confirm how you have approached the Refresh button issue, i.e. what happens if content has already been input to the Eligibility report?
HalcyonJAC commented 1 month ago

@nickaddy

  1. The "Generate report" button has been removed.
  2. When users hit the Refresh button, it will populate data from applications again but also keep the fields (Recommendation, Reasons not satisfied, JAC comments).