-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Onyx Migration for checkPreviousReportActionID #23457
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
Onyx Migration for checkPreviousReportActionID #23457
Conversation
@abdulrahuman5196 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] |
@neonbhai Kindly check on the above comments |
This finds reportAction using _.find(), and moves the object validation logic to its own function.
These tests would check for logic around empty/null data objects (zombie reportActions)
@abdulrahuman5196 Please take a look at the changes 🙇 |
And Just to note since this PR has already been delayed. I will take this PR my first priority now. And will be able to review anytime today. @neonbhai |
This removes the custom isValid() function and performs checks using the underscorejs function.
@abdulrahuman5196 Added requested changes! |
This removes the need to store firstValidReportAction and assigns the value of the first reportActionData that has previousReportActionID to firstValidValue variable.
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.
@neonbhai Just some comments. Other than that all looks fine to me.
This removes the Onyx.clear warning, since reordering the empty test isn't affecting output
This change will set null report actions to {}. This will leave consistent report Actions in Onyx when the check fails.
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-08.at.7.57.47.PM.movMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
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.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @roryabraham
🎀 👀 🎀
C+ Reviewed
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.
LGTM 👍🏼
✋ 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/roryabraham in version: 1.3.52-0 🚀
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.52-0 🚀
|
@neonbhai @abdulrahuman5196 @roryabraham Anything we need to QA in staging? |
@mvtglobally No. Not required now. |
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.52-5 🚀
|
Details
Adds the Onyx Migration for checkPreviousReportActionID
Fixed Issues
$ #23221
PROPOSAL: #23221 (comment)
Tests
Automated Test Steps:
npx jest MigrationTest.js
Manual Test Steps
[Migrate Onyx] Skipped migration CheckForPreviousReportActionID because there were no reportActions
[Migrate Onyx] CheckForPreviousReportActionID Migration: removing all reportActions because previousReportActionID not found in the first reportAction
Offline tests
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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)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
Web
# Tests:Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android