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

build preset to take only supported values #84

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

yias
Copy link
Contributor

@yias yias commented Sep 12, 2024

Description

This PR forces the value of build_preset in model configuration to be one of the supported values.

When the user sets a non supported values in build_preset, an InvalidArgument error gets raised.

Story: [sc-24065]

@yias yias self-assigned this Sep 12, 2024
@yias yias added the enhancement New features or code improvements label Sep 12, 2024
Copy link

codecov bot commented Sep 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.64%. Comparing base (069a602) to head (97279bb).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #84      +/-   ##
==========================================
+ Coverage   82.57%   82.64%   +0.06%     
==========================================
  Files          46       46              
  Lines        2543     2553      +10     
==========================================
+ Hits         2100     2110      +10     
  Misses        443      443              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@awoimbee awoimbee left a comment

Choose a reason for hiding this comment

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

LGTM

I have to say I still think all of this would be so much easier with pydantic

@yias yias merged commit 4fdb9a3 into main Sep 16, 2024
33 checks passed
@yias yias deleted the ibatzian/feature/sc-24065/semantics-for-build-preset branch September 16, 2024 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or code improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants