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

⚗️✨ [RUMF-1258] stop ongoing action on view end #1528

Merged
merged 6 commits into from
May 13, 2022

Conversation

BenoitZugmeyer
Copy link
Member

@BenoitZugmeyer BenoitZugmeyer commented May 11, 2022

Motivation

Having actions spaning on multiple views is a bit weird.

Changes

  • Stop any ongoing action and rage click chain on view end
  • Adjust the VIEW_ENDED event so we have a chance to increase the counter when the view ends
  • Add a E2E test to make sure this works

Testing

  • Local
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

By allowing multiple `onStop` callbacks, we can simplify the click
processing logic a bit. This will also allow us to invoke `click.stop`
with an `endTime` in a future commit.
@BenoitZugmeyer BenoitZugmeyer force-pushed the benoit/stop-action-on-view-end branch from ebe25e6 to af79d16 Compare May 11, 2022 16:39
@codecov-commenter
Copy link

Codecov Report

Merging #1528 (af79d16) into main (130af6a) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1528      +/-   ##
==========================================
+ Coverage   90.33%   90.37%   +0.04%     
==========================================
  Files         115      115              
  Lines        4447     4446       -1     
  Branches      996      993       -3     
==========================================
+ Hits         4017     4018       +1     
+ Misses        430      428       -2     
Impacted Files Coverage Δ
...in/rumEventsCollection/action/trackClickActions.ts 97.89% <100.00%> (+1.01%) ⬆️
.../src/domain/rumEventsCollection/view/trackViews.ts 100.00% <100.00%> (+1.96%) ⬆️
packages/core/src/tools/timeUtils.ts 97.14% <0.00%> (-2.86%) ⬇️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@BenoitZugmeyer BenoitZugmeyer marked this pull request as ready for review May 11, 2022 17:16
@BenoitZugmeyer BenoitZugmeyer requested a review from a team as a code owner May 11, 2022 17:16
@BenoitZugmeyer BenoitZugmeyer force-pushed the benoit/stop-action-on-view-end branch from c0e05e5 to b364bbe Compare May 13, 2022 12:15
@BenoitZugmeyer BenoitZugmeyer merged commit e3a4e8d into main May 13, 2022
@BenoitZugmeyer BenoitZugmeyer deleted the benoit/stop-action-on-view-end branch May 13, 2022 14:02
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