Skip to content

Commit

Permalink
Rename the mds feature flag variable
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Sep 10, 2024
1 parent 279463a commit 3a394b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class ObservabilityPlugin
constructor(initializerContext: PluginInitializerContext) {
this.config = initializerContext.config.get<PublicConfig>();
}
private featureFlagStatus: boolean = false;
private mdsFlagStatus: boolean = false;

public setup(
core: CoreSetup<AppPluginStartDependencies>,
Expand All @@ -185,7 +185,7 @@ export class ObservabilityPlugin
});

setupOverviewPage(setupDeps.contentManagement!);
this.featureFlagStatus = !!setupDeps.dataSource;
this.mdsFlagStatus = !!setupDeps.dataSource;

// redirect legacy notebooks URL to current URL under observability
if (window.location.pathname.includes('notebooks-dashboards')) {
Expand Down Expand Up @@ -462,7 +462,7 @@ export class ObservabilityPlugin
};

// register all s3 datasources only if mds feature flag is disabled
if (!this.featureFlagStatus) {
if (!this.mdsFlagStatus) {
const registerDataSources = () => {
try {
core.http.get(`${DATACONNECTIONS_BASE}`).then((s3DataSources) => {
Expand Down

0 comments on commit 3a394b7

Please sign in to comment.