Skip to content

LG-12047 Remove onbeforeunload logging code#9955

Merged
theabrad merged 9 commits intomainfrom
abrad-lg-12047-delete-logging-code
Jan 26, 2024
Merged

LG-12047 Remove onbeforeunload logging code#9955
theabrad merged 9 commits intomainfrom
abrad-lg-12047-delete-logging-code

Conversation

@theabrad
Copy link
Contributor

🎫 Ticket

LG-12047

🛠 Summary of changes

Removed the logging code for the onbeforeunload events. (Popups from document capture or link sent step saying you are going to lose unsaved data).

changelog: Internal, IdV, remove onbeforeunload logging code
@theabrad theabrad requested a review from a team January 22, 2024 20:08
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

Are we also expecting to remove the code which calls the logging?

i.e. most/all of app/javascript/packages/prompt-on-navigate/index.ts

@theabrad
Copy link
Contributor Author

Are we also expecting to remove the code which calls the logging?

i.e. most/all of app/javascript/packages/prompt-on-navigate/index.ts

yeah. i'll clear that up


trackEvent(PROMPT_EVENT, { path: window.location.pathname });

const stillOnPageIntervalsInSeconds = [...options.stillOnPageIntervalsInSeconds];
Copy link
Contributor

Choose a reason for hiding this comment

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

Can probably remove everything in this function after ev.returnValue = ''; and support for stillOnPageIntervalsInSeconds

Copy link
Contributor

@aduth aduth Jan 24, 2024

Choose a reason for hiding this comment

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

Do we need this file at all? I'm looking at #8512 and it was newly added there, which seems to imply we don't need it if we're not logging anymore?

(I'm sorta viewing this PR as essentially a revert of #8512)

Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@theabrad theabrad merged commit 460372b into main Jan 26, 2024
@theabrad theabrad deleted the abrad-lg-12047-delete-logging-code branch January 26, 2024 15:40
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