Skip to content

Log whether we skipped the upload step when the upload step is submitted#7696

Merged
jmhooper merged 1 commit intomainfrom
jmhooper-log-whether-we-skip-the-upload-step
Jan 25, 2023
Merged

Log whether we skipped the upload step when the upload step is submitted#7696
jmhooper merged 1 commit intomainfrom
jmhooper-log-whether-we-skip-the-upload-step

Conversation

@jmhooper
Copy link
Contributor

The upload step gets "submitted" regardless of whether or not it is actually visible to the user (see the update_if_skipping_upload before action in the DocAuthController). This results in a submission event being logged regardless of whether the user actually submitted the step.

This commit adds a param to the logs which will indicate to use that though there is a submission event the step was skipped and not visible to the user. This will be helpful in building a hybrid flow dashboard to determine how many users actually encounter the hybrid flow selection and what their choices are from that screen.

The upload step gets "submitted" regardless of whether or not it is actually visibile to the user (see the `update_if_skipping_upload` before action in the `DocAuthController`). This results in a submission event being logged regardless of whether the user actually submitted the step.

This commit adds a param to the logs which will indicate to use that though there is a submission event the step was skipped an not visible to the user. This will be helpful in building a hybrid flow dashboard to determine how many users actually encounter the hybrid flow selection and what their choices are from that screen.

[skip changelog]
@jmhooper jmhooper requested a review from jskinne3 January 25, 2023 16:44
Copy link
Contributor

@jskinne3 jskinne3 left a comment

Choose a reason for hiding this comment

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

This was badly needed, thank you! 👍

FormResponse.new(success: true, errors: {}, extra: { destination: destination })
FormResponse.new(
success: true,
errors: {},
Copy link
Contributor

Choose a reason for hiding this comment

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

Not strictly necessary or relevant, but since we're here: error is optional, could we just drop it?

Suggested change
errors: {},

@jmhooper jmhooper merged commit 8facbd0 into main Jan 25, 2023
@jmhooper jmhooper deleted the jmhooper-log-whether-we-skip-the-upload-step branch January 25, 2023 17:09
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.

3 participants