-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-10-30] Expensify Card - Cards are not assigned in table for newly created accounts #50248
Comments
Triggered auto assignment to @dylanexpensify ( |
Note: We're able to assign cards to existing accounts. Take the following example from a test workspace: |
ProposalPlease re-state the problem that we are trying to solve in this issue.Cards are not assigned in table for newly created accounts What is the root cause of that problem?The API response is not successful for new users with unvalidated account: The card never gets assigned hence it doesn't get showed in table or member profile page. What changes do you think we should make in order to solve the problem?We should block the action to create virtual cards for unvalidated accounts. we can do so by showing the issuer a (for modal, we would need the design of how the error should look) and (for not showing we can just filter the list of assignees available by filtering out the Same can be done for other company card page if bug exists there too: App/src/pages/workspace/expensifyCard/issueNew/AssigneeStep.tsx Lines 80 to 84 in 10b8547
What alternative solutions did you explore? (Optional) |
@cretadn22 what exactly is different in your proposal than mine? I can just see that you have elaborated on what I wrote as a brief :)) and we require that every proposal should be unique We have that in contributor guidelines as well: c.c. @dylanexpensify |
@isagoico can you please share the email used here and check if the accounts been validated or not? If you can see the response of the call that would be helpful in future too, whenever something is not happening as expected add console logs and network logs. Thanks |
@mountiny I believe my proposal answers your question.
Should we allow assigning physical and virtual cars to unvalidated accounts? |
I don't think we should allow that, at least that would require larger discussion. I think we can keep it this was but handle showing RBR and clear error when this happens. I have confirmed the QA tester had the same issue. @cretadn22 I believe the solution is to handle a failureData for creating the virtual card, I think we need to add optimistic data and failure data to the issue card flow, right now we lack feedback. @koko57 @VickyStash do you recall if there is a reason we did not add it in a first place? |
This would require some changes on the backend, as the BE doesn't currently return error messages to the ONYX store. @mountiny, what are your thoughts on my proposal? It's not particularly complicated to implement. |
Agree with @mountiny on not allowing that for now. |
@mountiny I think we haven't considered such case while working on that. I can implement this solution. |
@koko57 lets do it |
@cretadn22 we working on workspace feeds as a project and the correct solution here is to use failure data so we will handle it with expert agency |
@mountiny tp which Onyx entry should we add the error for failureData - personalDetails? |
hmm yeah the business should be provisioned once the bank account is chosen, can you add detailed steps for this flow please? And I think the failure data would be on the card itself in the cards_ collection, then the RBR is ion the cards page |
@mountiny steps:
but as the card cannot be issued we won't have the cardID for cards collection |
@koko57 I think in this case we are talking about the flow where the domain is correctly provisioned and you issue the card from the expensify card page. To fix the above, I think we should just hide the new Expensify card option if the policy is not provisioned (so the expensifyCardsSettings does not exist with the required values |
@mountiny I know - but I wanted to mention it as it was something I noticed while recreating the original issue. So ok, I will hide the section until the domain is provisioned. |
Perfect, thank you! |
@mountiny but for the RBR for the original issue - i think it should be on the Member details page |
PR ready for review #50644 |
Unassigning myself from this one, Dylan is reviewing the attached PR, keep the K2 cleannnn |
I'll be ooo Monday - Tuesday (14-15 Oct) if there will be some changes required to my PR and you'd like to merge it asap - please ping Callstack team, someone might be able to take it over. Thanks! |
Triggered auto assignment to @garrettmknight ( |
Reassigning as I head to parental leave next week! Thanks Garrett! |
Pr in review here |
@garrettmknight, @koko57, @mountiny, @DylanDylann Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
PR is merged, this issue can be retested |
Asked for a retest here |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.52-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-30. 🎊 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:
|
The regression test for this was already handled as part of the workspace feeds project. The fix was in backend to ensure we return the card in the https response too so it show sup immediately. I think we can close this one out as we have handled the payments for the project already |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.44-8
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/cases/view/3272217
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause - Internal team
Action Performed:
Expected Result:
After assigning the card, it should be displayed in the cards table and assigned to the member.
Actual Result:
The virtual card is missing from the "Expensify Card" page and also from the workspace member profile page. I'm also unable to add a virtual card with the Workspace Member profile - New card flow.
Workaround:
No workaround found. No way to issue Ecards to new members
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Recording.842.mp4
Bug6624360_1728044115080.Member_-_New_card.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @garrettmknightThe text was updated successfully, but these errors were encountered: