Skip to content

Fix stopped RUMViewManager from being able to start new views.#1381

Merged
fuzzybinary merged 1 commit into
developfrom
jward/session-stop-fix
Apr 13, 2023
Merged

Fix stopped RUMViewManager from being able to start new views.#1381
fuzzybinary merged 1 commit into
developfrom
jward/session-stop-fix

Conversation

@fuzzybinary

Copy link
Copy Markdown
Member

What does this PR do?

Stopping a session leaves the session in the list of child scopes until the session is done with all of its work (Resources and user actions are stopped). If a StartView event happens while that session is stopped but still processing events, it was incorrectly being created in the stopped ViewManagerScope.

Additional Notes

I double checked Resources and Actions in the ViewScope and those should be safe, as they are only created if the view is active (and stopping the session stops the active view)

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@fuzzybinary
fuzzybinary requested a review from a team as a code owner April 12, 2023 19:55
@codecov-commenter

codecov-commenter commented Apr 12, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1381 (a4a0770) into develop (c1fb449) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #1381      +/-   ##
===========================================
- Coverage    81.93%   81.88%   -0.05%     
===========================================
  Files          363      363              
  Lines        13014    13015       +1     
  Branches      2187     2188       +1     
===========================================
- Hits         10663    10657       -6     
+ Misses        1686     1685       -1     
- Partials       665      673       +8     
Impacted Files Coverage Δ
...d/rum/internal/domain/scope/RumViewManagerScope.kt 95.38% <100.00%> (+5.46%) ⬆️

... and 11 files with indirect coverage changes

@fuzzybinary
fuzzybinary merged commit ca81ad7 into develop Apr 13, 2023
@fuzzybinary
fuzzybinary deleted the jward/session-stop-fix branch April 13, 2023 12:01
@xgouchet xgouchet added this to the 1.19.0 milestone Dec 13, 2023
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.

5 participants