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
[HOLD for payment 2024-07-24] [$250] Concierge - There is submit, split and pay options in Concierge chat #44985
Version Number: 9.0.5-4 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Action Performed:
Go to staging.new.expensify.com
Go to Concierge chat
Click +
Expected Result:
There will be no submit, split and pay options in Concierge chat
Actual Result:
There is submit, split and pay options in Concierge chat
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
@dylanexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
Else, we can also use isExpensifyOnlyParticipantInReport instead of just concierge check if we want to exclude all accounts in CONST.EXPENSIFY_ACCOUNT_IDS.
// We don't allow IOU actions if an Expensify account is a participant of the report, unless the policy that the report is on is owned by an Expensify account
However, isPolicyOwnedByExpensifyAccounts is always true. For Concierge, the policyID is __FAKE__ because it's not tied to a policy. Because it's not tied to a policy, the ownerAccountID defaults to -1 and when we check CONST.EXPENSIFY_ACCOUNT_IDS.includes(-1), it returns true.
(This happens after the default to -1 PR. Previously, the default ownerAccountID is 0)
That's because in the list, there are some account IDs that default to -1.
changed the title [-]Concierge - There is submit, split and pay options in Concierge chat[/-][+][$250] Concierge - There is submit, split and pay options in Concierge chat[/+]on Jul 10, 2024
changed the title [-][$250] Concierge - There is submit, split and pay options in Concierge chat[/-][+][HOLD for payment 2024-07-24] [$250] Concierge - There is submit, split and pay options in Concierge chat[/+]on Jul 17, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve 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:
[@paultsimura] The PR that introduced the bug has been identified. Link to the PR:
[@paultsimura] 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:
[@paultsimura] 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:
[@paultsimura] Determine if we should create a regression test for this bug.
[@paultsimura] 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.
[@dylanexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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: N/A
Determine if we should create a regression test for this bug: Yes
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.
Regression Test Proposal
Log in as any account
Open the Concierge chat
Click "+"
Verify there are no payment-related options in the menu
Activity
melvin-bot commentedon Jul 8, 2024
Triggered auto assignment to @dylanexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.lanitochka17 commentedon Jul 8, 2024
@dylanexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
lanitochka17 commentedon Jul 8, 2024
We think that this bug might be related to #vip-vsp
Krishna2323 commentedon Jul 8, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Concierge - There is submit, split and pay options in Concierge chat
What is the root cause of that problem?
We aren't checking for expensify only chats in
getMoneyRequestOptions. We check for that before addingtaskOption.App/src/libs/ReportUtils.ts
Lines 5850 to 5854 in 547336d
App/src/libs/ReportUtils.ts
Lines 1132 to 1142 in 547336d
What changes do you think we should make in order to solve the problem?
Use
|| isExpensifyOnlyParticipantInReport(report)here so it returns empty array.What alternative solutions did you explore? (Optional)
We can use
isExpensifyOnlyParticipantInReportinAttachmentPickerWithMenuItemsif we don't want to add that ingetMoneyRequestOptions.ShridharGoel commentedon Jul 8, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
There is submit, split and pay options in Concierge chat.
What is the root cause of that problem?
In the below code, there's no check to return empty list for concierge chat:
App/src/libs/ReportUtils.ts
Lines 5851 to 5854 in 547336d
Also, there's another bug.
isConciergeChatReportlogic doesn't filter out the logged in user:App/src/libs/ReportUtils.ts
Lines 1046 to 1049 in 547336d
What changes do you think we should make in order to solve the problem?
Update
isConciergeChatReportmethod to filter out the logged in user:Then, add
|| isConciergeChatReport(report)check ingetMoneyRequestOptions.Else, we can also use
isExpensifyOnlyParticipantInReportinstead of just concierge check if we want to exclude all accounts inCONST.EXPENSIFY_ACCOUNT_IDS.bernhardoj commentedon Jul 9, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
There is money request option shown in Concierge chat.
What is the root cause of that problem?
Currently, we already have a condition to not show money request options for expensify chat including Concierge.
App/src/libs/ReportUtils.ts
Lines 5862 to 5867 in dd96852
However,
isPolicyOwnedByExpensifyAccountsis always true. For Concierge, the policyID is__FAKE__because it's not tied to a policy. Because it's not tied to a policy, theownerAccountIDdefaults to -1 and when we checkCONST.EXPENSIFY_ACCOUNT_IDS.includes(-1), it returns true.(This happens after the default to -1 PR. Previously, the default
ownerAccountIDis 0)That's because in the list, there are some account IDs that default to -1.
App/src/CONST.ts
Line 1570 in dd96852
What changes do you think we should make in order to solve the problem?
Filter out account IDs of -1.
App/src/CONST.ts
Lines 2275 to 2294 in dd96852
OR
Only call
includeswhen theownerAccountIDis > 0, otherwise returnfalse.App/src/libs/ReportUtils.ts
Line 5864 in dd96852
melvin-bot commentedon Jul 10, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01bee66e73dbacfc76
[-]Concierge - There is submit, split and pay options in Concierge chat[/-][+][$250] Concierge - There is submit, split and pay options in Concierge chat[/+]dylanexpensify commentedon Jul 10, 2024
moving
melvin-bot commentedon Jul 10, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @paultsimura (
External)15 remaining items
[-][$250] Concierge - There is submit, split and pay options in Concierge chat[/-][+][HOLD for payment 2024-07-24] [$250] Concierge - There is submit, split and pay options in Concierge chat[/+]melvin-bot commentedon Jul 17, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jul 17, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 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-07-24. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jul 17, 2024
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:
dylanexpensify commentedon Jul 22, 2024
Payment coming up!
paultsimura commentedon Jul 22, 2024
Regression Test Proposal
Do we agree 👍 or 👎
dylanexpensify commentedon Jul 24, 2024
Payment summary:
Please apply/request!
dylanexpensify commentedon Jul 24, 2024
Done
JmillsExpensify commentedon Jul 24, 2024
$250 approved for @bernhardoj