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-11-13] [$250] Expensify Card - "Add shipping details" button still appears when the card is deactivated #50693
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.0.48-0 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers):applausetester+kh081006@applause.expensifail.com Issue reported by: Applause Internal Team
Action Performed:
Precondition:
User has assigned a physical card to self.
Private details have not been added.
Go to staging.new.expensify.com
Go to workspace settings > Expensify Card.
Click on the Expensify Card that is assigned to yourself.
Click Deactivate card.
Deactivate the card.
Go to workspace chat.
Expected Result:
"Add shipping details" button will not appear since the card is deactivated.
Actual Result:
"Add shipping details" button still appears when the card is deactivated.
@zanyrenney 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
changed the title [-]Expensify Card - "Add shipping details" button still appears when the card is deactivated[/-][+][$250] Expensify Card - "Add shipping details" button still appears when the card is deactivated[/+]on Oct 16, 2024
Check card Status:
Before rendering the "Add shipping details" button, we should check the status of the card if it is active or deactivated.
We can add conditional statement that checks the card's activate status.
Check Backend:
We should ensure that Backend properly sends the card's status in the response.
Modify Frontend:
In the Frontend, we can update code handling the display of button like below:
// Assuming `card` is the card object and `card.status` indicates if it's active
const shouldShowAddShippingDetailsButton = (card) => {
return card.status === 'active' && !card.hasShippingDetails;
};
if (shouldShowAddShippingDetailsButton(card)) {
// Show the button
} else {
// Hide the button
}
Update Existing Logic:
Maybe, we can add an additional condition in the existing card rendering functions or React Components.
If we discuss more details about current issue and help me to check your codebase as soon, I can provide with better solution.
Good luck!
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.57-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@hoangzinh@zanyrenney The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production
2b. Reported on staging (deploy blocker)
2c. Reported on both staging and production
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] 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:
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other: New requirement
Where bug was reported:
2a. Reported on production
2b. Reported on staging (deploy blocker)
2c. Reported on both staging and production
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] 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: Nope, I think it's new requirement/scenario that we haven't covered before.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
User has assigned a physical card to self.
Private details have not been added.
Test:
Sign in to the above account
Go to workspace settings > Expensify Card.
Click on the Expensify Card that is assigned to you.
Click Deactivate card.
Deactivate the card.
Go to workspace chat.
Verify that the "Add shipping details" button will not appear since the card has been deactivated.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Oct 13, 2024
Triggered auto assignment to @zanyrenney (
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.IuliiaHerets commentedon Oct 13, 2024
We think that this bug might be related to #wave-collect - Release 2
IuliiaHerets commentedon Oct 13, 2024
@zanyrenney 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
truph01 commentedon Oct 13, 2024
Edited by proposal-police: This proposal was edited at 2024-10-16 16:42:03 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
"Add shipping details" button still appears when the card is deactivated.
What is the root cause of that problem?
App/src/components/ReportActionItem/IssueCardMessage.tsx
Line 40 in e4969b2
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
zanyrenney commentedon Oct 14, 2024
Agreed, this button shouldn't be there!
[-]Expensify Card - "Add shipping details" button still appears when the card is deactivated[/-][+][$250] Expensify Card - "Add shipping details" button still appears when the card is deactivated[/+]melvin-bot commentedon Oct 16, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021846577574853745828
melvin-bot commentedon Oct 16, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh (
External)SWS-5007 commentedon Oct 16, 2024
Hi, Here is my suggestion.
Check card Status:
Before rendering the "Add shipping details" button, we should check the status of the card if it is active or deactivated.
We can add conditional statement that checks the card's activate status.
Check Backend:
We should ensure that Backend properly sends the card's status in the response.
Modify Frontend:
In the Frontend, we can update code handling the display of button like below:
Maybe, we can add an additional condition in the existing card rendering functions or React Components.
If we discuss more details about current issue and help me to check your codebase as soon, I can provide with better solution.
Good luck!
23 remaining items
melvin-bot commentedon Nov 6, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Nov 6, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.57-10 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-11-13. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Nov 6, 2024
@hoangzinh @zanyrenney The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
zanyrenney commentedon Nov 13, 2024
@hoangzinh please complete this as I can't do the payment until it is done. Thanks!
zanyrenney commentedon Nov 13, 2024
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] 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:
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
hoangzinh commentedon Nov 14, 2024
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] 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: Nope, I think it's new requirement/scenario that we haven't covered before.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
zanyrenney commentedon Nov 14, 2024
That regression test looks great, adding it now.
zanyrenney commentedon Nov 14, 2024
#52563
zanyrenney commentedon Nov 14, 2024
payment summary
@hoangzinh requires payment automatic offer (Reviewer) paid $250 via upwork.
@truph01 requires payment automatic offer (Contributor) paid $250 via upwork.