You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C+ Checklist Needs Completion] [ECARD TRANSACTIONS] [$500] Report name on an expense report with non-reimbursable transactions is showing the workspace name instead of the requestor name (see "Free Workspace - ECard testing spent") #34622
Please re-state the problem that we are trying to solve in this issue.
[ECARD TRANSACTIONS] Report name on an expense report with non-reimbursable transactions is showing the workspace name instead of the requestor name (see "Free Workspace - ECard testing spent")
What is the root cause of that problem?
We have not implemented a condition in the getPreviewMessage function to handle titles for IOUs paid by an Expensify card.
Furthermore, we will only display the only firstName of the participant if and only if the report isPolicyExpenseChat.
Hence, we end up displaying the policy name.
What changes do you think we should make in order to solve the problem?
In addition to !hasNonReimbursableTransactions, we should create a condition such as usedExpensifyCard to further check if every or some of the transactions were paid using an Expensify card.
This will ensure that IOUs paid by other methods do not get affected.
Hence, the changes to the code should look close to below.
Finally, I suggest we change the MoneyReportHeader's title and subtitle and the LHNOptionRow's title and subtitle to be consistent with the report preview.
Therefore, we will also have to change functions such as ReportUtils.getReportName and ReportUtils.getChatRoomSubtitle.
This will ensure consistency with other components mentioned earlier, which require the same title as the report preview.
Ah, nice, I didn't realize you were eligible for manual requests @mollfpr! I'll update our documentation on that - you can ignore the offer I sent you then.
changed the title [-][HOLD for payment 2024-02-15] [ECARD TRANSACTIONS] [$500] Report name on an expense report with non-reimbursable transactions is showing the workspace name instead of the requestor name (see "Free Workspace - ECard testing spent")[/-][+][C+ Checklist Needs Completion] [ECARD TRANSACTIONS] [$500] Report name on an expense report with non-reimbursable transactions is showing the workspace name instead of the requestor name (see "Free Workspace - ECard testing spent")[/+]on Feb 16, 2024
[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
No offending PR was found.
[@mollfpr] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
The regression step should be good.
[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Login to OldDot
Create an expense report and add expense
Fill the field with any info unmark the Reimbursable checkbox, and save the expense
Open the NewDot and go to the workspace report
Ensure that the requester name, not the workspace name is shown in the preview and the LHN titles
Activity
melvin-bot commentedon Jan 17, 2024
Triggered auto assignment to @greg-schroeder (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.grgia commentedon Jan 19, 2024
Solution Notes
App/src/components/ReportActionItem/ReportPreview.js
Lines 214 to 228 in 497ed92
on this line, we never want to use the workspace name if the report has non-reimbrsable transactions. it should always be
%FirstName% spentso maybe we can try
melvin-bot commentedon Jan 19, 2024
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.
melvin-bot commentedon Jan 19, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr (
External)abzokhattab commentedon Jan 19, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Report name on an expense report with non-reimbursable transactions is showing the workspace name instead of the requestor name
What is the root cause of that problem?
we dont have a check for non-reimbursable transactions here
App/src/components/ReportActionItem/ReportPreview.js
Lines 225 to 226 in 497ed92
What changes do you think we should make in order to solve the problem?
if the report has NonReimbursable Transactions we need to display the first name:
OR we can also validate that the transaction is a card transaction by using
then the final condition would be:
Tony-MK commentedon Jan 19, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
[ECARD TRANSACTIONS] Report name on an expense report with non-reimbursable transactions is showing the workspace name instead of the requestor name (see "Free Workspace - ECard testing spent")
What is the root cause of that problem?
We have not implemented a condition in the
getPreviewMessagefunction to handle titles for IOUs paid by an Expensify card.App/src/components/ReportActionItem/ReportPreview.js
Line 234 in e6b0761
Furthermore, we will only display the only
firstNameof the participant if and only if the reportisPolicyExpenseChat.Hence, we end up displaying the policy name.
What changes do you think we should make in order to solve the problem?
In addition to
!hasNonReimbursableTransactions, we should create a condition such asusedExpensifyCardto further check ifeveryorsomeof the transactions were paid using an Expensify card.This will ensure that IOUs paid by other methods do not get affected.
Hence, the changes to the code should look close to below.
Finally, I suggest we change the
MoneyReportHeader's title and subtitle and theLHNOptionRow's title and subtitle to be consistent with the report preview.Therefore, we will also have to change functions such as
ReportUtils.getReportNameandReportUtils.getChatRoomSubtitle.This will ensure consistency with other components mentioned earlier, which require the same title as the report preview.
49 remaining items
greg-schroeder commentedon Feb 16, 2024
Annoying. Okay then, I'll create a job manually.
#36653
mollfpr commentedon Feb 16, 2024
@greg-schroeder I’ll do a manual request in NewDot and complete the checklist later today!
greg-schroeder commentedon Feb 16, 2024
Ah, nice, I didn't realize you were eligible for manual requests @mollfpr! I'll update our documentation on that - you can ignore the offer I sent you then.
greg-schroeder commentedon Feb 16, 2024
(payment summary)
$500 offer sent to @abzokhattab
@mollfpr can make a manual request for $500
[-][HOLD for payment 2024-02-15] [ECARD TRANSACTIONS] [$500] Report name on an expense report with non-reimbursable transactions is showing the workspace name instead of the requestor name (see "Free Workspace - ECard testing spent")[/-][+][C+ Checklist Needs Completion] [ECARD TRANSACTIONS] [$500] Report name on an expense report with non-reimbursable transactions is showing the workspace name instead of the requestor name (see "Free Workspace - ECard testing spent")[/+]mollfpr commentedon Feb 16, 2024
No offending PR was found.
The regression step should be good.
greg-schroeder commentedon Feb 16, 2024
Thanks! filed
JmillsExpensify commentedon Mar 2, 2024
$500 approved for @mollfpr based on summary above.