-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force Session Outputs in Platform Auth (#1656)
* Enable session outputs for Platform * Refresh terminal * Making session outputs back with Stateful auth for Runme * Passing tests * Improves feature flag encapsulation * Revert condition * Disable Share for runme to avoid conflicts * Restore validation * Enhance debuggin message * Fix escalate when autoSave is off --------- Co-authored-by: Cristian Cepeda <[email protected]>
- Loading branch information
1 parent
1a48894
commit 708a281
Showing
14 changed files
with
240 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import features, { FEATURES_CONTEXT_STATE_KEY } from '../features' | ||
import { FeatureName } from '../types' | ||
|
||
import ContextState from './contextState' | ||
|
||
export function isOnInContextState(featureName: FeatureName): boolean { | ||
const snapshot = ContextState.getKey<string>(FEATURES_CONTEXT_STATE_KEY) | ||
if (!snapshot) { | ||
return false | ||
} | ||
|
||
const featureState$ = features.loadSnapshot(snapshot) | ||
|
||
return features.isOn(featureName, featureState$) | ||
} | ||
|
||
export default { | ||
isOnInContextState, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.