Skip to content

HDPI-6421: Legal rep upload event#1855

Open
aqibh25 wants to merge 128 commits into
masterfrom
HDPI-6421-upload-doc-legal-rep
Open

HDPI-6421: Legal rep upload event#1855
aqibh25 wants to merge 128 commits into
masterfrom
HDPI-6421-upload-doc-legal-rep

Conversation

@aqibh25

@aqibh25 aqibh25 commented May 20, 2026

Copy link
Copy Markdown
Contributor

Jira link

See HDPI-6421

Change description

Initial creation of the new legal representative document upload event.

Testing done

Manual and unit tests

Security Vulnerability Assessment

CVE Suppression: Are there any CVEs present in the codebase (either newly introduced or pre-existing) that are being intentionally suppressed or ignored by this commit?

  • Yes
  • No

Checklist

  • commit messages are meaningful and follow good commit message guidelines
  • README and other documentation has been updated / added (if needed)
  • tests have been updated / new tests has been added (if needed)
  • Does this PR introduce a breaking change

m014389b and others added 30 commits April 20, 2026 17:37
- map organisation address to legal rep
- move idam token validation to controller
…as not yet used and minimial effort to add in when needed
… role

- if leg rep, create draft per active linked defendant
- expand draft to include party id for legal rep with multiple defendants
- added party_id to draft unique index but allow for null so as to not break citizen draft uniqueness
# Conflicts:
#	src/main/java/uk/gov/hmcts/reform/pcs/ccd/repository/legalrepresentative/LegalRepresentativeRepository.java
#	src/main/java/uk/gov/hmcts/reform/pcs/service/LegalRepresentativePartyLinkService.java
#	src/test/java/uk/gov/hmcts/reform/pcs/ccd/event/respondpossessionclaim/SubmitEventHandlerTest.java
#	src/test/java/uk/gov/hmcts/reform/pcs/ccd/page/respondpossessionsclaim/RespondToPossessionDraftSavePageTest.java
# Conflicts:
#	src/main/java/uk/gov/hmcts/reform/pcs/ccd/service/CaseRoleAssignmentService.java
#	src/test/java/uk/gov/hmcts/reform/pcs/ccd/service/CaseRoleAssignmentServiceTest.java
#	src/test/java/uk/gov/hmcts/reform/pcs/service/PartyAccessCodeLinkServiceTest.java
@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown

CCD diff summary

👉 Full report: https://github.com/hmcts/pcs-api/actions/runs/28227537175?check_suite_focus=true

CaseField.json

RegularExpressionMaxSearchableMinFieldTypeParameterHintTextLabelIDFieldType
+
+
+
+
+
+
+Do these documents relate to an existing application?
+DocumentUploadCategories
+DynamicRadioList
+
+
+
+
+
+
+<p class="govuk-body">
    We usually share anything you upload with the other party, for example your landlord, housing
    association or mortgage provider.
</p>
 <p class="govuk-body">
    If your application is 'without notice' (where you have asked us to consider your application
    without telling the other party) we will not share anything with them.
</p>
+existingApplication-content
+Label
+
+
+
+
+
+
+---
+existingApplication-line-separator
+Label
+
+
+N
+
+
+
+ 
+showExistingApplicationPage
+YesOrNo
+
+
+
+
+
+
+<p class="govuk-body">
    You can upload a document to support an application, or to show proof that you have done
    something.
</p>

<div class="govuk-details__text govuk-!-margin-bottom-5">
    <p class="govuk-body">
        We usually share anything you upload with the other party, for example your landlord,
        housing association or mortgage provider.
    </p>
    <p class="govuk-body">
        If your application is 'without notice' (where you have asked us to consider your
        application without testing the other party) we will not share anything with them.
    </p>
</div>
<p class="govuk-body govuk-!-font-weight-bold govuk-!-font-size-24">What you can upload
</p>

<p class="govuk-body">
    You can upload any documents that you think are relevant.
</p>

<p class="govuk-body govuk-!-margin-bottom-0">For example, you can share:</p>
<ul class="govuk-list govuk-list--bullet">
    <li class="govuk-!-font-size-19">evidence that a judge has asked for, like bank statements
    showing your rent payments
    </li>
    <li class="govuk-!-font-size-19">photographs of the property in a state of disrepair, like
    damp in the bathroom</li>
   <li class="govuk-!-font-size-19">a report from an electrician or a plumber, showing evidence of
   a repair that needs to be done</li>
   <li class="govuk-!-font-size-19">emails or letters from the claimant (your landlord, housing
   association, or mortgage lender)</li>
</ul>

<p class="govuk-body govuk-!-margin-bottom-0">You can upload the following file types:</p>
<ul class="govuk-list govuk-list--bullet">
    <li class="govuk-!-font-size-19">DOC/DOCX(Word)</li>
   <li class="govuk-!-font-size-19">XLS/XLSX(Excel)</li>
   <li class="govuk-!-font-size-19">PPT/PPTX(PowerPoint)</li>
   <li class="govuk-!-font-size-19">PDF</li>
   <li class="govuk-!-font-size-19">RTF</li>
   <li class="govuk-!-font-size-19">TXT</li>
   <li class="govuk-!-font-size-19">CSV</li>
   <li class="govuk-!-font-size-19">JPG/JPEG</li>
   <li class="govuk-!-font-size-19">PNG</li>
   <li class="govuk-!-font-size-19">BMP</li>
   <li class="govuk-!-font-size-19">TIF/TIFF</li>
</ul>
<p class="govuk-body">
    You cannot upload video or audio files.
</p>
+uploadAdditionalDocumentsInformation-content
+Label
+
+
+
+
+
+
+---
+uploadAdditionalDocumentsInformation-line-separator
+Label

AuthorisationCaseEvent/AuthorisationCaseEvent.json

UserRoleCaseEventIDCRUD
+[DEFENDANTSOLICITOR]
+legalRepDocumentUpload
+CRUD

AuthorisationCaseField/DEFENDANTSOLICITOR.json

UserRoleCaseFieldIDCRUD
+[DEFENDANTSOLICITOR]
+DocumentUploadCategories
+CRUD
+[DEFENDANTSOLICITOR]
+existingApplication-content
+CR
+[DEFENDANTSOLICITOR]
+existingApplication-line-separator
+CR
+[DEFENDANTSOLICITOR]
+showExistingApplicationPage
+CRUD
+[DEFENDANTSOLICITOR]
+uploadAdditionalDocumentsInformation-content
+CR
+[DEFENDANTSOLICITOR]
+uploadAdditionalDocumentsInformation-line-separator
+CR

CaseEvent/legalRepDocumentUpload.json

CallBackURLAboutToStartEventDescriptionEndButtonLabelIDNamePostConditionStatePreConditionState(s)PublishShowEventNotesShowSummary
+http://localhost:3206/callbacks/about-to-start?eventId=legalRepDocumentUpload
+Upload additional documents
+Save and continue
+legalRepDocumentUpload
+Upload additional documents
+*
+*
+N
+N
+Y

CaseEventToFields/legalRepDocumentUpload.json

CaseEventIDCaseFieldIDDisplayContextPageColumnNumberPageDisplayOrderPageFieldDisplayOrderPageIDPageLabelShowSummaryChangeOption
+legalRepDocumentUpload
+DocumentUploadCategories
+MANDATORY
+1
+2
+4
+existingApplication
+Confirm if these documents relate to an existing application
+Y
+legalRepDocumentUpload
+existingApplication-content
+READONLY
+1
+2
+3
+existingApplication
+Confirm if these documents relate to an existing application
+legalRepDocumentUpload
+existingApplication-line-separator
+READONLY
+1
+2
+2
+existingApplication
+Confirm if these documents relate to an existing application
+legalRepDocumentUpload
+showExistingApplicationPage
+READONLY
+[STATE]="NEVER_SHOW"
+1
+2
+1
+existingApplication
+Confirm if these documents relate to an existing application
+showExistingApplicationPage="Yes"
+Y
+legalRepDocumentUpload
+uploadAdditionalDocumentsInformation-content
+READONLY
+1
+1
+2
+uploadAdditionalDocumentsInformation
+Upload Additional Documents
+legalRepDocumentUpload
+uploadAdditionalDocumentsInformation-line-separator
+READONLY
+1
+1
+1
+uploadAdditionalDocumentsInformation
+Upload Additional Documents

@hmcts-jenkins-j-to-z

Copy link
Copy Markdown
Contributor

Plan Result (aat)

⚠️ Resource Deletion will happen

This plan contains resource delete operation. Please check the plan result very carefully!

Plan: 0 to add, 0 to change, 1 to destroy.
  • Delete
    • module.postgresql.azurerm_postgresql_flexible_server_configuration.pgsql_server_config["pg_qs.query_capture_mode"]
Change Result (Click me)
  # module.postgresql.azurerm_postgresql_flexible_server_configuration.pgsql_server_config["pg_qs.query_capture_mode"] will be destroyed
  # (because key ["pg_qs.query_capture_mode"] is not in for_each map)
  - resource "azurerm_postgresql_flexible_server_configuration" "pgsql_server_config" {
      - id        = "/subscriptions/1c4f0704-a29e-403d-b719-b90c34ef14c9/resourceGroups/pcs-data-aat/providers/Microsoft.DBforPostgreSQL/flexibleServers/pcs-aat/configurations/pg_qs.query_capture_mode" -> null
      - name      = "pg_qs.query_capture_mode" -> null
      - server_id = "/subscriptions/1c4f0704-a29e-403d-b719-b90c34ef14c9/resourceGroups/pcs-data-aat/providers/Microsoft.DBforPostgreSQL/flexibleServers/pcs-aat" -> null
      - value     = "top" -> null
    }

Plan: 0 to add, 0 to change, 1 to destroy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants