Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EROPSPT-397: Return AEDs post-initial retention period for AED search endpoint #328

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

aleyipsoftwire
Copy link
Contributor

Describe your changes

To keep the PR small-ish, I'm splitting the changes up into multiple PRs. This one is for returning AEDs that have had their first retention period data removed when searched, i.e., showing it in the "Manage AEDs" page.

There will need to be changes to the UI as well, and further changes to the backend for the page that shows individual applications.

Issue ticket number and link

https://mhclgdigital.atlassian.net/browse/EROPSPT-397

Checklist before requesting a review

  • I double checked that ACs on the ticket are met by this code update
  • I have added testing steps to the ticket
  • I have updated the relevant yml versions
  • I have formatted the code
  • I have added tests to new code and updated existing tests where needed
  • I have added any corresponding changes to the UI portal

Additional notes

addr.postcode
FROM anonymous_elector_document aed
JOIN aed_contact_details contact ON aed.aed_contact_details_id = contact.id
LEFT JOIN address addr on contact.address_id = addr.id
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only update to this view is changing the JOIN to the address table a LEFT JOIN, so it includes any AEDs that don't have address info anymore.

@@ -50,28 +49,3 @@ fun buildAnonymousElectorDocumentSummaryEntity(
postcode = postcode
)
}

fun buildAnonymousElectorDocumentSummaryViewFromAedEntity(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't used anywhere

@aleyipsoftwire aleyipsoftwire self-assigned this Feb 28, 2025
@aleyipsoftwire aleyipsoftwire marked this pull request as ready for review February 28, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant