From e6d2012c91caa5d86baebdd8afa9a1358ff35c09 Mon Sep 17 00:00:00 2001 From: Owen Kephart Date: Mon, 23 Dec 2024 11:08:48 -0500 Subject: [PATCH] [core-api][experimental] source code metadata --- .../_core/definitions/metadata/source_code.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/python_modules/dagster/dagster/_core/definitions/metadata/source_code.py b/python_modules/dagster/dagster/_core/definitions/metadata/source_code.py index 69e7e3c6d27f8..c3d2d05a9103d 100644 --- a/python_modules/dagster/dagster/_core/definitions/metadata/source_code.py +++ b/python_modules/dagster/dagster/_core/definitions/metadata/source_code.py @@ -6,7 +6,7 @@ from typing import TYPE_CHECKING, Any, Callable, List, Optional, Sequence, Union import dagster._check as check -from dagster._annotations import experimental, public +from dagster._annotations import beta, public from dagster._core.definitions.metadata.metadata_set import ( NamespacedMetadataSet as NamespacedMetadataSet, TableMetadataSet as TableMetadataSet, @@ -22,7 +22,7 @@ DEFAULT_SOURCE_FILE_KEY = "asset_definition" -@experimental +@beta @whitelist_for_serdes class LocalFileCodeReference(DagsterModel): """Represents a local file source location.""" @@ -32,7 +32,7 @@ class LocalFileCodeReference(DagsterModel): label: Optional[str] = None -@experimental +@beta @whitelist_for_serdes class UrlCodeReference(DagsterModel): """Represents a source location which points at a URL, for example @@ -43,7 +43,7 @@ class UrlCodeReference(DagsterModel): label: Optional[str] = None -@experimental +@beta @whitelist_for_serdes class CodeReferencesMetadataValue(DagsterModel, MetadataValue["CodeReferencesMetadataValue"]): """Metadata value type which represents source locations (locally or otherwise) @@ -148,7 +148,7 @@ def _with_code_source_single_definition( ) -@experimental +@beta class FilePathMapping(ABC): """Base class which defines a file path mapping function. These functions are used to map local file paths to their corresponding paths in a source control repository. @@ -172,7 +172,7 @@ def convert_to_source_control_path(self, local_path: Path) -> str: """ -@experimental +@beta @dataclass class AnchorBasedFilePathMapping(FilePathMapping): """Specifies the mapping between local file paths and their corresponding paths in a source control repository, @@ -291,7 +291,7 @@ def _build_gitlab_url(url: str, branch: str) -> str: return f"{url}/-/tree/{branch}" -@experimental +@beta def link_code_references_to_git( assets_defs: Sequence[ Union["AssetsDefinition", "SourceAsset", "CacheableAssetsDefinition", "AssetSpec"] @@ -353,7 +353,7 @@ def link_code_references_to_git( ] -@experimental +@beta def with_source_code_references( assets_defs: Sequence[ Union["AssetsDefinition", "SourceAsset", "CacheableAssetsDefinition", "AssetSpec"]