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

refactor(parser validation): Remove required mode rule #6692

Merged

Conversation

unitrium
Copy link
Contributor

Issue

The required mode rule has been moved to the quality layer in the back-end therefore there's no need for it in the parser space anymore.

Description

Removing the required mode validation rule from all parsers.

Double check

  • I have tested my parser changes locally with poetry run test_parser "zone_key"
  • I have run pnpx prettier@2 --write . and poetry run format in the top level directory to format my changes.

@github-actions github-actions bot added parser python Pull requests that update Python code tests labels Apr 23, 2024
Copy link
Member

@VIKTORVAV99 VIKTORVAV99 left a comment

Choose a reason for hiding this comment

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

LGTM!

@unitrium unitrium merged commit 46105da into master Apr 23, 2024
20 checks passed
@unitrium unitrium deleted the robin/pla-632-remove-expected-modes-validation-from-contrib branch April 23, 2024 14:33
@@ -1001,14 +941,6 @@ def validate_production(

if validation_criteria:
return validate(datapoint, logger=logger, **validation_criteria)

# NOTE: Why are there sepcial checks for these zones?
if zone_key.startswith("DK-"):
Copy link
Member

Choose a reason for hiding this comment

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

Aren't we removing all validation for these zones?

Copy link
Member

Choose a reason for hiding this comment

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

They don't have any other validation going on so it shouldn't be a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser python Pull requests that update Python code tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants