-
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
Remove sideloading of Onyx data for avatar with display name #32304
Conversation
Interested in reviewing this if requires C+ |
Ah, thanks @situchan. I created #32309 so that a random C+ was assigned so I think @cubuspl42 has this one. |
I'm on it |
Was there any buggy / undesirable behavior observable on |
I'm not assigned as a reviewer, by the way |
@cubuspl42 please go ahead your review since you're assigned on the issue @tgolen intentionally created to pull up C+ for this review. |
Please check #27262 description. |
I know, I just wasn't sure if the automation will be happy about me not being assigned |
Added you, it doesn't really matter though in terms of the automation! |
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 code looks good. The diff is not very fortunate, as it's probably bigger than the essential changes because of moving the showActorDetails
function around.
Reviewer Checklist
Screenshots/VideosWebremove-sideloading-web.mp4Mobile Web - Chromeremove-sideloading-android-web-compressed.mp4Mobile Web - Safariremove-sideloading-ios-web.mp4DesktopiOSremove-sideloading-ios.mp4Androidremove-sideloading-android-compressed.mp4 |
The avatar changed for another account is updated reactively ✅ avatar-update.mp4 |
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.
👍
@srikarparsi 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] |
Yeah, sorry for adding a lot extra. I like to leave code in a better state than I found it so destructuring the props, cleaning up the unused HOCs, and moving the method around were some extra bonuses. |
const actorAccountID = useRef(null); | ||
useEffect(() => { | ||
const parentReportAction = lodashGet(parentReportActions, [report.parentReportActionID], {}); | ||
actorAccountID.current = lodashGet(parentReportAction, 'actorAccountID', -1); |
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.
This was the biggest change on the PR. The actorAccountID
was coming from const parentReportAction = ReportActionsUtils.getParentReportAction(report);
which was the deprecated method that needed to be removed.
I made a quick update to this where I removed the |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/yuwenmemon in version: 1.4.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to staging by https://github.com/amyevans in version: 1.4.8-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.8-3 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.8-3 🚀
|
Details
This PR removes some deprecated methods that were loading data into the components without using Onyx properly.
Fixed Issues
$ #32309
Tests
Offline tests
Same as the above
QA Steps
Same as the above
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(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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: mWeb Chrome
Unable to test due to HOST issues
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop