[No QA] [Sentry] improve absent page span#77754
Conversation
|
@dominictb Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Seems like this does not need my review, right? |
| return () => { | ||
| endSpan(CONST.TELEMETRY.SPAN_NOT_FOUND_PAGE); | ||
| hasCreatedSpan.current = true; | ||
| }; |
There was a problem hiding this comment.
why to we need to repeat the closure?
There was a problem hiding this comment.
I thought in case the useEffect can finish before span is finished, although I assume it shouldn't happen.
I can remove it if you think it unnecessary
There was a problem hiding this comment.
I'm quite thinking what problem do we want to resolve here?
Is this really resolving the issue?
There was a problem hiding this comment.
ok i removed it :)
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
Hey @elirangoshen do you mind expanding in the PR description how this address the issue? I am not sure I get it. |
Sure I added explanation. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
@sosek108 wanna give it another review? |
JmillsExpensify
left a comment
There was a problem hiding this comment.
No product review required.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 9.2.85-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.85-7 🚀
|
Explanation of Change
Fixed Issues
$#74137
PROPOSAL:
This pr improves the span logic due to exaggerated runs and durations
It does it by using
refto limit the span to work 1 time per sessionTests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari