pucardotorg / dristi

MIT License
2 stars 12 forks source link

PROD SUPPORT: Bench clerk is getting cases without scrutiny check #2556

Open Susmitabe opened 4 days ago

Susmitabe commented 4 days ago

Describe the bug "3 issues with bench clerk's (CRM's) ID:

  1. Cases directly coming to the bench clerk's (CRM's) ID without scrutiny
  2. Lots of test cases on the bench clerk's (CRM's) ID
  3. Cases not filed and merely in draft format are also visible on the bench clerk's (CRM's) ID "
anirudh-0 commented 4 days ago

Manimaaran: we need to pass the appropriate filter values so that Courtstaff see only the cases that are in relavant stage

@vaibhavct can you work on this ?

manimaarans commented 4 days ago

Hi @Taherabharmal @devarajd94 @anshumanth-egov what are the stages and substages of the cases that we want courtstaff to see on their home screen cc: @anirudh-0 @vaibhavct

vaibhavct commented 4 days ago

@Taherabharmal @devarajd94 @manimaarans We're sending following status in criterea "PENDING_REGISTRATION", "PENDING_ADMISSION", "ADMISSION_HEARING_SCHEDULED", "CASE_ADMITTED", "PENDING_ADMISSION_HEARING", "PENDING_NOTICE", "PENDING_RESPONSE", c.c. @Ramu-kandimalla

atulgupta2024 commented 4 days ago

@vaibhavct @manimaarans i had pointed out for Judge's case visibility also. if we tightly bind this to workflow states, then it becomes an issue, as when a workflow changes, it will break the flow.

we need to have a business requirement and then figure out how to control the access. AVOID using workflow stages directly

also my take is that bench clerk would start to see a case just like a judge does.

vaibhavct commented 4 days ago

@Taherabharmal @devarajd94 @manimaarans @atulgupta2024 Let me know how we're going to proceed on it further. c.c. @anirudh-0 @Ramu-kandimalla

atulgupta2024 commented 4 days ago

I would think that Judge's access should get enabled once he/she is assigned to the case. So a judge sees only those cases where his/her ID is judge's ID.

If bench clerks are associated with a Judge, then they should see the same cases. This may not need an explicit assignment.

if they are not a single judge specific, but are rather court complex/building specific or work across multiple court rooms, judges, then the same logic will apply and will need to search across judges. Will need to figure out a way to optimize this search

@subhashini-egov thoughts?

subhashini-egov commented 4 days ago

A bench clerk is assigned to the case by default basis the judge ID. Judges and bench clerks are linked to each other via court rooms. This is all done in the HRMS. So the logic should be:

If required, we can consider adding an addition param to the APi spec to explicity call out the bench clerk assigned to the case. This can be an array so we can keep deactivating/reactivating as clerks keep changing. And it should listen for changes to bench clerk assignments from HRMS/masters so it can also update the case. This can be documented as workaround in lieu of doing it in code.

mehulseg24 commented 2 days ago

@Susmitabe @rajeshcherukumalli - who is picking this ticket in the team.

CC: @manimaarans

mehulseg24 commented 1 day ago

Sync with Susmita on this conducted with PT as on 28/11