-
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
[No QA] Onyx type core data #24054
[No QA] Onyx type core data #24054
Conversation
I gonna approve the PR once the blocking PR has been merged main and main is merged to this PR. Then the Jest tests should pass |
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.
@blazejkustra looking good but we have some merge conflicts again.
e391b0f
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
✋ 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/hayata-suenaga in version: 1.3.57-0 🚀
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.58-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.57-6 🚀
|
|
||
type ReportActionBase = { | ||
/** The ID of the reportAction. It is the string representation of the a 64-bit integer. */ | ||
reportActionID?: 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.
I know this was a giant PR, but shouldn't reportActionID
be required + non-null?
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.
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.
I mimicked the proptypes from here. There were some usages of reportActionID
with a default value, that's probably why it's optional.
The thing is that onyx core data types aren't final and we'll edit these as we continue the migration to Typescript (it wasn't feasible to catch all the usages 😅)
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
/** Description of the Task */ | ||
description?: string; | ||
|
||
// TODO: Make sure this field exists in the API |
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.
@blazejkustra This field does not exist in the API or the database from what I can tell. What should we do with this TODO?
Also, please don't add TODOs to the code. Instead, open a GH so that there is a very actionable way to track what needs to happen.
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.
Ahh sorry, this was quite a big PR and I forgot about this TODO, so this kind of proves your point 👍
Could you create an issue to remove shareDestination
from the E/App? It is used in various places, and if shareDestination
doesn't come from API/database we should be able to safely remove some of the logic:
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.
Details
Iteration on #19966. PR was reviewed here by internal engs by referencing backend code.
TODO:
Fixed Issues
$ #16665
PROPOSAL: N/A
Tests
N/A
Offline tests
N/A
QA Steps
N/A
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.