-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-11-22] [$500] Difference between last message on LHN and task action message when canceled a task #30437
Comments
Triggered auto assignment to @johncschuster ( |
Job added to Upwork: https://www.upwork.com/jobs/~0162e3426964bd58f2 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
Proposal by @namhihi237Please re-state the problem that we are trying to solve in this issue.The last message on LNH is different last message on the task report when cancel the task What is the root cause of that problem?We only have the logic showing completed and reopened task in LHn here so when canceling it is taking the value from the backend and there is no translation. Lines 353 to 356 in 3b98327
In Task action in the report, we are using the function getTaskReportActionMessage to get the message task action
That's why there is a difference here. What changes do you think we should make in order to solve the problem?We should add logic to show the last message on LHN when the task canceled else if (lodashGet(lastAction, 'actionName', '') === CONST.REPORT.ACTIONS.TYPE.TASKCANCELLED) {
result.alternateText = `${Localize.translate(preferredLocale, 'task.messages.canceled')}`;
} Or we can use the function else if (ReportActionsUtils.isTaskAction(lastAction)) {
result.alternateText = Task.getTaskReportActionMessage(lastAction.actionName, report.reportID, false);
} What alternative solutions did you explore? (Optional)In addition, we can update the message when canceling the task Line 735 in 489e1aa
Or we can update the action message on the same backend/ |
This bug is discovered and I posted a solution to resolve this bug before Re-post proposal here ProposalPlease re-state the problem that we are trying to solve in this issue.Difference between last message on LHN and task action message when canceled a task What is the root cause of that problem?The translation for complete task and re-open task work well in LHN because we have logic to update alternativeText in getOptionData for LHN options Lines 300 to 304 in 08b75f3
But we don't have logic for the translation cancel task What changes do you think we should make in order to solve the problem?
Lines 300 to 304 in 08b75f3
add condition:
Optional: 2. Update complete task, reopen task and cancel task in share destination options App/src/libs/OptionsListUtils.js Line 505 in 08b75f3
we should add
With this approach, we need to define visibleReportActionItems as we did in SidebarUtils. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Difference between last message on LHN and task action message when canceled a task What is the root cause of that problem?When a task is deleted the backend returns
What changes do you think we should make in order to solve the problem?Borrowing from this concepts:
we can add one line :
What alternative solutions did you explore? (Optional) |
I think we're good to go with @namhihi237's proposal here. The RCA is correct and the fix is nice and simple - I do also like the idea of using @namhihi237 Please comment in this thread so that you can be assigned. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @roryabraham, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Not overdue. @namhihi237, please comment on the issue so we can assign it to you! |
@johncschuster thanks |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @namhihi237 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @namhihi237 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
Not overdue, just assigned |
PR merged |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.99-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-11-22. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Regression Test Proposal
Do we agree 👍 or 👎 |
@johncschuster Checklist complete, friendly bump for payment! 🙇 |
@johncschuster, @jjcoffee, @namhihi237, @roryabraham Huh... This is 4 days overdue. Who can take care of this? |
@johncschuster bump for payment |
Thanks for the pings, everyone! Working on this now. |
Ok folks! Payment has been issued! Thanks for your patience! |
(Leaving this open for me to create the Regression test issue) |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.91-5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697129972953389
Action Performed:
Expected Result:
Last message on LHN and task report are the same when canceled task
Actual Result:
last message on LHN and task report differently.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Screen.Recording.2023-10-13.at.00.03.21.mov
Android: mWeb Chrome
Screen.Recording.2023-10-13.at.00.04.34.mov
iOS: Native
RPReplay_Final1697130092.MP4
iOS: mWeb Safari
RPReplay_Final1697130137.MP4
MacOS: Chrome / Safari
Screen.Recording.2023-10-13.at.00.05.28.mov
Recording.165.mp4
MacOS: Desktop
Screen.Recording.2023-10-13.at.00.05.28.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @johncschusterThe text was updated successfully, but these errors were encountered: