From b0367b0419b66333177d7fce197861beae8deac9 Mon Sep 17 00:00:00 2001 From: topher-lo <46541035+topher-lo@users.noreply.github.com> Date: Tue, 14 Jan 2025 20:06:55 -0800 Subject: [PATCH] Add deprecated field to register function --- registry/tracecat_registry/_internal/registry.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/registry/tracecat_registry/_internal/registry.py b/registry/tracecat_registry/_internal/registry.py index 741c7ca1a..9a8303255 100644 --- a/registry/tracecat_registry/_internal/registry.py +++ b/registry/tracecat_registry/_internal/registry.py @@ -14,6 +14,7 @@ def register( display_group: str | None = None, doc_url: str | None = None, author: str | None = None, + deprecated: str | None = None, namespace: str = DEFAULT_NAMESPACE, description: str, secrets: list[RegistrySecret] | None = None, @@ -34,6 +35,8 @@ def register( The URL to the documentation for the UDF, by default None. author : str | None, optional The author of the UDF, by default None. + deprecated : str | None, optional + The deprecation message for the UDF, by default None. namespace : str, optional The namespace to register the UDF under, by default 'core'. description : str @@ -91,6 +94,7 @@ def decorator_register(fn: Callable[P, R]) -> Callable[P, R]: "display_group": display_group, "doc_url": doc_url, "author": author, + "deprecated": deprecated, "include_in_schema": include_in_schema, "namespace": namespace, "description": description,