Skip to content

RUMM-3305: Ignore adding custom timings and feature flags for the stopped view#1433

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/rumm-3305/ignore-adding-custom-timings-and-feature-flags-for-the-stopped-view
May 24, 2023
Merged

RUMM-3305: Ignore adding custom timings and feature flags for the stopped view#1433
0xnm merged 1 commit into
developfrom
nogorodnikov/rumm-3305/ignore-adding-custom-timings-and-feature-flags-for-the-stopped-view

Conversation

@0xnm

@0xnm 0xnm commented May 24, 2023

Copy link
Copy Markdown
Member

What does this PR do?

This change fixes #1432: RumViewScope was accepting custom timings and feature flags in the stopped state, allowing them to be added to the multiple views at the same time (because we keep some views in RumViewManagerScope until their child events complete).

This PR adds the necessary check requiring the view to be active to add such information, and this aligns with the logic in the iOS SDK for the custom timings and feature flags.

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)

@codecov-commenter

codecov-commenter commented May 24, 2023

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.01%. Comparing base (8586d84) to head (bb218e0).
⚠️ Report is 4831 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1433      +/-   ##
===========================================
+ Coverage    81.94%   82.01%   +0.07%     
===========================================
  Files          363      363              
  Lines        13031    13033       +2     
  Branches      2191     2193       +2     
===========================================
+ Hits         10677    10688      +11     
+ Misses        1688     1682       -6     
+ Partials       666      663       -3     
Files with missing lines Coverage Δ
...d/rum/internal/domain/scope/RumViewManagerScope.kt 95.38% <ø> (ø)
.../android/rum/internal/domain/scope/RumViewScope.kt 94.33% <100.00%> (+0.02%) ⬆️

... and 14 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@0xnm
0xnm merged commit 9c003a7 into develop May 24, 2023
@0xnm
0xnm deleted the nogorodnikov/rumm-3305/ignore-adding-custom-timings-and-feature-flags-for-the-stopped-view branch May 24, 2023 10:58
@xgouchet xgouchet added this to the 2.0.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.

Performance Timing will be reported with wrong view scope

4 participants