-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 2024-05-22] Hold expense - Thread header for system message is different from the actual system message #41202
Comments
Triggered auto assignment to @miljakljajic ( |
We think this issue might be related to the #collect project. |
BE issue. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The thread header title for hold system message is different than the message. What is the root cause of that problem?For a thread, the header title will take the parent action message. The hold system message is "held this money request" as shown below But when we render the hold system message, we render a custom message, that is "held this expense". App/src/pages/home/report/ReportActionItem.tsx Lines 584 to 589 in e0c12a5
What changes do you think we should make in order to solve the problem?We have 2 options, First, in ReportUtils.getReportName, if it's a hold action, then we show the custom message ("held this expense"). Lines 3057 to 3092 in e0c12a5
OR Show the original message of the hold action, just like what we did for HOLD_COMMENT. App/src/pages/home/report/ReportActionItem.tsx Lines 584 to 589 in e0c12a5
Depends on the team which message to use. we need to fix for unhold action too |
Job added to Upwork: https://www.upwork.com/jobs/~01de18ac2a60287419 |
Triggered auto assignment to Contributor Plus for review of internal employee PR - @Ollyws ( |
Added the relevant labels |
Seems that replying in thread has been disabled for the hold system message rendering this issue un-reproducable. |
It's not disabled because it's a system message, but because it's detected as a deleted action. A hold action has an empty text/html, so it's detected as a deleted action I think we should make an exception for HOLD action Lines 6134 to 6136 in 942cad9
or let BE return a text for HOLD action as we did optimistically. Lines 4427 to 4437 in 942cad9
|
@bernhardoj Are you suggesting this was unintentional and that replying in threads should be enabled for the HOLD action? |
yes |
Yeah I agree we shouldn't be considering the HOLD message as a deleted request, and it's better that we use @bernhardoj's proposal LGTM. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @neil-marcellini, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Sounds good to me. @bernhardoj if you would please update your original proposal with the fix for not considering HOLD messages as deleted, that would be good for people looking at the proposal in the future. I've heard that now we have a |
PR is ready I see that after we reload the page (retriggers the OpenReport), the BE returns the message for the HOLD/UNHOLD action, so I don't include the code to make an exception for HOLD/UNHOLD action in
Yes, we already use it but we still check for the App/src/libs/ReportActionsUtils.ts Lines 109 to 112 in 807c945
Based on the PR comment that implements it, we want to use the legacy way for ADDCOMMENT action, so maybe we should start doing that (on a separate issue). |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.73-7 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 2024-05-22. 🎊 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:
|
Payment Summary
BugZero Checklist (@miljakljajic)
|
Contracts extended to you both! |
Requested payment in ND for this one. |
BugZero Checklist:
N/A
Yes
Regression Test Proposal
Do we agree 👍 or 👎 |
I don't think we really need a regression test for this one, at least not until we fix the backend bug you mentioned. |
Payment summary: @Ollyws is owed 500 USD for their work on this issue |
Bernard has been paid |
@miljakljajic Was this one a $500 not $250? |
Reached out to Milja via DM to confirm. |
Apologies, this should be 250! Updated summary: Payment summary: @Ollyws is owed 250 USD for their work on this issue |
I will request a refund from Bernard via upwork |
$250 approved for @Ollyws |
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.4.67-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
The thread header message will be consistent with the system message.
Actual Result:
The thread header shows "held this money request", while the system message is "held this expense".
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6464774_1714364776428.bandicam_2024-04-29_12-23-13-201.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @miljakljajicThe text was updated successfully, but these errors were encountered: