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

Adjust application of cumulative_type_params to smooth out release process #298

Merged
merged 3 commits into from
Jun 20, 2024

Conversation

courtneyholcomb
Copy link
Contributor

@courtneyholcomb courtneyholcomb commented Jun 20, 2024

Description

2 adjustments related to cumulative_type_params:

  • Add SetCumulativeTypeParamsRule to the set of transformations that actually get applied in prod & test.
  • Disable related validations temporarily. This will allow us to add support for cumulative_type_params in MetricFlow before these validations roll out to customers.

Also upgrades to a new production patch version so that we these changes can be used in metricflow-semantics appropriately.

Checklist

@cla-bot cla-bot bot added the cla:yes label Jun 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.

@courtneyholcomb courtneyholcomb changed the title Court/cumu type params2 Updates to cumulative_type_params Jun 20, 2024
@courtneyholcomb courtneyholcomb marked this pull request as ready for review June 20, 2024 18:43
@tlento tlento changed the title Updates to cumulative_type_params Adjust application of cumulative_type_params to smooth out release process Jun 20, 2024
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.

This seems fine for now. The PR is like three changes in one, but they're all so tiny it seems silly to split them up. I decided to edit the PR title instead of thinking about this. Seemed like the best balance.

I leave it up to you if you prefer to restructure that test to clean up the conditional handling or just merge as-is.

Comment on lines +707 to +709
else:
assert len(build_issues) == 1
expected_substr1 = "Both window and grain_to_date set for cumulative metric. Please set one or the other."
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ew. At least this is temporary.... I don't know that we have much choice given the way this test is structured.

If, instead, we could split the old-style test out from the new style we could just do pytest.mark.skip on the new bit and remove the validator from the DEFAULT_RULES list for now, but I don't know how worthwhile that is. It'll make this test cleaner, so it's not a total waste of time.

@courtneyholcomb courtneyholcomb merged commit d41075e into main Jun 20, 2024
48 of 49 checks passed
@courtneyholcomb courtneyholcomb deleted the court/cumu-type-params2 branch June 20, 2024 19:37
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