Skip to content
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-03-26] [HOLD for payment 2024-03-25] Category - Incorrect app behavior when editing category with / symbol #38401

Closed
6 tasks done
kavimuru opened this issue Mar 15, 2024 · 16 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@kavimuru
Copy link

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: 1.4.53-1
Reproducible in staging?: y
Reproducible in production?: no
If this was caught during regression testing, add the test name, ID and link from TestRail: n/a
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: applause internal team

Action Performed:

Precondition:

  • User is an admin of Collect workspace.
  • The Collect workspace has the following categories:
    a/
    a/: invalid
  1. Go to staging.new.expensify.com.
  2. Go to Profile > Workspaces > any workspace.
  3. Go to Categories.
    4, Click on the category a/.
  4. Click Category name.
  5. Note that the symbol / is missing.
  6. Update the category name and save it.
  7. Note that it creates a new category with an error instead of updating the previous category.
  8. Create on the category a/: invalid > Category name.
  9. Note that it shows not here page.

Expected Result:

User should be able to edit category with / in the name.

Actual Result:

For a/ category, when editing the name, the field is missing / symbol. When updating the name, it creates a new category with error instead of updating a new one.
For a/: invalid category, it shows not here page.

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 evidence

Bug6415047_1710514618649.20240315_193802.mp4

View all open jobs on GitHub

@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 15, 2024
Copy link

melvin-bot bot commented Mar 15, 2024

Triggered auto assignment to @Christinadobrzyn (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Mar 15, 2024

Triggered auto assignment to @AndrewGable (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@c3024
Copy link
Contributor

c3024 commented Mar 15, 2024

I think this got to do with this.

getRoute: (policyID: string, categoryName: string) => `workspace/${policyID}/categories/${encodeURI(categoryName)}/edit` as const,

We should use encodeURIComponent instead of encodeURI and decode it in the EditCategoryPage

cc: @ArekChr @luacmartins

@luacmartins
Copy link
Contributor

Yes, I got this one. It's the same solution we have for tags and other pages.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Mar 15, 2024
@luacmartins
Copy link
Contributor

PR here - #38412

@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Mar 15, 2024
@luacmartins
Copy link
Contributor

Fixed in staging. Will keep this issue open to pay C+ for the PR review.

@luacmartins luacmartins mentioned this issue Mar 15, 2024
50 tasks
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 15, 2024
@melvin-bot melvin-bot bot changed the title Category - Incorrect app behavior when editing category with / symbol [HOLD for payment 2024-03-25] Category - Incorrect app behavior when editing category with / symbol Mar 18, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 18, 2024
Copy link

melvin-bot bot commented Mar 18, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Mar 18, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.53-2 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-03-25. 🎊

Copy link

melvin-bot bot commented Mar 18, 2024

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:

  • [@luacmartins] The PR that introduced the bug has been identified. Link to the PR:
  • [@luacmartins] 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:
  • [@luacmartins] 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:
  • [@luacmartins] Determine if we should create a regression test for this bug.
  • [@luacmartins] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@Christinadobrzyn] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@luacmartins
Copy link
Contributor

This is a new feature still in development. I don't think the BZ checklist applies here.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Mar 19, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-03-25] Category - Incorrect app behavior when editing category with / symbol [HOLD for payment 2024-03-26] [HOLD for payment 2024-03-25] Category - Incorrect app behavior when editing category with / symbol Mar 19, 2024
Copy link

melvin-bot bot commented Mar 19, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.54-4 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-03-26. 🎊

This comment was marked as duplicate.

@Christinadobrzyn Christinadobrzyn added Daily KSv2 and removed Weekly KSv2 labels Mar 25, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 25, 2024
@Christinadobrzyn
Copy link
Contributor

Who are the C+ reviewers here that need to be paid?

@sobitneupane and @c3024 was it both of you? cc @luacmartins?

@melvin-bot melvin-bot bot removed the Overdue label Mar 25, 2024
@sobitneupane
Copy link
Contributor

@Christinadobrzyn I didn't review the PR.

@luacmartins
Copy link
Contributor

@Christinadobrzyn this was handled internally. We can close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

6 participants