-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-04-23] [$250] Cards - Trying to assign same assigned cards to admin on different workspace showing card list #58949
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
Comments
Triggered auto assignment to @mallenexpensify ( |
@jponikarchuk It looks like the linked video might not be the correct one. Could you please double-check and update it. Thanks! |
@samranahm the video is updated, sorry. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Cards - Trying to assign same assigned cards to admin on different workspace showing card list What is the root cause of that problem?We only the filtered if the current card feed had assigned card and removed it from the current card, but with different workspaces and the same card, this logic will not work. Line 442 in 8deddfa
From the above function we also knew that a assigned card meant, that card has a name (cardName): Line 435 in 8deddfa
What changes do you think we should make in order to solve the problem?We should filter out all the assigned card from different workspaces, once a card get assigned to another person, we shouldn't display them on your card selection screen:
function getAllAssignedCards(allCards: any): string[] {
const cardNames: string[] = [];
// Loop through all keys in the object
for (let key in allCards) {
// Check if the value is an object and contains a `cardName` property
if (typeof allCards[key] === 'object') {
// Iterate over the sub-keys to find the `cardName`
for (let subKey in allCards[key]) {
if (allCards[key][subKey]?.cardName) {
cardNames.push(allCards[key][subKey].cardName);
}
}
}
}
return cardNames;
}
const assignedCards = getAllAssignedCards(allCards); What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?I don't think we can write test for this situation. What alternative solutions did you explore? (Optional)N/A |
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989 |
Added |
Triggered auto assignment to @sonialiap ( |
@sonialiap I'm going to be OOO and offline for two weeks so I'm reassigning, will pick back up upon my return, thx (sorry I didn't get time to try to reproduce) |
@sonialiap Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~021907042981915797896 |
👋 I reviewed the linked PR, @sonialiap @thienlnam can you assign me for payment here please |
📣 @allgandalf 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Looks like we have a regression from the PR @sonialiap thanks for keeping 👀 on, I unassigned ya. |
@mallenexpensify Hi, mind sharing the regression issue so I can take a look ? We had 2 potential regressions but they were both dismantled, 1 as AMEX account locked (not related to PR changes) and 1 closed as not a bug (behaviour already existed before PR). |
@ikevin127 I was just working off the comment in the PR that said it caused a regression. |
Got it, here's what happened with both regressions posted after PR was merged, and why both were closed as non-regressions:
To recap, the first one wasn't related to Expensify app so we closed as solved (after AMEX API cooldown everything worked as expected), and the second one was present on staging before, therefore @thienlnam decided to close as not a bug. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.28-15-staging 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 2025-04-23. 🎊 For reference, here are some details about the assignees on this issue:
|
@ikevin127 / @allgandalf @mallenexpensify @ikevin127 / @allgandalf 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] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Test:
Verify that trying to assign any of the already assigned cards will display the "no active cards on this feed" screen. Do we agree 👍 or 👎 |
Thx @allgandalf , test case created |
cc @mallenexpensify for payments visibility |
@mallenexpensify Eep! 4 days overdue now. Issues have feelings too... |
Sorry gents, was traveling. There's a bug with Upwork and I can't pay right now, addressed internally to see if we can find a workaround. will check back later today or tomorrow, |
Contributor: @allgandalf paid $250 via Upwork Test case created Thx! |
Uh oh!
There was an error while loading. Please reload this page.
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: V9.1.17-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: N
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Redminote 10s android 13
App Component: Money Requests
Action Performed:
Pre-condition: create 2 workspace with american express direct feed card added
Note : use only default user admin to reproduce the issue
Expected Result:
In the different workspace, when trying to assign same cards to same user (admin), it must show no active cards available.
Actual Result:
"Card already assigned to member on different feed" error is shown when trying to assign same assigned cards to the same user(admin) on different workspace.
Trying to assign the same assigned cards to the same user(admin) on different workspace, is showing cards list instead of showing "no active cards available"
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6778913_1742633263304.Screenrecorder-2025-03-22-13-53-34-588.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @mallenexpensifyUpwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: