-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[No QA][TS migration] Migrate 'CheckForPreviousReportActionID.js' lib to TypeScript #27652
[No QA][TS migration] Migrate 'CheckForPreviousReportActionID.js' lib to TypeScript #27652
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
On hold because of Onyx.multiSet typing isse. |
Let's hold this one until Expensify/react-native-onyx#353 is merged, we need to be able to pass |
Also @fvlvte Please rebase and sign your old commits that are unverified. |
0820bee
to
ae362c2
Compare
# Conflicts: # src/libs/Log.ts
@fvlvte No longer blocked |
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 👍
# Conflicts: # src/types/onyx/ReportAction.ts
Hmm tests failing, working on it. |
Ready to re-review @blazejkustra |
# Conflicts: # src/libs/migrations/CheckForPreviousReportActionID.ts
Hi @abdulrahuman5196 can i ask you for C+ review, thank You! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
We did not find an internal engineer to review this PR, trying to assign a random engineer to #24856 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
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.
One question and then can you explain why the switch from integers to strings in the test? Is some of the functionality changing? It looks fine otherwise. Thanks!
Hi! Following up on the above questions when you have a moment - thnaks! Then we can get this merged |
Hey sorry, was on other top priority tasks, adressing it now, |
okay great! And why did the tests change from integers to strings? Since it's passing I'm guessing it's fine but I wanted to make sure I understood. |
@dangrous to match type since we use typescript numer everywhere, so it would fail type check on string |
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 production by https://github.com/luacmartins in version: 1.4.1-13 🚀
|
Details
Migrated CheckForPreviousReportActionID.js and it's dependencies to TypeScript.
Aligned code to guidelines and ESLint rules.
Fixed Issues
$ #24856
PROPOSAL: N/A
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)/** 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
Android: Native
android.mov
Android: mWeb Chrome
chrome.mov
iOS: Native
ios.mov
iOS: mWeb Safari
web-safari.mov
MacOS: Chrome / Safari
web-chrome-mac.mov
MacOS: Desktop
desktop.mov