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

Change resolved_primary_entity helper signature #1485

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

plypaul
Copy link
Contributor

@plypaul plypaul commented Oct 30, 2024

The helper method resolved_primary_entity gets the primary entity in a semantic model. Since semantic models with a measure or a dimension should have a primary entity (enforced by validations), this PR changes that method to raise an exception if one does not exist instead of returning None. get_primary_entity_else_error is also removed since it becomes redundant.

@cla-bot cla-bot bot added the cla:yes label Oct 30, 2024
@plypaul plypaul marked this pull request as ready for review October 30, 2024 17:01
Base automatically changed from p--short-term-perf--29 to main October 31, 2024 21:27
@plypaul plypaul merged commit 66f4ea2 into main Nov 1, 2024
15 checks passed
@plypaul plypaul deleted the p--short-term-perf--30 branch November 1, 2024 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants