Skip to content

PIR: Add kill switch for bundle json usage#8013

Merged
karlenDimla merged 2 commits intodevelopfrom
feature/karl/pir/broker-json-bundle-killswitch
Mar 19, 2026
Merged

PIR: Add kill switch for bundle json usage#8013
karlenDimla merged 2 commits intodevelopfrom
feature/karl/pir/broker-json-bundle-killswitch

Conversation

@karlenDimla
Copy link
Contributor

@karlenDimla karlenDimla commented Mar 18, 2026

Task/Issue URL: https://app.asana.com/1/137249556945/task/1213726950062648?focus=true

Description

Adds killswitch for broker bundle json usage

Steps to test this PR

Disable useBundledBrokerJsons and run https://app.asana.com/1/137249556945/task/1213721083788440?focus=true, verify that PIR-update: Bundled broker jsons disabled. Not loading bundled data. is shown for cases where buundle usage was expected.


Note

Medium Risk
Adds a new remote toggle that can disable the bundled broker-JSON fallback when network seeding fails, which could leave PIR without broker data in offline/BE-failure scenarios if misconfigured.

Overview
Adds a new PIR remote feature flag, useBundledBrokerJsons (default enabled), to control whether bundled broker JSON assets may be used as a fallback.

Updates RealBrokerJsonUpdater.update() so that when the network update fails and no broker data is stored, it will skip loading bundled data and return false if the toggle is disabled (with a new log message). Tests are updated to inject PirRemoteFeatures and to cover both toggle-enabled and toggle-disabled fallback behavior.

Written by Cursor Bugbot for commit 9ccf794. This will update automatically on new commits. Configure here.

Copy link
Contributor Author

karlenDimla commented Mar 18, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor

@landomen landomen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Base automatically changed from feature/karl/pir/broker-json-bundle-pixel to develop March 19, 2026 07:26
@karlenDimla karlenDimla merged commit a0a28da into develop Mar 19, 2026
16 checks passed
@karlenDimla karlenDimla deleted the feature/karl/pir/broker-json-bundle-killswitch branch March 19, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants