Enable phoenix for MPAC by default, and for PROD will enable phoenix only based on flight (#1232)

* Enable phoenix to MPAC by default and for prod based on flight

* phoenix flag setting based of configContext
This commit is contained in:
Karthik chakravarthy
2022-03-01 13:38:30 -05:00
committed by GitHub
parent 605117c62d
commit 5c8016ecd6
9 changed files with 6437 additions and 7 deletions

View File

@@ -351,6 +351,11 @@ function updateContextsFromPortalMessage(inputs: DataExplorerInputsFrame) {
if (inputs.features) {
Object.assign(userContext.features, extractFeatures(new URLSearchParams(inputs.features)));
}
//Updating phoenix feature flags for MPAC based of config context
if (configContext.isPhoenixEnabled === true) {
userContext.features.phoenixNotebooks = true;
userContext.features.phoenixFeatures = true;
}
if (inputs.flights) {
if (inputs.flights.indexOf(Flights.AutoscaleTest) !== -1) {
userContext.features.autoscaleDefault;