Skip to content

Commit

Permalink
Add tags to SavedQueries
Browse files Browse the repository at this point in the history
Adds tags to saved queries.  This is modeled off of
[this](https://github.com/dbt-labs/metricflow/pull/1334/files) PR.
  • Loading branch information
theyostalservice committed Dec 11, 2024
1 parent 1f5710d commit a58abdc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Features-20241210-172725.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Features
body: Adds tags to SavedQueries
time: 2024-12-10T17:27:25.368395-08:00
custom:
Author: theyostalservice
Issue: None
2 changes: 2 additions & 0 deletions metricflow/engine/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ class SavedQuery:
query_params: SavedQueryQueryParams
metadata: Optional[Metadata]
exports: Sequence[Export]
tags: Sequence[str]

@classmethod
def from_pydantic(cls, pydantic_saved_query: SemanticManifestSavedQuery) -> SavedQuery:
Expand All @@ -194,4 +195,5 @@ def from_pydantic(cls, pydantic_saved_query: SemanticManifestSavedQuery) -> Save
query_params=pydantic_saved_query.query_params,
metadata=pydantic_saved_query.metadata,
exports=pydantic_saved_query.exports,
tags=pydantic_saved_query.tags,
)

0 comments on commit a58abdc

Please sign in to comment.