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-12-16] [HOLD for payment 2024-11-11] [$250] Categories -Category name for spend is not updated offline & a new category is created instead #50563
Version Number: 9.0.47-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: N/A Email or phone of affected tester (no customers):applausetester+pso@applause.expensifail.com Issue reported by: Applause - Internal Team
Action Performed:
Go to staging.new.expensify.com
Go to workspace settings > Categories
Open Travel category (because it is linked to Airlines spend in Settings)
Change the category name and save it
Click Settings
Note that the category for "Airlines" is also updated
Go offline
Open Travel category, rename and save it
Click Settings
Click Airlines
Expected Result:
Travel category will gray out and the name is updated when the category is updated offline
Actual Result:
Travel category is not grayed out and the name is not updated
A new category with the updated name is created down in the list
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidenceBug6630360_1728539282760.20241010_134219.mp4
@bfitzexpensify 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 [-]Categories -Category name for spend is not updated offline & a new category is created instead[/-][+][$250] Categories -Category name for spend is not updated offline & a new category is created instead[/+]on Oct 10, 2024
Edited by proposal-police: This proposal was edited at 2024-10-10 13:52:55 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Travel category is not grayed out and the name is not updated
A new category with the updated name is created down in the list
What is the root cause of that problem?
We haven't updated optimistic data for policy's mccGroup
We're showing the currently selected category regardless of whether it has not been deleted or not. In this case, it's the default category corresponding to that group
What changes do you think we should make in order to solve the problem?
Update optimistic data for mccGroup to change the corresponding category name when renamePolicyCategory:
Edited by proposal-police: This proposal was edited at 2024-10-10 17:25:54 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Category name for spend is not updated offline & a new category is created instead
What is the root cause of that problem?
We do not update the category in the mccGroup of the policy when renaming the policy category. Therefore, when we open Settings, we retrieve the mccGroup data without updating the categories whose names have changed before.
changed the title [-][HOLD for payment 2024-11-11] [$250] Categories -Category name for spend is not updated offline & a new category is created instead[/-][+][HOLD for payment 2024-12-16] [HOLD for payment 2024-11-11] [$250] Categories -Category name for spend is not updated offline & a new category is created instead[/+]on Dec 9, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.72-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@eVoloshchak@bfitzexpensify@eVoloshchak 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]
The PR that introduced the bug has been identified. Link to the PR: there isn't a PR that has caused this, this was a functionality not implemented initially
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: I don't think an additional discussion is needed, we already have the necessary item in PR author/reviewer checklists
Regression Test Proposal
Navigate to Workspace Settings > Categories.
Open the Travel category (because it is linked to the Airlines spend in Settings).
Change the category name and click Save.
Click Settings and verify that the Airlines category name is updated.
Go offline.
Open the Travel category, rename it, and click Save.
Click Settings and then open the Airlines category.
Verify that the Travel category has the updated name and is grayed out.
Activity
melvin-bot commentedon Oct 10, 2024
Triggered auto assignment to @bfitzexpensify (
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.lanitochka17 commentedon Oct 10, 2024
@bfitzexpensify 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
[-]Categories -Category name for spend is not updated offline & a new category is created instead[/-][+][$250] Categories -Category name for spend is not updated offline & a new category is created instead[/+]melvin-bot commentedon Oct 10, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021844365273557975639
melvin-bot commentedon Oct 10, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (
External)mkzie2 commentedon Oct 10, 2024
Edited by proposal-police: This proposal was edited at 2024-10-10 13:52:55 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
mccGroupWhat changes do you think we should make in order to solve the problem?
Update optimistic data for
mccGroupto change the corresponding category name whenrenamePolicyCategory:We might need to update mccGroup's
pendingActionas well.huult commentedon Oct 10, 2024
Edited by proposal-police: This proposal was edited at 2024-10-10 17:25:54 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Category name for spend is not updated offline & a new category is created instead
What is the root cause of that problem?
We do not update the category in the
mccGroupof the policy when renaming the policy category. Therefore, when we openSettings, we retrieve themccGroupdata without updating the categories whose names have changed before.App/src/libs/actions/Policy/Category.ts
Line 593 in d93f29a
App/src/libs/actions/Policy/Category.ts
Line 637 in d93f29a
What changes do you think we should make in order to solve the problem?
We must update the category in the
mccGroupof thepolicywhen renaming the policy category. It should be something like this:Details
POCScreen.Recording.2024-10-11.at.01.27.29.mp4
57 remaining items
melvin-bot commentedon Dec 9, 2024
@eVoloshchak, @youssef-lr, @huult, @bfitzexpensify 12 days overdue now... This issue's end is nigh!
huult commentedon Dec 9, 2024
The pull request is already merged into the staging branch
[-][HOLD for payment 2024-11-11] [$250] Categories -Category name for spend is not updated offline & a new category is created instead[/-][+][HOLD for payment 2024-12-16] [HOLD for payment 2024-11-11] [$250] Categories -Category name for spend is not updated offline & a new category is created instead[/+]melvin-bot commentedon Dec 9, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.72-1 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-12-16. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Dec 9, 2024
@eVoloshchak @bfitzexpensify @eVoloshchak 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]
bfitzexpensify commentedon Dec 16, 2024
Payment complete to @huult.
@eVoloshchak, please complete the BZ checklist and I'll post the payment summary for the C+ work.
bfitzexpensify commentedon Dec 24, 2024
Bumping this @eVoloshchak
eVoloshchak commentedon Dec 29, 2024
Regression Test Proposal
Do we agree 👍 or 👎
bfitzexpensify commentedon Dec 30, 2024
Thanks!
Payment summary:
@eVoloshchak due $250 for C+ work via ND manual request.
JmillsExpensify commentedon Jan 14, 2025
$250 approved for @eVoloshchak