Skip to content

Commit

Permalink
Update registry loaders and repository
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo committed Jan 15, 2025
1 parent 8d36f53 commit cf968ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tracecat/registry/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def get_bound_action_impl(
display_group=action.display_group,
doc_url=action.doc_url,
author=action.author,
deprecated=action.deprecated,
origin=action.origin,
)
else:
Expand All @@ -89,6 +90,7 @@ def get_bound_action_impl(
display_group=action.display_group,
doc_url=action.doc_url,
author=action.author,
deprecated=action.deprecated,
include_in_schema=True,
template_action=impl.template_action,
origin=action.origin,
Expand Down
4 changes: 4 additions & 0 deletions tracecat/registry/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class RegisterKwargs(BaseModel):
display_group: str | None
doc_url: str | None
author: str | None
deprecated: str | None
secrets: list[RegistrySecret] | None
include_in_schema: bool

Expand Down Expand Up @@ -157,6 +158,7 @@ def register_udf(
display_group: str | None,
doc_url: str | None,
author: str | None,
deprecated: str | None,
include_in_schema: bool,
template_action: TemplateAction | None = None,
origin: str = DEFAULT_REGISTRY_ORIGIN,
Expand All @@ -169,6 +171,7 @@ def register_udf(
type=type,
doc_url=doc_url,
author=author,
deprecated=deprecated,
secrets=secrets,
args_cls=args_cls,
args_docs=args_docs,
Expand Down Expand Up @@ -382,6 +385,7 @@ def _register_udf_from_function(
description=validated_kwargs.description,
doc_url=validated_kwargs.doc_url,
author=validated_kwargs.author,
deprecated=validated_kwargs.deprecated,
secrets=validated_kwargs.secrets,
default_title=validated_kwargs.default_title,
display_group=validated_kwargs.display_group,
Expand Down

0 comments on commit cf968ca

Please sign in to comment.