-
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
Added policyID to report while creating task #27853
Conversation
@Ollyws I passed the I think this is the most optimised version because we already have the |
Just adding the android videos in a minute... Having some issues with starting the emulator |
@Ollyws Added all the videos now! Had to update Android studio... Hope everything looks good |
@esh-g Looks like there's some conflicts that need resolving, thanks! |
src/libs/actions/Task.js
Outdated
*/ | ||
function createTaskAndNavigate(parentReportID, title, description, assigneeEmail, assigneeAccountID = 0, assigneeChatReport = null) { | ||
const optimisticTaskReport = ReportUtils.buildOptimisticTaskReport(currentUserAccountID, assigneeAccountID, parentReportID, title, description); | ||
function createTaskAndNavigate(parentReportID, title, description, assigneeEmail, assigneeAccountID = 0, assigneeChatReport = null, policyID = CONST.POLICY.OWNER_ACCOUNT_ID_FAKE) { |
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 think it might be better to assign CONST.POLICY.OWNER_ACCOUNT_ID_FAKE
in the buildOptimisticTaskReport
function if the policyID
doesn't exist.
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.
@Ollyws I just noticed the policyID
is actually being passed a string. So wouldn't CONST.POLICY.OWNER_EMAIL_FAKE
be a better choice?
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.
@Ollyws Here is an example of setting the policyID
to CONST.POLICY.OWNER_EMAIL_FAKE
instead of CONST.POLICY.OWNER_ACCOUNT_ID
Lines 2415 to 2420 in f39e93f
reportName = CONST.REPORT.DEFAULT_REPORT_NAME, | |
chatType = '', | |
policyID = CONST.POLICY.OWNER_EMAIL_FAKE, | |
ownerAccountID = CONST.REPORT.OWNER_ACCOUNT_ID_FAKE, | |
isOwnPolicyExpenseChat = false, | |
oldPolicyName = '', |
@Ollyws I have fixed the merge conflicts |
@Ollyws I hope we can get this merged today as this is a very simple PR. I am online if you need any changes done 😇 |
Reviewer Checklist
Screenshots/Videos |
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
Waiting for @luacmartins for their review |
✋ 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/luacmartins in version: 1.3.74-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.74-3 🚀
|
Details
Added
policyID
while creating task report optimistically so that, the "Unavailable Workspace" doesn't show in the avatar.Fixed Issues
$ #26572
PROPOSAL: #26572 (comment)
Tests
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
Screen.Recording.2023-09-20.at.3.58.51.PM-1.mov
Mobile Web - Chrome
Screen.Recording.2023-09-20.at.4.51.55.PM.mov
Mobile Web - Safari
RPReplay_Final1695206120.mov
Desktop
Screen.Recording.2023-09-20.at.4.21.39.PM.mov
iOS
Screen.Recording.2023-09-20.at.4.42.21.PM.mov
Android
Screen.Recording.2023-09-20.at.6.07.15.PM.mov