Skip to content

LG-11037: empty step logged#9293

Merged
dawei-nava merged 8 commits intomainfrom
dwang/LG-11037-empty-event-logged
Oct 13, 2023
Merged

LG-11037: empty step logged#9293
dawei-nava merged 8 commits intomainfrom
dwang/LG-11037-empty-event-logged

Conversation

@dawei-nava
Copy link
Contributor

🎫 Ticket

LG-11037

🛠 Summary of changes

Add missing step name where analytics events logged.

@dawei-nava dawei-nava force-pushed the dwang/LG-11037-empty-event-logged branch from 87f6e76 to 36823e3 Compare October 2, 2023 13:44
changelog: Internal, Logging enhancement, Missing step names for analytics events.
@dawei-nava dawei-nava marked this pull request as ready for review October 4, 2023 12:40
@dawei-nava dawei-nava requested review from a team and charleyf and removed request for a team October 5, 2023 16:35
expect(page).to have_link(
t('links.cancel'),
href: idv_cancel_path,
href: idv_cancel_path(step: :session, location: :warning),
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious: is there a reason we had to add a location here and to unavailable and not to the others?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@night-jellyfish, not really, from what i see the location mostly means where the link is on the page, some easy to tell, some not.

Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting! I imagine this would be useful when trying to determine where someone cancelled from.

If so, could we add it to some of the others we're changing here, like app/views/sign_up/completions/show.html.erb, since we know that location?

If this is out of scope, I understand. I just thought that if we're adding it in some places, it might be helpful to add it to others as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@night-jellyfish , i am removing the location param from here. First it's clear that cancel usually located at the botoom(footer). Second, it's more vague on definition side.


<%= render PageFooterComponent.new do %>
<%= link_to t('links.cancel'), idv_cancel_path %>
<%= link_to t('links.cancel'), idv_cancel_path(step: :session, location: :warning) %>
Copy link
Contributor

Choose a reason for hiding this comment

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

@dawei-nava It seems odd to me to put "session" as the step. I didn't see session being used as the step elsewhere in the codebase. Could you please walk me through the decision to put session as the step? Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eileen-nava , this is a general session/auth landing page, like from partner agencies. It's more like a general function area about whether user has a valid session or not. Technically user can be redirected to here from any where?

What do you suggest to use?

Copy link
Contributor

Choose a reason for hiding this comment

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

@dawei-nava Ahhhh, okay, that's helpful, thanks. I was confused because I expected the step to be a specific point in the user flow, like "verify info."

Would it be possible to put where the user is redirected from? If that isn't straightforward, I think "invalid_session" works.

Thanks for clarifying. 🙏🏻

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eileen-nava, changed.

Copy link
Contributor

@eileen-nava eileen-nava left a comment

Choose a reason for hiding this comment

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

LGTM. 👍🏻

@dawei-nava dawei-nava merged commit 9c85c2f into main Oct 13, 2023
@dawei-nava dawei-nava deleted the dwang/LG-11037-empty-event-logged branch October 13, 2023 16:43
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.

4 participants