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

Expose meta for Metric and SemanticModel #250

Merged
merged 6 commits into from
Mar 11, 2024
Merged

Expose meta for Metric and SemanticModel #250

merged 6 commits into from
Mar 11, 2024

Conversation

WilliamDee
Copy link
Contributor

@WilliamDee WilliamDee commented Jan 20, 2024

Resolves #251

Description

This PR exposes the meta field for Metric and SemanticModel which enables it to be parsed out in the semantic manifest for use in the SL APIs

Checklist

@WilliamDee WilliamDee marked this pull request as draft January 20, 2024 00:32
@cla-bot cla-bot bot added the cla:yes label Jan 20, 2024
Copy link

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

1 similar comment
Copy link

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

@WilliamDee WilliamDee changed the title Expose meta in DSI Expose meta for Metric and SemanticModel Jan 20, 2024
@WilliamDee WilliamDee marked this pull request as ready for review January 20, 2024 05:03
Copy link
Collaborator

@QMalcolm QMalcolm left a comment

Choose a reason for hiding this comment

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

Howdy! Thank you for doing this work @WilliamDee. There are some small changes we need to make before proceeding.

dbt_semantic_interfaces/implementations/semantic_model.py Outdated Show resolved Hide resolved
dbt_semantic_interfaces/implementations/metric.py Outdated Show resolved Hide resolved
dbt_semantic_interfaces/protocols/metric.py Outdated Show resolved Hide resolved
dbt_semantic_interfaces/parsing/schemas.py Outdated Show resolved Hide resolved
@WilliamDee
Copy link
Contributor Author

@QMalcolm this piece should be ready to go! I believe core needs to update that nested config for Metric and we should be able to merge this

Copy link
Collaborator

@QMalcolm QMalcolm left a comment

Choose a reason for hiding this comment

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

Looks good, one small nit on consistency

dbt_semantic_interfaces/protocols/__init__.py Show resolved Hide resolved
dbt_semantic_interfaces/implementations/metric.py Outdated Show resolved Hide resolved
@WilliamDee WilliamDee merged commit f258b58 into main Mar 11, 2024
18 checks passed
@WilliamDee WilliamDee deleted the will/add-meta branch March 11, 2024 17:43
courtneyholcomb added a commit that referenced this pull request Sep 4, 2024
### Description
A cleanup item that came up today. Context:
#250 (comment)


### Checklist

- [ ] I have read [the contributing
guide](https://github.com/dbt-labs/dbt-semantic-interfaces/blob/main/CONTRIBUTING.md)
and understand what's expected of me
- [ ] I have signed the
[CLA](https://docs.getdbt.com/docs/contributor-license-agreements)
- [ ] This PR includes tests, or tests are not required/relevant for
this PR
- [ ] I have run `changie new` to [create a changelog
entry](https://github.com/dbt-labs/dbt-semantic-interfaces/blob/main/CONTRIBUTING.md#adding-a-changelog-entry)
DevonFulcher added a commit that referenced this pull request Nov 12, 2024
### Description

This PR is modeled off of
[this](#250)
prior PR. This PR adds meta to measures, entities, and dimensions.
 
### Checklist

- [x] I have read [the contributing
guide](https://github.com/dbt-labs/dbt-semantic-interfaces/blob/main/CONTRIBUTING.md)
and understand what's expected of me
- [x] I have signed the
[CLA](https://docs.getdbt.com/docs/contributor-license-agreements)
- [x] This PR includes tests, or tests are not required/relevant for
this PR
- [x] I have run `changie new` to [create a changelog
entry](https://github.com/dbt-labs/dbt-semantic-interfaces/blob/main/CONTRIBUTING.md#adding-a-changelog-entry)
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.

[SL-1563] [Feature] Add meta to Metric/SemanticModel
3 participants