Skip to content

Commit

Permalink
[Main only] Rename the MDS feature flag variable to be more explicit (o…
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanL1997 authored Sep 10, 2024
1 parent 279463a commit eee686e
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 eee686e

Please sign in to comment.