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

BUGFIX Show the correct name for the previous journey #2878

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

rjlynch
Copy link
Contributor

@rjlynch rjlynch commented Jun 19, 2024

Noticed this one while checking switching journey to / from IRP

The current_journey_routing name shows the name of the journey we're
switching to. We need to take a look at the journey the user came from
which will be the first journey session.

Due to how we clear the session when the user starts a new journey there
will only ever be two journey sessions in the journey_sessions
collection. In this specific case, on the existing session page, there is
only one journey session in the journey_sessions collection (as the
session for the journey we're considering switching too hasn't been
created, and as such journey_session is nil)

Looking at the git history I think this has been an issue for a while. As part
of the IRP work I'm adding some regression tests that will catch this but
didn't want to block this bug fix on that work.

If we do decide to support multiple inflight journeys this whole "existing
session" handling code can be removed and the claims controller can be
simplified quite a bit.

Before

Screenshot 2024-06-19 at 10 16 09

After

Screenshot 2024-06-19 at 10 16 44

The `current_journey_routing` name shows the name of the journey we're
switching too. We need to take a look at the journey the user came from
which will be the `first` journey session.

Due to how we clear the session when the user starts a new journey there
will only ever be two journey sessions in the `journey_sessions`
collection. In this specific case on the existing session page, there is
only one journey session in the journey_sessions collection (as the
session for the journey we're considering switching too hasn't been
created)
@rjlynch rjlynch force-pushed the bug-fix-show-correct-for-previous-journey branch from b69fcb4 to d88be98 Compare June 19, 2024 09:21
@rjlynch rjlynch changed the title Show the correct name for the previous journey BUGFIX Show the correct name for the previous journey Jun 19, 2024
@rjlynch rjlynch merged commit 26a25f7 into master Jun 19, 2024
15 checks passed
@rjlynch rjlynch deleted the bug-fix-show-correct-for-previous-journey branch June 19, 2024 13:07
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.

2 participants