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

Unable to toggle per diem off after downgrading #54499

Open
1 of 8 tasks
mitarachim opened this issue Dec 24, 2024 · 13 comments
Open
1 of 8 tasks

Unable to toggle per diem off after downgrading #54499

mitarachim opened this issue Dec 24, 2024 · 13 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review

Comments

@mitarachim
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: 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): [email protected]
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

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

melvin-bot bot commented Dec 24, 2024

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.

Copy link

melvin-bot bot commented Dec 24, 2024

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

Copy link

melvin-bot bot commented Dec 24, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Dec 24, 2024
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.

@NJ-2020
Copy link
Contributor

NJ-2020 commented Dec 24, 2024

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

@DylanDylann
Copy link
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

@techievivek
Copy link
Contributor

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

Copy link

melvin-bot bot commented Dec 24, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@carlosmiceli
Copy link
Contributor

@DylanDylann thank you, seems like we missed this on the design doc, looking into it now! 🙏

@jasperhuangg jasperhuangg added DeployBlocker Indicates it should block deploying the API and removed DeployBlockerCash This issue or pull request should block deployment labels Dec 24, 2024
@jasperhuangg
Copy link
Contributor

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

@carlosmiceli
Copy link
Contributor

carlosmiceli commented Dec 25, 2024

PR fix is in review.

Screen.Recording.2024-12-25.at.3.48.25.AM.mov

@carlosmiceli carlosmiceli added Daily KSv2 Reviewing Has a PR in review Internal Requires API changes or must be handled by Expensify staff and removed Hourly KSv2 labels Dec 25, 2024
@carlosmiceli
Copy link
Contributor

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

@techievivek
Copy link
Contributor

Removing the blocker label since the feature is under beta.

@techievivek techievivek removed the DeployBlocker Indicates it should block deploying the API label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

7 participants