Skip to content

RUM-2604: Fix view url in case of NavigationViewTrackingStrategy usage#1791

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/rum-2604/fix-view-url-in-case-of-navigation-view-tracking-strategy
Dec 28, 2023
Merged

RUM-2604: Fix view url in case of NavigationViewTrackingStrategy usage#1791
0xnm merged 1 commit into
developfrom
nogorodnikov/rum-2604/fix-view-url-in-case-of-navigation-view-tracking-strategy

Conversation

@0xnm

@0xnm 0xnm commented Dec 27, 2023

Copy link
Copy Markdown
Member

What does this PR do?

This fixes a bug originally introduced in 1.17.2 with the following commit: since we didn't have a special NavigationKey handling in the Any.resolveViewUrl method, view URL was always displayed as com/datadog/android/rum/tracking/NavigationViewTrackingStrategy/NavigationKey.

Also the key used between stopView and startView calls in NavigationViewTrackingStrategy was different because of this bug (NavDestination vs NavigationKey respectively)

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)

@0xnm
0xnm requested review from a team as code owners December 27, 2023 14:00
@0xnm
0xnm force-pushed the nogorodnikov/rum-2604/fix-view-url-in-case-of-navigation-view-tracking-strategy branch from 6050dbc to 62bad44 Compare December 27, 2023 14:22
@codecov-commenter

codecov-commenter commented Dec 27, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1791 (62bad44) into develop (9eefcc4) will decrease coverage by 0.16%.
Report is 2 commits behind head on develop.
The diff coverage is 0.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1791      +/-   ##
===========================================
- Coverage    83.64%   83.49%   -0.16%     
===========================================
  Files          466      466              
  Lines        16368    16295      -73     
  Branches      2451     2440      -11     
===========================================
- Hits         13691    13604      -87     
- Misses        2023     2030       +7     
- Partials       654      661       +7     
Files Coverage Δ
...oid/rum/tracking/NavigationViewTrackingStrategy.kt 86.36% <0.00%> (-0.59%) ⬇️

... and 17 files with indirect coverage changes

@0xnm
0xnm merged commit 5bc057c into develop Dec 28, 2023
@0xnm
0xnm deleted the nogorodnikov/rum-2604/fix-view-url-in-case-of-navigation-view-tracking-strategy branch December 28, 2023 08:45
@xgouchet xgouchet added this to the 2.5.0 milestone Feb 19, 2024
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