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

Validate Saved Query Names #185

Merged
merged 6 commits into from
Oct 26, 2023
Merged

Conversation

QMalcolm
Copy link
Collaborator

Resolves #180

Description

In #148 which went out in 0.3.0, we forgot to add a validation for the saved query name. This PR adds that validation.

We plan on backporting this to 0.3.latest, which would break people who have saved queries defined with invalid name. Luckily the main thing that uses DSI is dbt-core, and dbt-core's latest production version (1.6.5) uses DSI 0.2.latest. DSI 0.3.0 is being used by dbt-core 1.7.0r1, but not many people are using that yet. Thus it's unlikely that many people have defined saved queries, and only a subset of those who have will have defined invalid names.

Checklist

@QMalcolm QMalcolm added the Backport 0.3.latest Fix should be backported to 0.3.latest label Oct 23, 2023
@QMalcolm QMalcolm requested review from tlento and plypaul October 23, 2023 18:11
@cla-bot cla-bot bot added the cla:yes label Oct 23, 2023
@QMalcolm
Copy link
Collaborator Author

This is a stacked PR

@QMalcolm QMalcolm mentioned this pull request Oct 23, 2023
4 tasks
This will simplify things and allow for some refactors in some
upcoming commits.
@QMalcolm QMalcolm force-pushed the qmalcolm--181-validate-metric-names branch from b99cc42 to 54a0648 Compare October 25, 2023 23:23
@QMalcolm QMalcolm force-pushed the qmalcolm--180-validate-saved-query-names branch from 3fd724f to 07c382f Compare October 25, 2023 23:24
@QMalcolm QMalcolm removed the Backport 0.3.latest Fix should be backported to 0.3.latest label Oct 25, 2023
Base automatically changed from qmalcolm--181-validate-metric-names to main October 25, 2023 23:35
@QMalcolm QMalcolm force-pushed the qmalcolm--180-validate-saved-query-names branch from 07c382f to 77b55d4 Compare October 26, 2023 00:32
Copy link
Contributor

@plypaul plypaul left a comment

Choose a reason for hiding this comment

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

LGTM aside from nit.

dbt_semantic_interfaces/type_enums/node_type.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@tlento tlento left a comment

Choose a reason for hiding this comment

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

Seems reasonable!

dbt_semantic_interfaces/type_enums/node_type.py Outdated Show resolved Hide resolved
@QMalcolm QMalcolm merged commit e439315 into main Oct 26, 2023
7 checks passed
@QMalcolm QMalcolm deleted the qmalcolm--180-validate-saved-query-names branch October 26, 2023 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Saved Query Name Validation
3 participants