Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tags to SavedQueries #1564

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
)
Loading