Skip to content

[$250] Distance Rates - Disabling rate toggle triggers a brief on-off action after relogging #56173

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

Closed
2 of 8 tasks
vincdargento opened this issue Jan 31, 2025 · 82 comments
Closed
2 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@vincdargento
Copy link

vincdargento commented Jan 31, 2025

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Issue was found while executing QA for PR #55192

Version Number: 9.0.93-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: #55192
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: android
App Component: Workspace Settings

Action Performed:

  1. Open the app and log in
  2. Create a Workspace
  3. Enable Distance Rates
  4. Add a new rate
  5. Disable the rate added in step 4

Expected Result:

When disabling a rate it should remain off

Actual Result:

Disabling the toggle in Distance Rates triggers a brief on-off action the first time after relogging.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

bug.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @JmillsExpensify
@vincdargento vincdargento added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 DeployBlockerCash This issue or pull request should block deployment labels Jan 31, 2025
Copy link

melvin-bot bot commented Jan 31, 2025

Triggered auto assignment to @JmillsExpensify (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 Jan 31, 2025

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

Copy link

melvin-bot bot commented Jan 31, 2025

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jan 31, 2025
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.

@vincdargento
Copy link
Author

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

@JmillsExpensify
Copy link

Looks right to me.

@melvin-bot melvin-bot bot added the Overdue label Feb 3, 2025
@roryabraham
Copy link
Contributor

ok, let me see if I can figure out how to build Android HybridApp

@melvin-bot melvin-bot bot removed the Overdue label Feb 3, 2025
@roryabraham
Copy link
Contributor

Got Android built, now having to rebuild the back-end bits

@roryabraham
Copy link
Contributor

Still just wrestling with my dev env, but making progress

@roryabraham
Copy link
Contributor

Finally was able to reproduce locally

@roryabraham
Copy link
Contributor

One thing I notice is that it only happens if you disable the rate right after adding it. If you wait a few moments before disabling it, the issue doesn't occur

@roryabraham
Copy link
Contributor

Using logs, I see that this is the value that's toggling in error

@roryabraham
Copy link
Contributor

Looking into this, I'm going to demote it for a few reasons:

  • It's inconsistently reproducible
  • You have to disable the distance rate soon after adding it (edge case for sure)
  • The end state is correct

@s77rt
Copy link
Contributor

s77rt commented Feb 3, 2025

Regarding inconsistency: this seems to occur only if OpenPolicyDistanceRatesPage (read) is queued before SetPolicyDistanceRatesEnabled (write)

Screen.Recording.2025-02-03.at.11.53.15.PM.mov

@abzokhattab
Copy link
Contributor

i am not able to reproduce it

Screen.Recording.2025-02-04.at.00.05.36.mov

@abzokhattab
Copy link
Contributor

@s77rt how should we avoid this queueing inconsistency?

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

@JmillsExpensify
Copy link

Potentially not reproducible anymore

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Mar 26, 2025
Copy link

melvin-bot bot commented Mar 31, 2025

@JmillsExpensify Huh... This is 4 days overdue. Who can take care of this?

Copy link

melvin-bot bot commented Apr 1, 2025

@JmillsExpensify Eep! 4 days overdue now. Issues have feelings too...

Copy link

melvin-bot bot commented Apr 2, 2025

@JmillsExpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

Copy link

melvin-bot bot commented Apr 3, 2025

@JmillsExpensify Still overdue 6 days?! Let's take care of this!

Copy link

melvin-bot bot commented Apr 7, 2025

@JmillsExpensify 10 days overdue. Is anyone even seeing these? Hello?

Copy link

melvin-bot bot commented Apr 9, 2025

@JmillsExpensify 12 days overdue now... This issue's end is nigh!

@s77rt
Copy link
Contributor

s77rt commented Apr 9, 2025

@JmillsExpensify Can you edit the OP manually and change the issue owner?

@JmillsExpensify
Copy link

Sorry someone else will need to change the issue owner. Shall I increase the payout to $500 so we can get more proposals?

@melvin-bot melvin-bot bot removed the Overdue label Apr 9, 2025
@s77rt
Copy link
Contributor

s77rt commented Apr 9, 2025

@JmillsExpensify I think $250 is still fine but we should update the title so the price is reflected. @roryabraham Can you please do that and also make me the issue owner. Thanks!

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Third week)

@melvin-bot melvin-bot bot added the Overdue label Apr 12, 2025
@s77rt
Copy link
Contributor

s77rt commented Apr 12, 2025

I can't reproduce this in normal flow, the only time I was able to reproduce is by using the "slow network" testing feature which itself could be the problem. Testing with chrome slow 4g and 3g presets works fine. Let's close and reopen if this is reported again

@JmillsExpensify JmillsExpensify changed the title Distance Rates - Disabling rate toggle triggers a brief on-off action after relogging [$250] Distance Rates - Disabling rate toggle triggers a brief on-off action after relogging Apr 16, 2025
Copy link

melvin-bot bot commented Apr 16, 2025

⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

@JmillsExpensify
Copy link

Based on the latest comments, here's the payment summary:

@melvin-bot melvin-bot bot removed the Overdue label Apr 16, 2025
@JmillsExpensify
Copy link

Upwork offer sent.

@melvin-bot melvin-bot bot added the Overdue label Apr 18, 2025
Copy link

melvin-bot bot commented Apr 21, 2025

@JmillsExpensify Huh... This is 4 days overdue. Who can take care of this?

@JmillsExpensify
Copy link

Contributor paid out. @s77rt please request via New Expensify if you haven't already.

@github-project-automation github-project-automation bot moved this from Bugs and Follow Up Issues to Done in #expensify-bugs Apr 22, 2025
@melvin-bot melvin-bot bot removed the Overdue label Apr 22, 2025
@garrettmknight
Copy link
Contributor

Payment summary:

@JmillsExpensify
Copy link

$250 approved for @s77rt

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 Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
Status: Done
Development

No branches or pull requests

8 participants