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-10-16] [$250] Expensify card - Expensify card link navigates to wallet instead of virtual card details #49804
Version Number: 9.0.40-1 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail:https://expensify.testrail.io/index.php?/tests/view/5012494 Issue reported by: Applause - Internal Team
📣 @jais-nikhil! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
changed the title [-]Expensify card - Expensify card link navigates to wallet instead of virtual card details[/-][+][$250] Expensify card - Expensify card link navigates to wallet instead of virtual card details[/+]on Sep 27, 2024
changed the title [-][$250] Expensify card - Expensify card link navigates to wallet instead of virtual card details[/-][+][HOLD for payment 2024-10-16] [$250] Expensify card - Expensify card link navigates to wallet instead of virtual card details[/+]on Oct 9, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.46-5 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:
[@jjcoffee] The PR that introduced the bug has been identified. Link to the PR:
[@jjcoffee] 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:
[@jjcoffee] 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:
[@jjcoffee] Determine if we should create a regression test for this bug.
[@jjcoffee] 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.
[@slafortune] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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: N/A
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
[Admin] On a workspace with Expensify cards enabled, navigate to Workspace Settings > Expensify card
[Admin] Click on Issue card and issue a virtual Expensify card to any non-admin workspace member
[Admin] Navigate to the workspace chat
[Admin] Verify that tapping the Expensify card link in the card issued message opens the virtual Expensify card details.
[Non-admin] Log in as the user to whom the card was assigned.
[Non-admin] Open the same workspace chat.
[Non-admin] Verify that tapping the Expensify card link in the card issued message opens the virtual Expensify card details.
Activity
melvin-bot commentedon Sep 26, 2024
Triggered auto assignment to @slafortune (
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.jais-nikhil commentedon Sep 26, 2024
I will check the redirection logic written there and modify it as per requirements to redirect it to wallets.
melvin-bot commentedon Sep 26, 2024
📣 @jais-nikhil! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Format:
truph01 commentedon Sep 26, 2024
Edited by proposal-police: This proposal was edited at 2024-10-01 10:50:45 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
User is navigated to the wallet
What is the root cause of that problem?
App/src/libs/ReportActionsUtils.ts
Lines 1750 to 1751 in 70a8a16
What changes do you think we should make in order to solve the problem?
policyID,cardIDto:App/src/libs/ReportActionsUtils.ts
Line 1745 in 70a8a16
and instead of
ROUTES.SETTINGS_WALLETin:App/src/libs/ReportActionsUtils.ts
Line 1751 in 70a8a16
use:
policyIDandcardIDare passed down in where getCardIssuedMessage is called:App/src/components/ReportActionItem/IssueCardMessage.tsx
Line 45 in 70a8a16
Additionally:
Logic displays the report's name:
App/src/libs/ReportUtils.ts
Lines 3838 to 3840 in c7ee85b
Logic displays the last message text in LHN:
App/src/libs/SidebarUtils.ts
Lines 435 to 436 in c7ee85b
App/src/pages/home/report/ContextMenu/ContextMenuActions.tsx
Lines 482 to 483 in c7ee85b
The
getCardIssuedMessageare used in the above places. If we updategetCardIssuedMessagefunction, these places will auto work properly.What alternative solutions did you explore? (Optional)
ROUTES.WORKSPACE_EXPENSIFY_CARD_DETAILS.getRoute(policyID, cardID)based on future discussion.[-]Expensify card - Expensify card link navigates to wallet instead of virtual card details[/-][+][$250] Expensify card - Expensify card link navigates to wallet instead of virtual card details[/+]melvin-bot commentedon Sep 27, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021839673843128973218
melvin-bot commentedon Sep 27, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee (
External)16 remaining items
[-][$250] Expensify card - Expensify card link navigates to wallet instead of virtual card details[/-][+][HOLD for payment 2024-10-16] [$250] Expensify card - Expensify card link navigates to wallet instead of virtual card details[/+]melvin-bot commentedon Oct 9, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Oct 9, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.46-5 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-10-16. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Oct 9, 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:
slafortune commentedon Oct 17, 2024
@jjcoffee can you please complete the checklist?
jjcoffee commentedon Oct 18, 2024
Regression Test Proposal
Expensify cardlink in the card issued message opens the virtual Expensify card details.Expensify cardlink in the card issued message opens the virtual Expensify card details.Do we agree 👍 or 👎
jjcoffee commentedon Oct 18, 2024
@slafortune All done!
slafortune commentedon Oct 18, 2024
@jjcoffee Role - C+ - Paid $250 via Upwork
@truph01 Role - Contributor - Paid $250 via Upwork