Skip to content

Unable to toggle per diem off after downgrading #54499

Closed

Description

@mitarachim

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.78-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): applausetester+nl895@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: Windows 11 pro/chrome
App Component: Workspace Settings

Action Performed:

  1. Navigate to staging.new.expensify.com
  2. Create a workspace
  3. Navigate to More features
  4. Enable per diem and upgrade to control
  5. Go to workspace profile > Plan
  6. Downgrade to collect
  7. Go to more features
  8. Disable Per diem

Expected Result:

User is able to toggle off per diem

Actual Result:

User is unable to toggle off per diem

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6701574_1735003926155.bandicam_2024-12-24_04-29-35-934.mp4

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Dec 24, 2024
  2. melvin-bot commented on Dec 24, 2024

    @melvin-bot

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

  3. melvin-bot commented on Dec 24, 2024

    @melvin-bot

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

  4. melvin-bot commented on Dec 24, 2024

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Dec 24, 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.
  6. NJ-2020 commented on Dec 24, 2024

    @NJ-2020
    Contributor

    Offending PR:
    #54356

    Solution

    • We can solve it by disabling all the control features when the user downgrade the plan (need BE changes inside the DowngradeAPI or invoking the feature api one by one) and also we need to handle optimistic, success and failure onyx data
    • Inside the features tab i.e WorkspaceInitalPage, workspacemorefeaturespage we will enable the feature if the plan is control plan
      [CONST.POLICY.MORE_FEATURES.ARE_PER_DIEM_RATES_ENABLED]: policy?.arePerDiemRatesEnabled,

      We can do this for all control feature
  7. DylanDylann commented on Dec 24, 2024

    @DylanDylann
    Contributor

    @NJ-2020 Thanks for your input.

    @carlosmiceli I think we need to fix this on the BE side. We need to disable all features on the control plan if the user downgrades plan. I don't think we need to update optimistic data as mentioned on design doc

    Screenshot 2024-12-24 at 16 06 39
  8. techievivek commented on Dec 24, 2024

    @techievivek
    Contributor

    Going to assign this to @carlosmiceli since he seems to be working on the doc.

  9. 5 remaining items

  10. added
    DeployBlocker
    on Dec 24, 2024
  11. jasperhuangg commented on Dec 24, 2024

    @jasperhuangg
    Contributor

    Since this is a back-end error I'm applying the relevant labels.

  12. carlosmiceli commented on Dec 25, 2024

    @carlosmiceli
    Contributor

    PR fix is in review.

    Screen.Recording.2024-12-25.at.3.48.25.AM.mov
  13. added
    Daily
    Reviewing
    Internal
    and removed
    Hourly
    on Dec 25, 2024
  14. carlosmiceli commented on Dec 25, 2024

    @carlosmiceli
    Contributor

    PR above is merged, but one more PR was needed, also under review.

  15. techievivek commented on Dec 26, 2024

    @techievivek
    Contributor

    Removing the blocker label since the feature is under beta.

  16. removed
    DeployBlocker
    on Dec 26, 2024
  17. melvin-bot commented on Jan 2, 2025

    @melvin-bot

    @carlosmiceli, @sonialiap Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  18. carlosmiceli commented on Jan 2, 2025

    @carlosmiceli
    Contributor

    PR has been merged.

  19. melvin-bot commented on Jan 10, 2025

    @melvin-bot

    @carlosmiceli, @sonialiap Whoops! This issue is 2 days overdue. Let's get this updated quick!

  20. carlosmiceli commented on Jan 13, 2025

    @carlosmiceli
    Contributor

    This has been fixed already in the BE. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyEngineeringInternalReviewing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions