PDJB-NONE: Tag the leave-property commit step for the Transaction metric - #1658
Open
Bill-Haigh wants to merge 1 commit into
Open
PDJB-NONE: Tag the leave-property commit step for the Transaction metric#1658Bill-Haigh wants to merge 1 commit into
Bill-Haigh wants to merge 1 commit into
Conversation
The leave property ("no longer a joint landlord") journey rendered its
commit button from the untagged warningButton fragment, so completed
journeys were not counted in the "Total number of transactions" metric.
Swap it for transactionWarningButton, matching how property
deregistration already does it. The fragment renders the same red
destructive button, so there is no visual change.
Also record two accepted coverage gaps in MetricsReadMe (cancelling a
joint landlord invitation, and landlord address updates) and add a
tagging rule to the journey instructions so new journeys do not repeat
the omission.
Bill-Haigh
marked this pull request as ready for review
July 30, 2026 13:58
Travis-Softwire
approved these changes
Jul 31, 2026
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-NONE
Goal of change
The "no longer a joint landlord" journey was not being counted in the "Total number of transactions" metric on
/system-operator/metrics.Description of main change(s)
Transactionevent, so it is counted alongside the other journeys. The commit button was rendering from the untaggedwarningButtonfragment; it now usestransactionWarningButton, matching how property deregistration already does it. Same red destructive button, no visual change.MetricsReadMe: cancelling a joint landlord invitation, and landlord address updates.Anything you'd like to highlight to the reviewer?
Landlord address updates are deliberately left uncounted. They're the other journey missing the tag, but
AddressTaskhas three routes to its commit and the button fragment is chosen at render time, before the user's radio selection is known — so tagging bothselect-addressandmanual-addresswould fire the event twice whenever someone picks "Add address manually" from the select-address page. Tagging onlymanual-addresswould count an arbitrary subset instead. I originally implemented the double-tagged version, then backed it out: under-counting is preferable to double-counting, and the gap is now recorded inMetricsReadMewith the reasoning. Happy to revisit if you'd rather have a JavaScript opt-out keyed on the selected radio.The same reasoning applies to cancelling a joint landlord invitation, which is structurally identical to the already-documented landlord-deregistration-with-no-properties gap: its only button is on a yes/no
are-you-surepage, so tagging it would fire the event even when the user answers "no".Checklist