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-07-17] Categories - The subtitle under "Members must categorize all expenses" contains "undefined" #44826

Closed
6 tasks done
kavimuru opened this issue Jul 4, 2024 · 31 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 External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented Jul 4, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.4-0
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Categories.
  3. Click Settings.

Expected Result:

The subtitle under "Members must categorize all expenses" will not contain "undefined".

Actual Result:

The subtitle under "Members must categorize all expenses" contains "undefined".
"Require a category on every expense in order to export to undefined."

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

Bug6533029_1720092955253.bandicam_2024-07-04_19-34-38-797.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @zanyrenney
@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Jul 4, 2024
Copy link

melvin-bot bot commented Jul 4, 2024

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

Copy link

melvin-bot bot commented Jul 4, 2024

Triggered auto assignment to @zanyrenney (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.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jul 4, 2024
Copy link
Contributor

github-actions bot commented Jul 4, 2024

👋 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.

@kavimuru
Copy link
Author

kavimuru commented Jul 4, 2024

@zanyrenney 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.

@Krishna2323
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Categories - The subtitle under "Members must categorize all expenses" contains "undefined"

What is the root cause of that problem?

Undefined is shown when current policy does not have any connection.

const currentConnectionName = PolicyUtils.getCurrentConnectionName(policy);
const toggleSubtitle = `${translate('workspace.categories.needCategoryForExportToIntegration')} ${currentConnectionName}.`;

What changes do you think we should make in order to solve the problem?

Show a different subtitle when policy does not have any connection. We can create one or use categories.subtitle. Or we can just make the subtitle empty when there is no connection. The same should be done on other pages where we use PolicyUtils.getCurrentConnectionName(policy)

What alternative solutions did you explore? (Optional)

@tgolen tgolen assigned tgolen and unassigned srikarparsi Jul 4, 2024
@tgolen
Copy link
Contributor

tgolen commented Jul 4, 2024

@Krishna2323 I think we should use categories.requiresCategory ("Members must categorize all expenses") if there is no connection. What do you think? Seems like it makes sense to me.

@tgolen tgolen added the External Added to denote the issue can be worked on by a contributor label Jul 4, 2024
Copy link

melvin-bot bot commented Jul 4, 2024

Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 4, 2024
Copy link

melvin-bot bot commented Jul 4, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @allgandalf (External)

@Krishna2323
Copy link
Contributor

Krishna2323 commented Jul 4, 2024

@tgolen, yes we can use that instead, makes sense. workspace.categories.requiresCategory is already used as title, I think we just need to remove the subtitle if there is no connection.

@allgandalf
Copy link
Contributor

This is a deploy blocker, what is the offending PR @Krishna2323 ?

@Krishna2323
Copy link
Contributor

@allgandalf #44664

@tgolen
Copy link
Contributor

tgolen commented Jul 4, 2024

we just need to remove the subtitle if there is no connection.

Perfect, this is fine. Thanks! I'll assign you

@allgandalf
Copy link
Contributor

ummm, I agree with @Krishna2323, we should not show any subtitle if we do not have any connection, @tgolen what do you think ?

@mountiny mountiny removed the DeployBlockerCash This issue or pull request should block deployment label Jul 5, 2024
@mountiny
Copy link
Contributor

mountiny commented Jul 5, 2024

This was CPed and the PR is pending validation in staging

@allgandalf
Copy link
Contributor

@mountiny can you update the title to hold for payment please

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 10, 2024
@melvin-bot melvin-bot bot changed the title Categories - The subtitle under "Members must categorize all expenses" contains "undefined" [HOLD for payment 2024-07-17] Categories - The subtitle under "Members must categorize all expenses" contains "undefined" Jul 10, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 10, 2024
Copy link

melvin-bot bot commented Jul 10, 2024

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

Copy link

melvin-bot bot commented Jul 10, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.5-13 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-07-17. 🎊

For reference, here are some details about the assignees on this issue:

  • @Krishna2323 requires payment (Needs manual offer from BZ)
  • @allgandalf requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Jul 10, 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:

  • [@allgandalf] The PR that introduced the bug has been identified. Link to the PR:
  • [@allgandalf] 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:
  • [@allgandalf] 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:
  • [@allgandalf] Determine if we should create a regression test for this bug.
  • [@allgandalf] 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.
  • [@zanyrenney] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 15, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-07-17] Categories - The subtitle under "Members must categorize all expenses" contains "undefined" [HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] Categories - The subtitle under "Members must categorize all expenses" contains "undefined" Jul 15, 2024
Copy link

melvin-bot bot commented Jul 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-8 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-07-22. 🎊

For reference, here are some details about the assignees on this issue:

  • @Krishna2323 requires payment (Needs manual offer from BZ)
  • @allgandalf requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Jul 15, 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:

  • [@allgandalf] The PR that introduced the bug has been identified. Link to the PR:
  • [@allgandalf] 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:
  • [@allgandalf] 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:
  • [@allgandalf] Determine if we should create a regression test for this bug.
  • [@allgandalf] 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.
  • [@zanyrenney] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@allgandalf
Copy link
Contributor

Regression Test Proposal

  1. Select a workspace with an integration from workspace page > Categories
  2. Click Settings > Verify Require a category on every expense... is shown
  3. Select a workspace with no integration from workspace page > Categories
  4. Click Settings > Verify no subtitle is shown below switch

Do we agree 👍 or 👎

@allgandalf
Copy link
Contributor

allgandalf commented Jul 16, 2024

Note

@zanyrenney , this is ready for payment, the payment date is wrong, idk why melvin is acting so weird lately, so the payment date was actually 15th, can you pay this out please, thanks

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 16, 2024
@zanyrenney
Copy link
Contributor

okay thanks @allgandalf

@zanyrenney zanyrenney changed the title [HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] Categories - The subtitle under "Members must categorize all expenses" contains "undefined" [HOLD for payment 2024-07-17] Categories - The subtitle under "Members must categorize all expenses" contains "undefined" Jul 18, 2024
@zanyrenney
Copy link
Contributor

@allgandalf @Krishna2323 please accept job offer via upwork!

@zanyrenney
Copy link
Contributor

@allgandalf
Copy link
Contributor

Applied from my side 👍

@zanyrenney
Copy link
Contributor

payment summary

@Krishna2323 requires payment (Needs manual offer from BZ) - paid $250 via Upwork
@allgandalf requires payment (Needs manual offer from BZ) - paid $250 via Upwork

@zanyrenney
Copy link
Contributor

payments complete, and regression test requested!

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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

7 participants