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

ComparisonLevel composition v2 #1114

Merged
merged 7 commits into from
Mar 29, 2023

Conversation

NickCrews
Copy link
Contributor

@NickCrews NickCrews commented Mar 11, 2023

This is a spin-off of #1096. Changes from that PR

  • Rebased to on top of current master
  • Changed the shared testing stuff to be a simple function instead
    of a fixture, since it's not expensive to construct
    and we don't need multiple versions per test
  • made ComparisonLevel.label_for_charts public as well
  • Used ComparisonLevel objects in the composition logic
    instead of raw dicts
  • Removed all the complex "label_for_charts" generating stuff. That is
    the responsibility of the ComparisonLevel and should be
    done there. We can port over the nice SQL normalization
    stuff that @ThomasHepworth did, but that should be in a separate
    follow up PR, and more central to the ComparisonLevel,
    not specific to this composition stuff.

Some things seemed to not have been conforming to black.
It is used by these other classes so it really is public.
And it is a public part of the API once you convert the
ComparisonLevel to a dict, so it really is public.
They were getting treated like these common testing modules
were 3rd party, but they are actually 1st party
@ThomasHepworth ThomasHepworth changed the base branch from master to comparison_level_composition March 28, 2023 12:38
@ThomasHepworth ThomasHepworth changed the base branch from comparison_level_composition to master March 28, 2023 12:59
Copy link
Contributor

@ThomasHepworth ThomasHepworth left a comment

Choose a reason for hiding this comment

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

Thanks Nick, your changes all look sensible.

I'm happy to omit the comparison level chart names code.

@NickCrews
Copy link
Contributor Author

Sounds good, thanks for the review! Let me know if there's anything I can do to usher this along.

@ThomasHepworth ThomasHepworth merged commit fb48f23 into moj-analytical-services:master Mar 29, 2023
@RossKen RossKen mentioned this pull request Mar 30, 2023
@ThomasHepworth ThomasHepworth mentioned this pull request Jul 10, 2023
9 tasks
@NickCrews NickCrews deleted the cll_comp_v2 branch February 14, 2024 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants