-
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
Update Canceled task flow #24137
Update Canceled task flow #24137
Conversation
Reviewer Checklist
Screenshots/VideosWeb24137.Web.movMobile Web - Chrome24137.mWeb-Chrome.mp4Mobile Web - Safari24137.mWeb.Safari.mp4Desktop24137.Desktop.moviOS24137.iOS.mp4Android24137.Android.mp4 |
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'm testing the PR now.
* @returns {Boolean} | ||
*/ | ||
function isOpenTaskReport(report) { | ||
return isTaskReport(report) && report.stateNum === CONST.REPORT.STATE_NUM.OPEN && report.statusNum === CONST.REPORT.STATUS.OPEN; | ||
function isCanceledTaskReport(report = {}, parentReportAction = {}) { |
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 don't think this method is specific only for task reports. I just tested deleting request money that has a message and thread; the actions also have isDeletedParentAction
flagging.
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.
Yeah you are correct, a couple different report types can have the isDeletedParentAction. Though I am planning on keeping this name as task reports are slightly different in that the report can have the isDeletedParentAction key as well
Thanks for the quick review!
Fixed this!
Yeah this is expected for now, there's a different issue that will handle updating the system messages |
@thienlnam The task detail is not immediately removed after I navigate to the task detail report with the browser back button from a thread. The issue is easier to observe offline. Here's the step:
OFFLINEUntitled.movONLINEScreen.Recording.2023-09-12.at.21.15.30.mov |
Oh nice catch, I can create a follow up issue for this - hoping we get this main thing merged and then can do clean up later |
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.
@tylerkaraszewski Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Can we start testing canceled task flow? |
@ayazhussain79 Yup! Feel free to start, we already created an issue for one known bug already here. But is ready to test now |
Ok Thank you |
🚀 Deployed to staging by https://github.com/tylerkaraszewski in version: 1.3.72-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.72-11 🚀
|
@thienlnam after task deleted without any message on thread (except task action message) so in the parent report we still show [deleted message] or not. |
This is how threads work so we should align with that (deleting entirely if there is no message in the task thread) - this may require some BE changes though |
@@ -1542,7 +1542,7 @@ export default { | |||
completed: 'Completada', | |||
messages: { | |||
completed: 'tarea completada', | |||
canceled: 'tarea cancelada', | |||
canceled: 'tarea eliminado', |
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.
@thienlnam I don't know where you got this translation from (I checked slack and could not find it anywhere), but it is wrong. Please make sure you always get confirmation in #espanol-tranlsations
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.
Sending a PR to fix this
|
||
const optimisticReportActions = { | ||
[parentReportAction.reportActionID]: { | ||
pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE, |
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.
Pending action here could be either update
or delete
based on if it has thread messages, ref: #44997
Details
Fixed Issues
$ #19504
PROPOSAL:
Tests
Offline tests
Same as online
QA Steps
Same as tests
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-11.at.4.59.41.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-09-11.at.5.00.45.PM.mov
Mobile Web - Safari
Screen.Recording.2023-09-11.at.5.05.53.PM.mov
Desktop
Screen.Recording.2023-09-11.at.5.10.29.PM.mov
iOS
Screen.Recording.2023-09-11.at.5.08.10.PM.mov
Android