-
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
[$250] [Workspace Feeds] Auth RequestReplacementExpensifyCard returned an error when deactivating card #50394
Comments
Triggered auto assignment to @slafortune ( |
We think that this bug might be related to #wave-collect - Release 2 |
@slafortune 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 |
This comment was marked as outdated.
This comment was marked as outdated.
Job added to Upwork: https://www.upwork.com/jobs/~021844041896258257372 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
This needs better error handling, when the card is deactivated we send the onyx update to remove the card, but it might take longer so the user was still able to see the card there |
@koko57 would you be able to look as well? I can see that the updates are being queued to remove the card from Onyx, but it seems like it's not being applied correctly/ re-rendered. I will need to look more later too |
@mountiny yeah, of course I will take a look. If any other problems with Expensify Card will be found, ping me please, I can take care of them |
If you find this needs to be addressed in BE, then please ping me in slack 🙌 |
@mountiny Sorry for the delay here - I just checked this flow and looks like we're getting this message from the BE I'll check if we're handling it somehow on the FE, but still the BE message would need to be changed. |
From the logs, its because the account does not have the legal first name set, but I think we do not have this restriction when creating a new virtual card. We should add better error handling for sure. |
@mountiny will try to fix this today - can you help to understand what exactly we try to fix here? Just to show correct message under the button - "Cannot replace card that has no limit set"? |
I'm back I can take it over back |
@eVoloshchak, @slafortune, @koko57, @mountiny Huh... This is 4 days overdue. Who can take care of this? |
Let me know if there is more changes in BE required @koko57 |
@mountiny Sorry I've been working mainly on some other issue yesterday. I've pulled the newest main and I couldn't reproduce the issue - I cant't change the limit to 0.00. This PR introduced this regression #51011 (? - I think we wanted to be abe to set the value to 0). I can fix it here but I just wanted to confirm we want to be able to set it to 0.00. |
btw if only the error message will be changed like here #50394 (comment) we don't need any changes on the FE, apart from the fix enabling changing the limit to 0. If we want to fix the flow to display the error in the RHP like it was before and not displaying an additional message, I can also do this here, but now I'm just waiting for confirmation. cc @mountiny |
It should be possible to change the limit to 0, that will deactivate the card too. We should probably handle that case with optimistic update too I need to look into this later today or tomorrow |
Doubled error message is from the changes here #51841 cc @DylanDylann |
@eVoloshchak This belongs to Workspace Feed Project, I will take over this issue. Thanks cc @mountiny |
@koko57 I think we can also create a new key for the error to show it above the button same as we do when trying to create a new card |
@mountiny we discussed on Slack, we don't need it, we can use the one we already have. I've opened a draft PR #52162 for fixing the value to be enabled to be changed to 0 and the loader + error on the RequestReplacement page. I'll check it once again, but yesterday I was still getting "Auth RequestReplacementExpensifyCard returned an error" |
@mountiny after implementing the magic code we have the error and loader back on the RequestReplacement page. LMK what else should we do with this issue - should it be changed on the BE the way you mentioned? If so, there's nothing to do on the FE, maybe apart from this validation on EditCardLimit page |
ok thanks, I will need to follow up on this and test locally for the errors |
@slafortune, @koko57, @mountiny, @DylanDylann Whoops! This issue is 2 days overdue. Let's get this updated quick! |
On my list |
still |
will update |
On my list |
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.46-1
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The error message should be a proper error message.
Actual Result:
The error message is Auth RequestReplacementExpensifyCard returned an error.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6627977_1728363625149.error.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @mountinyThe text was updated successfully, but these errors were encountered: