Skip to content

[HOLD for payment 2024-07-17] Categories - The subtitle under "Members must categorize all expenses" contains "undefined" #44826

Description

@kavimuru

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

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    DeployBlockerIndicates it should block deploying the API
    on Jul 4, 2024
  2. melvin-bot commented on Jul 4, 2024

    @melvin-bot

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

  3. melvin-bot commented on Jul 4, 2024

    @melvin-bot

    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.

  4. github-actions commented on Jul 4, 2024

    @github-actions
    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.
  5. kavimuru commented on Jul 4, 2024

    @kavimuru
    Author

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

  6. Krishna2323 commented on Jul 4, 2024

    @Krishna2323
    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)

  7. self-assigned this
    on Jul 4, 2024
  8. 34 remaining items

  9. 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"[/+] on Jul 15, 2024
  10. melvin-bot commented on Jul 15, 2024

    @melvin-bot

    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)
  11. melvin-bot commented on Jul 15, 2024

    @melvin-bot

    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:
  12. allgandalf commented on Jul 16, 2024

    @allgandalf
    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 👎

  13. allgandalf commented on Jul 16, 2024

    @allgandalf
    Contributor

    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

  14. zanyrenney commented on Jul 18, 2024

    @zanyrenney
    Contributor

    okay thanks @allgandalf

  15. 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"[/+] on Jul 18, 2024
  16. zanyrenney commented on Jul 18, 2024

    @zanyrenney
    Contributor

    @allgandalf @Krishna2323 please accept job offer via upwork!

  17. zanyrenney commented on Jul 18, 2024

    @zanyrenney
    Contributor
  18. allgandalf commented on Jul 18, 2024

    @allgandalf
    Contributor

    Applied from my side 👍

  19. zanyrenney commented on Jul 18, 2024

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

  20. zanyrenney commented on Jul 18, 2024

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions