Display error when cannot complete task#22097
Conversation
Reviewer Checklist
Screenshots/VideosWeb22097.Web.movMobile Web - Chrome22097.mWeb.Chrome.webmMobile Web - Safari22097.mWeb.Safari.mp4Desktop22097.Desktop.moviOS22097.iOS.mp4Android22097.Android.webm |
mollfpr
left a comment
There was a problem hiding this comment.
Tests well a minor change that we need to keep from previous version.
| value: { | ||
| [completedTaskReportAction.reportActionID]: { | ||
| errors: ErrorUtils.getMicroSecondOnyxError('task.messages.error'), | ||
| }, |
There was a problem hiding this comment.
I think we can keep the pendingAction: null} maybe it will be needed.
There was a problem hiding this comment.
@mollfpr We need to keep pendingAction in failureData to check in clearReportActionErrors function.
App/src/libs/actions/ReportActions.js
Line 11 in fc15d9b
There was a problem hiding this comment.
Thanks for confirming it; I didn't realize that 😅
|
Friendly bump @deetergp for a review |
|
@deetergp Friendly bump, please help us to review the PR when you have a chance. |
deetergp
left a comment
There was a problem hiding this comment.
Apologies, guys. Go OOO for two days and it really piles up! 😅 PR looks good, thanks for the changes!
|
@deetergp looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Go home, Melvin, you're drunk! The tests are all good. |
|
✋ 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/deetergp in version: 1.3.40-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.40-5 🚀
|
Details
We display the error message when the user clicks on complete or re-open task but doesn't permission
Fixed Issues
$ #20542
PROPOSAL: #20542 (comment)
Tests
You do not have the permission to do the requested action.No tiene permiso para realizar la acción solicitada.Offline tests
QA Steps
You do not have the permission to do the requested action.No tiene permiso para realizar la acción solicitada.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
Screencast.from.03-07-2023.09.46.50.webm
Mobile Web - Chrome
Record_2023-07-03-09-48-57.mp4
Mobile Web - Safari
Screen-Recording-2023-07-03-at-11.20.20_1.mp4
Desktop
Screen-Recording-2023-07-03-at-11.23.30_1.mp4
iOS
Screen-Recording-2023-07-03-at-11.14.33.mp4
Android
20542.mp4