From 32f596629df51c1026c84c06ea8f79441e058d89 Mon Sep 17 00:00:00 2001 From: shashank-elastic <91139415+shashank-elastic@users.noreply.github.com> Date: Wed, 15 Jan 2025 21:53:16 +0530 Subject: [PATCH] Provide Deprecate Warnings for Experimental ML commands (#4365) --- detection_rules/ml.py | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/detection_rules/ml.py b/detection_rules/ml.py index d4c2a5adc..c85fd9950 100644 --- a/detection_rules/ml.py +++ b/detection_rules/ml.py @@ -276,6 +276,10 @@ def get_ml_model_manifests_by_model_id(repo: str = 'elastic/detection-rules') -> @es_experimental.group('ml') def ml_group(): """Experimental machine learning commands.""" + click.secho('\n***** Deprecation Warning *****\n', fg='yellow', err=True) + click.secho('\n* The experiment "ml" command(s) are deprecated and will be removed in a future release. *\n', + fg='yellow', err=True) + click.secho('\n* Command Removal Timeframe: May 1, 2025 *\n', fg='yellow', err=True) @ml_group.command('check-files') diff --git a/pyproject.toml b/pyproject.toml index 3c509144f..962098d33 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "detection_rules" -version = "0.3.16" +version = "0.3.17" description = "Detection Rules is the home for rules used by Elastic Security. This repository is used for the development, maintenance, testing, validation, and release of rules for Elastic Security’s Detection Engine." readme = "README.md" requires-python = ">=3.12"