PDJB-1260: Send registration confirmation email for organisation landlords - #1664
Open
Bill-Haigh wants to merge 4 commits into
Open
PDJB-1260: Send registration confirmation email for organisation landlords#1664Bill-Haigh wants to merge 4 commits into
Bill-Haigh wants to merge 4 commits into
Conversation
PDJB-1282 has landed, so OrgLandlordRegistrationCyaStepConfig now populates organisationRegistrantEmail from the email step rather than hardcoding "". Switch the confirmation email recipient from the organisation address to the registrant's, and drop the TODO that was tracking this.
Bill-Haigh
force-pushed
the
feat/PDJB-1260-org-landlord-registration-confirmation-email
branch
from
July 30, 2026 15:42
f3da80f to
54fe701
Compare
Bill-Haigh
marked this pull request as ready for review
July 31, 2026 08:13
danielledias-MT
approved these changes
Jul 31, 2026
danielledias-MT
left a comment
Contributor
There was a problem hiding this comment.
Approved with minor suggestions
samyou-softwire
approved these changes
Jul 31, 2026
Contributor
There was a problem hiding this comment.
if we're adding new emails, we should have a pre release step to
- on test/nft & prod to check the notify email template IDs are correct
- on prod the email template matches pre-prod
since our automated testing won't cover this
Collaborator
There was a problem hiding this comment.
Do our notify tests not check prod notify? (Genuine question - I know they check our lower env notify)
Address review comments: extract the personalisation keys into private constants and declare the explicit HashMap<String, String> return type, as the majority of models in this package already do. Key strings and emitted map are unchanged.
Rename the identifiers introduced by this PR from Organisation to Organisational, and add the TODOs requested in review. - OrganisationLandlordRegistrationConfirmationEmail -> OrganisationalLandlordRegistrationConfirmationEmail - ORGANISATION_LANDLORD_REGISTRATION_CONFIRMATION_EMAIL -> ORGANISATIONAL_LANDLORD_REGISTRATION_CONFIRMATION_EMAIL - OrganisationLandlordRegistrationConfirmation.md -> OrganisationalLandlordRegistrationConfirmation.md - sendOrganisationRegistrationConfirmationEmail -> sendOrganisationalRegistrationConfirmationEmail - Add TODO PDJB-1274 on reassessing the recipient address and name - Retarget the confirmation page TODO from PDJB-1180 to PDJB-1392 The pre-existing OrganisationLandlord entity and the ORGANISATION_LANDLORD_REGISTRATION feature flag are intentionally left unchanged; those are covered by a separate PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket number
PDJB-1260
Goal of change
Organisation landlords received no confirmation email on completing registration.
Description of main change(s)
ORGANISATIONAL_LANDLORD_REGISTRATION_CONFIRMATION_EMAILtemplate, including its Notify template IDsIndividualLandlord, removing its runtime type checkAnything you'd like to highlight to the reviewer?
OrgLandlordRegistrationCyaStepConfigpopulateorganisationRegistrantEmailfor real. The second commit switches the recipient from the organisation address to the registrant's and removes the// TODO: PDJB-1282that was tracking it. The integration test submits a registrant email that differs from the organisation email, so the assertion proves which one is used.RegisterLandlordController.getConfirmationresolves the landlord viaretrieveLandlordByBaseUserId, which only returnsIndividualLandlords. Pre-existing and out of scope here, so the integration test asserts the email and carries a// TODO: PDJB-1392where the confirmation page assertion belongs.Organisational.... The pre-existingOrganisationLandlordentity and theORGANISATION_LANDLORD_REGISTRATIONfeature flag are deliberately untouched - a separate PR will rename those.NotifyEmailTemplateTests, so the source-controlled markdown matches Notify exactly.Pre-release steps
NotifyEmailTemplateTestsonly checks the template ID for the Notify service its API key belongs to (non-prod,test_id), and is skipped whenEMAILNOTIFICATIONS_APIKEYis unset - so CI does not cover any of the below.ORGANISATIONAL_LANDLORD_REGISTRATION_CONFIRMATION_EMAILis correctChecklist
/src/main/kotlin/resources/emails/emailTemplates.jsonand any related functionality)
tickets remain:
PDJB-1274(reassess the recipient address and name once there is a general way to email a landlord)and
PDJB-1392(assert the confirmation page in the integration test)ticket on the Jira board, referencing your ticket number