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

saved queries support tags #6632

Merged
merged 27 commits into from
Dec 24, 2024
Merged

saved queries support tags #6632

merged 27 commits into from
Dec 24, 2024

Conversation

mirnawong1
Copy link
Contributor

@mirnawong1 mirnawong1 commented Dec 10, 2024

@mirnawong1 mirnawong1 requested a review from a team as a code owner December 10, 2024 10:35
Copy link

vercel bot commented Dec 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview Dec 24, 2024 0:28am

@github-actions github-actions bot added content Improvements or additions to content size: medium This change will take up to a week to address Docs team Authored by the Docs team @dbt Labs labels Dec 10, 2024
@mirnawong1 mirnawong1 changed the title [do not merge] exports support tags [do not merge] saved queries support tags Dec 11, 2024
@github-actions github-actions bot added size: large This change will more than a week to address and might require more than one person and removed size: medium This change will take up to a week to address labels Dec 11, 2024
Copy link

@theyostalservice theyostalservice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all your work on this, Mirna!

@@ -17,8 +17,32 @@ To create a saved query, refer to the following table parameters.
:::tip
Note that we use the double colon (::) to indicate whether a parameter is nested within another parameter. So for example, `query_params::metrics` means the `metrics` parameter is nested under `query_params`.
:::

<!-- For versions 1.9 and higher -->
<VersionBlock firstVersion="1.9">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't review this as I'm not sure what has changed and it doesn't seem related to tags

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good shout! just added that tags are supported in 1.9+ under the config value:
Screenshot 2024-12-23 at 11 43 39

config:
tags: <string> | [<string>]
tags: string

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know about tags for sub-properties like columns, but since the term is plural, I'd be a little surprised if this change was correct. :/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @theyostalservice ! it does work for models (see screenshot).
i tried seeing if it worked for saved queries, but i keep getting errors. can you tell me the specific command a user can use to run save queries with a specific tag? dbt sl saved-queries --select tag:santi, dbt sl export --sq-name--select tag:santi, dbt sl export --select tag:santi, dbt sl saved-queries --select tag:santi didn't work for me?

Screenshot 2024-12-23 at 12 03 26

website/docs/reference/resource-configs/tags.md Outdated Show resolved Hide resolved
- order_metrics
- hourly
```

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add what command to use to list sq with tag name

add command examples
@mirnawong1 mirnawong1 changed the title [do not merge] saved queries support tags saved queries support tags Dec 24, 2024
Copy link
Contributor

@nataliefiann nataliefiann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hiya @mirnawong1

Thanks for creating this PR. I've approved this for you. I've left a non-blocking suggestion and one question.

Kind Regards
Natalie

@mirnawong1 mirnawong1 enabled auto-merge December 24, 2024 12:23
@mirnawong1 mirnawong1 merged commit a5ff11c into current Dec 24, 2024
8 checks passed
@mirnawong1 mirnawong1 deleted the add-tags branch December 24, 2024 12:28
Copy link
Contributor

Check your created Crawler

Check your created index on your Algolia Application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: large This change will more than a week to address and might require more than one person trigger-crawl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Core] Saved queries support tags
3 participants