-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Audit][Implementation] getOrderedReportIDs - cache removal #36565
[Audit][Implementation] getOrderedReportIDs - cache removal #36565
Conversation
Running a test build https://github.com/Expensify/App/actions/runs/7959488503 |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-native-2024-02-19_15.14.28.mp4Android: mWeb Chromeandroid-chrome-2024-02-19_13.49.03.mp4iOS: Nativeios-native-2024-02-19_15.02.59.mp4iOS: mWeb Safariios-safari-2024-02-19_14.17.47.mp4MacOS: Chrome / Safaridesktop-chrome-2024-02-19_13.40.44.mp4MacOS: Desktopdesktop-app-2024-02-19_13.42.24.mp4 |
@kacper-mikolajczak Could you add an Android mWeb screenshot? |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
@@ -111,6 +110,7 @@ const defaultProps = { | |||
accountID: '', | |||
}, | |||
transactionViolations: {}, | |||
allReportActions: {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
afaik this is still being passed down to the component, right? Is it still necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the original comment also stripped down the prop being passed as a dependency, is this still a thing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kacper-mikolajczak Would you be able to check this one out please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't remove this prop. I need this in #35907
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok in that case we can go ahead with merge, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @mountiny @shubham1206agra I'm a little worried that the above mentioned PR can introduce a performance regression in this scope - didn't have time to measure it yet, but since it eg. maps, reduces all of the keys or checks against regexp on this big data set it can become a bottleneck rather quickly (if not already). This is not related to this PR, but I wanted to let you know that we should test it first with this in mind as it directly impacts all of our core metrics.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets keep an eye out for that one, also I have asked Adam to try to add more complex test scenario for the reassure test so we can have better integrated protection from regressing this method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adhorodyski Thanks for the heads up. I, too have the same doubt honestly. I will try to do something about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests well!
Hey @jjcoffee sorry, it must've slipped through my fingers :D Updated ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, lets merge this
✋ 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/mountiny in version: 1.4.44-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
Details
PR is a part of Callstack performance audit.
PR removes the cache from
getORderedReportIDs
function.Fixed Issues
$ #36799
PROPOSAL: #33070
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
mandroid.mov
iOS: Native
ios.mov
iOS: mWeb Safari
mios.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov