Skip to content

[Due for payment 2025-12-05] Infinite loop: SetPolicyRulesEnabled endpoint repeatedly called when upgrading a policy and enabling a Control-Plan–only feature #76180

@m-natarajan

Description

@m-natarajan

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.2.64-3
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: @rayane-d
Slack conversation (hyperlinked to channel name): #Expensify Bugs

Action Performed:

  1. Open a workspace that is eligible for upgrade
  2. Begin enabling a Control Plan–only feature (e.g., Rules)
  3. Upgrade the policy while still on the Workspace Upgraded page
  4. Keep the Workspace Upgraded page open
  5. Observe network traffic

Expected Result:

The endpoint should be invoked once at the time the feature is enabled.
No repeated or continuous API calls should occur after the feature is successfully configured.

Actual Result:

The endpoint (e.g., SetPolicyRulesEnabled) is continuously called in an infinite loop.
Calls only stop when the page is closed or navigated away from.

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Recording.1982.mp4
Screen.Recording.2025-11-26.at.9.52.13.PM.mov

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @JmillsExpensify

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.EngineeringWeeklyKSv2

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions