Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(cleanup): remove legacy bootstrap step #11494

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import javax.annotation.Nonnull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
Expand All @@ -27,9 +26,6 @@ public class MCLBootstrapManagerFactory {

@Autowired private ConfigurationProvider _configurationProvider;

@Value("${bootstrap.upgradeDefaultBrowsePaths.enabled}")
private Boolean _upgradeDefaultBrowsePathsEnabled;

@Bean(name = "mclBootstrapManager")
@Scope("singleton")
@Nonnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import javax.annotation.Nonnull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
Expand All @@ -27,9 +26,6 @@ public class MCPBootstrapManagerFactory {

@Autowired private ConfigurationProvider _configurationProvider;

@Value("${bootstrap.upgradeDefaultBrowsePaths.enabled}")
private Boolean _upgradeDefaultBrowsePathsEnabled;

@Bean(name = "mcpBootstrapManager")
@Scope("singleton")
@Nonnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,6 @@ incidents:
consumerGroupSuffix: ${INCIDENTS_HOOK_CONSUMER_GROUP_SUFFIX:}

bootstrap:
upgradeDefaultBrowsePaths:
enabled: ${UPGRADE_DEFAULT_BROWSE_PATHS_ENABLED:false} # enable to run the upgrade to migrate legacy default browse paths to new ones
backfillBrowsePathsV2:
enabled: ${BACKFILL_BROWSE_PATHS_V2:false} # Enables running the backfill of browsePathsV2 upgrade step. There are concerns about the load of this step so hiding it behind a flag. Deprecating in favor of running through SystemUpdate
reprocessDefaultBrowsePathsV2:
enabled: ${REPROCESS_DEFAULT_BROWSE_PATHS_V2:false} # reprocess V2 browse paths which were set to the default: {"path":[{"id":"Default"}]}
policies:
file: ${BOOTSTRAP_POLICIES_FILE:classpath:boot/policies.json}
# eg for local file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.linkedin.metadata.boot.BootstrapManager;
import com.linkedin.metadata.boot.BootstrapStep;
import com.linkedin.metadata.boot.dependencies.BootstrapDependency;
import com.linkedin.metadata.boot.steps.BackfillBrowsePathsV2Step;
import com.linkedin.metadata.boot.steps.IndexDataPlatformsStep;
import com.linkedin.metadata.boot.steps.IngestDataPlatformInstancesStep;
import com.linkedin.metadata.boot.steps.IngestDataPlatformsStep;
Expand All @@ -25,7 +24,6 @@
import com.linkedin.metadata.boot.steps.RestoreColumnLineageIndices;
import com.linkedin.metadata.boot.steps.RestoreDbtSiblingsIndices;
import com.linkedin.metadata.boot.steps.RestoreGlossaryIndices;
import com.linkedin.metadata.boot.steps.UpgradeDefaultBrowsePathsStep;
import com.linkedin.metadata.boot.steps.WaitForSystemUpdateStep;
import com.linkedin.metadata.entity.AspectMigrationsDao;
import com.linkedin.metadata.entity.EntityService;
Expand Down Expand Up @@ -89,12 +87,6 @@ public class BootstrapManagerFactory {

@Autowired private ConfigurationProvider _configurationProvider;

@Value("${bootstrap.upgradeDefaultBrowsePaths.enabled}")
private Boolean _upgradeDefaultBrowsePathsEnabled;

@Value("${bootstrap.backfillBrowsePathsV2.enabled}")
private Boolean _backfillBrowsePathsV2Enabled;

@Value("${bootstrap.policies.file}")
private Resource _policiesResource;

Expand Down Expand Up @@ -154,14 +146,6 @@ protected BootstrapManager createInstance(
ingestDataTypesStep,
ingestEntityTypesStep));

if (_upgradeDefaultBrowsePathsEnabled) {
finalSteps.add(new UpgradeDefaultBrowsePathsStep(_entityService));
}

if (_backfillBrowsePathsV2Enabled) {
finalSteps.add(new BackfillBrowsePathsV2Step(_entityService, _searchService));
}

return new BootstrapManager(finalSteps);
}
}

This file was deleted.

This file was deleted.

Loading
Loading