pucardotorg / dristi

MIT License
2 stars 12 forks source link

E-filing: judgeId not set in the Case response payload #1616

Open subhashini-egov opened 1 month ago

subhashini-egov commented 1 month ago

Describe the bug API spec has defined three court related attributes:

judgeId - Employee code of Judge associated with the case. Search HRMS based on courtId and find the judge associated with the designation. benchId - Not applicable courtId - Master data ID of the court that's dealing with the case. Eg. Chief Judicial Magistrate of Kollam - I, CJMK-II etc

To Reproduce See case service payload below. judgeId is set to empty. courtId is hardcoded. { "ResponseInfo": { "apiId": "null", "ver": "null", "ts": null, "resMsgId": "uief87324", "msgId": "8c11c5ca-03bd-11e7-93ae-92361f002671", "status": "successful" }, "criteria": [ { "caseId": null, "defaultFields": false, "cnrNumber": null, "filingNumber": "", "outcome": null, "courtCaseNumber": null, "filingFromDate": null, "filingToDate": null, "registrationFromDate": null, "registrationToDate": null, "judgeId": null, "stage": [ "Pre-Trial", "Trial", "Post-Trial" ], "substage": null, "litigantId": null, "advocateId": null, "status": [ "PENDING_ADMISSION", "ADMISSION_HEARING_SCHEDULED", "CASE_ADMITTED" ], "responseList": [ { "id": "e02ee274-527b-429d-9d8a-ae44a1f34b00", "tenantId": "pg", "resolutionMechanism": "COURT", "caseTitle": "Complainant Aa vs First Name Respondents Name", "isActive": true, "caseDescription": "Case description", "filingNumber": "F-C.1973.002-2024-000714", "courtCaseNumber": null, "caseNumber": null, "cnrNumber": null, "accessCode": null, "outcome": null, "courtId": "CJFCM_KOLLAM", "benchId": null, "linkedCases": null, "filingDate": 1724930444253, "registrationDate": 0, "judgementDate": 0, "caseDetails": { "chequeDetails": { "formdata": [ { "data": { "ifsc": "NAME0FSIGNA", "name": "Name of Signatory of Dishonoured Cheque", "bankName": "Name of Signatory of Dishonoured Cheque Name of Signatory of Dishonoured Cheque", "depositDate": "2024-07-29", "infoBoxData": { "data": [ "CS_SIX_MONTH_BEFORE_DEPOSIT_TEXT", "CS_CHEQUE_RETURNED_INSUFFICIENT_FUND" ], "header": "CS_YOU_HAVE_CONFIRMED", "scrutinyHeader": "CS_COMPLAINANT_HAVE_CONFIRMED" }, "chequeAmount": "1234", "chequeNumber": "234567", "issuanceDate": "2024-07-29", "chequeSignatoryName": "Name of Signatory of Dishonoured Cheque", "returnMemoFileUpload": { "document": [ { "fileName": "CS_CHEQUE_RETURN_MEMO", "fileStore": "42bc16c0-8038-4552-9139-aa9494afef1e", "documentName": "A codeless test automation tool.jpeg", "documentType": "image/jpeg" } ] }, "bouncedChequeFileUpload": { "document": [ { "fileName": "CS_BOUNCED_CHEQUE", "fileStore": "94fa2306-3b14-464d-be96-7b59d38c7c58", "documentName": "A codeless test automation tool.jpeg", "documentType": "image/jpeg" } ] }, "depositChequeFileUpload": { "document": [ { "fileName": "CS_PROOF_DEPOSIT_CHEQUE", "fileStore": "63dd0a39-64e4-4a8d-a771-d015fced8aaa", "documentName": "A codeless test automation tool.jpeg", "documentType": "image/jpeg" } ] } }, "isenabled": true, "displayindex": 0 } ], "isCompleted": true }, "delayApplications": { "formdata": [ { "data": { "delayCondonationType": { "code": "YES", "name": "YES", "showForm": false, "isEnabled": true }, "condonationFileUpload": null }, "isenabled": true, "displayindex": 0 } ], "isCompleted": true }, "demandNoticeDetails": { "formdata": [ { "data": { "proofOfReply": { "code": "NO", "name": "NO", "isEnabled": true, "isVerified": true, "showProofOfReply": false, "hasBarRegistrationNo": true }, "dateOfAccrual": "2024-08-13", "dateOfService": "2024-07-29", "dateOfDispatch": "2024-07-29", "dateOfIssuance": "2024-07-29", "proofOfService": { "code": "NO", "name": "NO", "isEnabled": true, "isVerified": true, "hasBarRegistrationNo": true, "showProofOfAcknowledgment": false }, "modeOfDispatchType": { "modeOfDispatchType": { "code": "POST", "name": "POST", "isEnabled": true, "commonFields": true } }, "delayApplicationType": { "code": "YES", "name": "YES", "showForm": false, "isEnabled": true }, "proofOfReplyFileUpload": null, "proofOfDispatchFileUpload": { "document": [ { "fileName": "PROOF_OF_DISPATCH_FILE_NAME", "fileStore": "18d123aa-02cc-4cc3-83d4-6794b53b3d9c", "documentName": "A codeless test automation tool.jpeg", "documentType": "image/jpeg" } ] }, "legalDemandNoticeFileUpload": { "document": [ { "fileName": "LEGAL_DEMAND_NOTICE", "fileStore": "ad10e78a-d400-4390-a1e3-6cdd0f1763b9", "documentName": "A codeless test automation tool.jpeg", "documentType": "image/jpeg" } ] }, "proofOfAcknowledgmentFileUpload": null }, "isenabled": true, "displayindex": 0 } ], "isCompleted": true }, "debtLiabilityDetails": { "formdata": [ { "data": { "liabilityType": { "code": "FULL_LIABILITY", "name": "Full Liability", "isEnabled": true, "showAmountCovered": false }, "liabilityNature": { "code": "SALES", "name": "Sales Agreement", "isEnabled": true, "apiDetails": { "requestKey": "advocates", "serviceName": "/advocate/advocate/v1/_create", "AdditionalFields": [ "barRegistrationNumber" ] }, "isVerified": true, "showAmountCovered": true, "hasBarRegistrationNo": true }, "debtLiabilityFileUpload": null }, "isenabled": true, "displayindex": 0 } ], "isCompleted": true } }, "caseCategory": "CRIMINAL", "judgeId": null, "stage": "Pre-Trial", "substage": "Cognizance", "natureOfPleading": null, "statutesAndSections": [ { "id": "92fc94ca-bf8f-4dc4-a24e-bb78d7b067e4", "tenantId": "pg", "statute": null, "sections": [ "Negotiable Instrument Act", "02." ], "subsections": [ "138", "03." ], "additionalDetails": null, "auditdetails": { "createdBy": null, "lastModifiedBy": null, "createdTime": 0, "lastModifiedTime": 0 }, "strSections": null, "strSubsections": null } ], "litigants": [ { "id": "b2e463b3-2888-4e9f-b548-cdac0675a2e9", "tenantId": "pg", "caseId": "e02ee274-527b-429d-9d8a-ae44a1f34b00", "partyCategory": "INDIVIDUAL", "organisationID": null, "individualId": "IND-2024-08-12-000676", "partyType": "complainant.primary", "isActive": true, "documents": null, "auditDetails": { "createdBy": "533a9eea-d1f3-41c7-b128-65545c41d405", "lastModifiedBy": "8019187c-5e4b-4f18-902b-c86773a66558", "createdTime": 1724930321128, "lastModifiedTime": 1724930751463 }, "additionalDetails": { "uuid": "533a9eea-d1f3-41c7-b128-65545c41d405", "fullName": "Complainant Aa" } } ], "representatives": [ { "id": "17afb1af-b719-4de9-ad39-e7b028f694fc", "tenantId": "pg", "advocateId": "31d2452b-3857-473c-bc27-7f81037dfadd", "caseId": "e02ee274-527b-429d-9d8a-ae44a1f34b00", "representing": [ { "id": "6a8a6176-39d6-4b95-8c91-242f62b88298", "tenantId": "pg", "caseId": "e02ee274-527b-429d-9d8a-ae44a1f34b00", "partyCategory": "INDIVIDUAL", "organisationID": null, "individualId": "IND-2024-08-12-000676", "partyType": "complainant.primary", "isActive": true, "documents": null, "auditDetails": { "createdBy": "533a9eea-d1f3-41c7-b128-65545c41d405", "lastModifiedBy": "8019187c-5e4b-4f18-902b-c86773a66558", "createdTime": 1724930321128, "lastModifiedTime": 1724930751463 }, "additionalDetails": { "uuid": "533a9eea-d1f3-41c7-b128-65545c41d405", "fullName": "Complainant Aa" } } ], "isActive": true, "documents": null, "auditDetails": { "createdBy": "533a9eea-d1f3-41c7-b128-65545c41d405", "lastModifiedBy": "8019187c-5e4b-4f18-902b-c86773a66558", "createdTime": 1724930321128, "lastModifiedTime": 1724930751463 }, "additionalDetails": { "uuid": "fb7f9bf3-b5ea-406d-8f87-f8e014b49f58", "advocateName": "Vignesh Nayak" } } ], "status": "PENDING_ADMISSION", "documents": null, "remarks": null, "workflow": { "action": "PENDING_ADMISSION", "comments": "Payment for Case processed", "documents": null, "assignes": null, "rating": null }, "additionalDetails": { "scrutiny": {}, "payerName": "Complainant Aa", "payerMobileNo": "9517538246", "reviewCaseFile": { "formdata": [ { "data": {}, "isenabled": true, "displayindex": 0 } ], "isCompleted": true }, "witnessDetails": { "formdata": [], "isCompleted": true }, "advocateDetails": { "formdata": [ { "data": { "advocateId": "31d2452b-3857-473c-bc27-7f81037dfadd", "advocateName": "Vignesh Nayak", "barRegistrationNumber": "9999992223", "vakalatnamaFileUpload": { "document": [ { "fileName": "UPLOAD_VAKALATNAMA", "fileStore": "74589416-ac96-4283-bcae-a8b4dbe31982", "documentName": "1716461437966YjmHOjpbNy.png", "documentType": "image/png" } ] }, "isAdvocateRepresenting": { "code": "YES", "name": "Yes", "showForm": true, "isEnabled": true }, "advocateBarRegNumberWithName": [ { "icon": { "key": null, "ref": null, "type": "span", "props": { "style": { "display": "flex", "justifyContent": "space-between" }, "children": [ { "key": null, "ref": null, "type": "span", "props": { "children": "9999992223", "className": "icon" }, "_owner": null }, { "key": null, "ref": null, "type": "span", "props": { "style": { "justifyContent": "end" }, "children": "Vignesh Nayak", "className": "icon" }, "_owner": null } ], "className": "icon" }, "_owner": null }, "modified": true, "advocateId": "31d2452b-3857-473c-bc27-7f81037dfadd", "advocateName": "Vignesh Nayak", "advocateUuid": "fb7f9bf3-b5ea-406d-8f87-f8e014b49f58", "barRegistrationNumber": "9999992223", "barRegistrationNumberOriginal": "9999992223" } ], "barRegistrationNumberOriginal": "9999992223" }, "isenabled": true, "displayindex": 0 } ], "isCompleted": true }, "respondentDetails": { "formdata": [ { "data": { "addressDetails": [ { "id": "2d2cf856-8c9a-4e67-86a3-724b30bedacc", "addressDetails": { "city": "Bidar", "state": "Karnataka", "pincode": "585401", "district": "Bidar", "locality": "Nawadgeri", "coordinates": { "latitude": 17.922154164912012, "longitude": 77.51990789999999 } } } ], "respondentType": { "code": "INDIVIDUAL", "name": "Individual", "isEnabled": true, "commonFields": true, "showCompanyDetails": false }, "respondentLastName": "Respondents Name", "respondentFirstName": "First Name", "companyDetailsUpload": null, "inquiryAffidavitFileUpload": null }, "isenabled": true, "displayindex": 0 } ], "isCompleted": true }, "complainantDetails": { "formdata": [ { "data": { "lastName": "Aa", "firstName": "Complainant", "middleName": "", "complainantId": { "complainantId": true }, "addressDetails": { "city": "Kondapur", "state": "Telangana", "pincode": "500084", "district": "Rangareddy", "locality": "Abc123, ABC, 123", "coordinates": { "latitude": "", "longitude": "" } }, "complainantType": { "code": "INDIVIDUAL", "name": "Individual", "isEnabled": true, "commonFields": true, "isIndividual": true, "showCompanyDetails": false, "complainantLocation": true }, "companyDetailsUpload": null, "addressDetails-select": { "city": "Kondapur", "state": "Telangana", "pincode": "500084", "district": "Rangareddy", "locality": "Abc123, ABC, 123" }, "complainantVerification": { "otpNumber": "123456", "mobileNumber": "9517538246", "isUserVerified": true, "individualDetails": { "document": null, "individualId": "IND-2024-08-12-000676", "addressDetails": { "city": "Kondapur", "state": "Telangana", "pincode": "500084", "district": "Rangareddy", "locality": "Abc123, ABC, 123", "coordinates": { "latitude": "", "longitude": "" } }, "addressDetails-select": { "city": "Kondapur", "state": "Telangana", "pincode": "500084", "district": "Rangareddy", "locality": "Abc123, ABC, 123" } } } }, "isenabled": true, "displayindex": 0 } ], "isCompleted": true }, "prayerSwornStatement": { "formdata": [ { "data": { "infoBoxData": { "data": "Under what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\n", "header": "CS_RESOLVE_WITH_ADR" }, "swornStatement": null, "prayerForRelief": { "text": "Under what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\n" }, "additionalDetails": { "text": "Under what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Reso" }, "memorandumOfComplaint": { "text": "Under what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nUnder what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\nv" }, "SelectUploadDocWithName": null, "caseSettlementCondition": { "text": "Under what conditions would the complainant(s) be willing to settle the case through some form of Alternate Dispute Resolution? (optional)\n\n" }, "prayerAndSwornStatementType": { "code": "YES", "name": "YES" } }, "isenabled": true, "displayindex": 0 } ], "isCompleted": true } }, "auditDetails": { "createdBy": "533a9eea-d1f3-41c7-b128-65545c41d405", "lastModifiedBy": "8019187c-5e4b-4f18-902b-c86773a66558", "createdTime": 1724930321128, "lastModifiedTime": 1724930751463 } } ], "pagination": { "limit": 1, "offSet": 0, "totalCount": 66, "sortBy": null, "order": null } } ], "pagination": null } Expected behavior

benchId should not be set. judgeId and courtId to be set to appropriate values.

Additional context This is must-fix because this has implications for everything down the line. This has already been called out as part of the code review done earlier on Case. Specifically creating this issue for visibility.

manimaarans commented 1 week ago

We are using hard coded Judge id and courtId ID defined in the env variable , currently hrms is not working as expected @atulgupta2024 cc: @Ramu-kandimalla @anirudh-0