altinn-studio icon indicating copy to clipboard operation
altinn-studio copied to clipboard

When persisting a featureflag all featureflags are added to session storage

Open standeren opened this issue 1 year ago • 1 comments

Description of the bug

Description

When persisting a featureflag all available featureflags is added to session storage and will become available.

Steps To Reproduce

  1. Open an app in editor
  2. Empty session storage to ensure no flags are persisted from before
  3. Add a featureFlag and persist it; ?featureFlags=processEditor&persistFeatureFlag=true
  4. See in UI that all features now are available such as settingsModal in the top menu
  5. And see in session storage that all features are added to the storage

Additional Information

No response

standeren avatar Sep 19 '23 14:09 standeren

Could we add a tab to the settings modal where we (and our users) can toggle feature flags?

nkylstad avatar Oct 18 '23 20:10 nkylstad

Tested in dev, and works as expected - only featureFlag applied in url was persisted to sessionStorage.

nkylstad avatar May 16 '24 09:05 nkylstad