Skip to content

Commit

Permalink
Remove feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdjere authored and xcrzx committed Jun 12, 2023
1 parent 26095c2 commit b83afea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ export const allowedExperimentalValues = Object.freeze({
*/
extendedRuleExecutionLoggingEnabled: false,

/**
* Enables the new API and UI for /~https://github.com/elastic/security-team/issues/1974.
* It's a temporary feature flag that will be removed once the feature gets a basic production-ready implementation.
*/
prebuiltRulesNewUpgradeAndInstallationWorkflowsEnabled: false,

/**
* Enables the SOC trends timerange and stats on D&R page
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,17 @@ export const registerPrebuiltRulesRoutes = (
config: ConfigType,
security: SetupPlugins['security']
) => {
const { prebuiltRulesNewUpgradeAndInstallationWorkflowsEnabled } = config.experimentalFeatures;

// Legacy endpoints that we're going to deprecate
getPrebuiltRulesAndTimelinesStatusRoute(router, security);
installPrebuiltRulesAndTimelinesRoute(router);

if (prebuiltRulesNewUpgradeAndInstallationWorkflowsEnabled) {
// New endpoints for the rule upgrade and installation workflows
getPrebuiltRulesStatusRoute(router);
performRuleInstallationRoute(router);
performRuleUpgradeRoute(router);
reviewRuleInstallationRoute(router);
reviewRuleUpgradeRoute(router);
// New endpoints for the rule upgrade and installation workflows
getPrebuiltRulesStatusRoute(router);
performRuleInstallationRoute(router);
performRuleUpgradeRoute(router);
reviewRuleInstallationRoute(router);
reviewRuleUpgradeRoute(router);

// Helper endpoints for development and testing. Should be removed later.
generateAssetsRoute(router);
}
// Helper endpoints for development and testing. Should be removed later.
generateAssetsRoute(router);
};

0 comments on commit b83afea

Please sign in to comment.