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

@@ -1244,7 +1244,10 @@ export default class Explorer {
await useNotebook.getState().refreshNotebooksEnabledStateForAccount();
// TODO: remove reference to isNotebookEnabled and isNotebooksEnabledForAccount
const isNotebookEnabled = userContext.features.notebooksDownBanner || useNotebook.getState().isPhoenixNotebooks;
const isNotebookEnabled =
userContext.features.notebooksDownBanner ||
useNotebook.getState().isPhoenixNotebooks ||
useNotebook.getState().isPhoenixFeatures;
useNotebook.getState().setIsNotebookEnabled(isNotebookEnabled);
useNotebook
.getState()