Skip to content

NOJIRA example of propagating service nav usage#367

Draft
oscarduignan wants to merge 1 commit intomainfrom
NOJIRA-example-of-propagating-service-nav-usage
Draft

NOJIRA example of propagating service nav usage#367
oscarduignan wants to merge 1 commit intomainfrom
NOJIRA-example-of-propagating-service-nav-usage

Conversation

@oscarduignan
Copy link
Contributor

@oscarduignan oscarduignan commented Feb 19, 2026

example of service being able to override how service nav usage gets determined - for example by matching against some identifier from the request to a list from config

where service nav feature flag has been turned in the play-frontend-hmrc snapshot into a trait so that it can be overridden

hmrc/play-frontend-hmrc#397
hmrc/help-frontend#172

if people needed to base decision off something else, then instead they could use the one that bases decision off present of request attribute, and then they "just" need to add that request attribute in during the chain

for example, if someone was looking up say user answers or address lookup journey or something, then wherever they reify that from request, maybe in an action helper thing - where they pass the wrapped enriched request they can replace the request with request

like

request.addAttr(UseServiceNav, session.useServiceNav)

(replacing session.useServiceNav with however they want to resolve it)

@oscarduignan oscarduignan force-pushed the NOJIRA-example-of-propagating-service-nav-usage branch from 2194947 to 783f181 Compare February 20, 2026 10: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