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! |
| */ | ||
| 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.
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.
@Ollyws I just noticed the policyID is actually being passed a string. So wouldn't CONST.POLICY.OWNER_EMAIL_FAKE be a better choice?
|
@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 |
|
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
policyIDwhile 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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