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

added validators for start_frame, stop_frane and chunk_size #1310

Merged
merged 2 commits into from
Mar 24, 2020

Conversation

azhavoro
Copy link
Contributor

No description provided.

@azhavoro azhavoro requested a review from nmanovic March 24, 2020 12:04

# pylint: disable=no-self-use
def validate_start_frame(self, value):
if not value > 0:
Copy link
Contributor

Choose a reason for hiding this comment

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

value >= 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad, it's PositiveIntegerField at the Data model that can be 0 and manual validation is not needed in this case.


# pylint: disable=no-self-use
def validate_stop_frame(self, value):
if not value > 0:
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the value for stop frame by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The same as above, I've deleted this validation.

@nmanovic nmanovic merged commit 483835d into az/data_chunk_streaming Mar 24, 2020
@bsekachev bsekachev deleted the az/validators_for_data branch March 25, 2020 08:57
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