Conversation
|
Holding on Auth PR https://github.com/Expensify/Auth/pull/8277 |
|
Auth PR was deployed, now going to update this PR and add screenshots |
Reviewer Checklist
Screenshots/VideosWeb23971.Web.movMobile Web - Chrome23971.mWeb.Chrome.mp4Mobile Web - Safari23971.mWeb.Safari.mp4Desktop23971.Desktop.moviOS23971.iOS.mp4Android23971.Android.mp4 |
|
✋ 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/Li357 in version: 1.3.50-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.50-3 🚀
|
|
🚀 Deployed to staging by https://github.com/Li357 in version: 1.3.51-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.51-2 🚀
|
| */ | ||
| function isTaskAssigneeOrTaskOwner(taskReport, sessionAccountID) { | ||
| return sessionAccountID === getTaskOwnerAccountID(taskReport) || sessionAccountID === getTaskAssigneeAccountID(taskReport); | ||
| function canModifyTask(taskReport, sessionAccountID) { |
There was a problem hiding this comment.
I wouldn't call this a regression per se, but we updated this to restrict task permissions in rooms in #31863
| // - If the parent report is an #admins only room | ||
| // - If you are a policy admin | ||
| const parentReport = ReportUtils.getParentReport(taskReport); | ||
| return ReportUtils.isAllowedToComment(parentReport); |
There was a problem hiding this comment.
Coming from #46782, there's a bit of a missed condition here when a user A is initially assigned to a task (so they have write access), and then the task is assigned to someone else (user A still has write access, but they shouldn't be able to complete the task).
Details
Fixed Issues
$ #19504
PROPOSAL:
Tests
Same as QA steps
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-08-01.at.11.12.02.AM.mov
Mobile Web - Chrome
Screen.Recording.2023-08-01.at.11.14.13.AM.mov
Mobile Web - Safari
Screen.Recording.2023-08-01.at.11.25.57.AM.mov
Desktop
Screen.Recording.2023-08-01.at.10.57.51.AM.mov
iOS
Screen.Recording.2023-08-01.at.11.24.37.AM.mov
Android