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

Add enforce_min_max_values to datetime transformers #741

Merged
merged 4 commits into from
Nov 14, 2023

Conversation

R-Palazzo
Copy link
Contributor

CU-86aynzc26
Resolve #740

@sdv-team
Copy link
Contributor

@R-Palazzo R-Palazzo removed the request for review from a team November 10, 2023 17:23
Copy link
Contributor

@amontanez24 amontanez24 left a comment

Choose a reason for hiding this comment

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

One comment but otherwise looks good!

@@ -30,6 +30,9 @@ class UnixTimestampEncoder(BaseTransformer):
datetime_format (str):
The strftime to use for parsing time. For more information, see
https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior.
enforce_min_max_values (bool):
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should add this as the last parameter. The main reason is that if someone runs scripts without using the key-word argument names, it might crash after this release since the 4th argument used to be a string and now it is a boolean with a different purpose. This isn't a huge deal though

Copy link
Member

@pvk-developer pvk-developer left a comment

Choose a reason for hiding this comment

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

LGTM!

@R-Palazzo R-Palazzo merged commit b3631bd into main Nov 14, 2023
45 checks passed
@R-Palazzo R-Palazzo deleted the issue-740-enfore-min-max-values-datetime branch November 14, 2023 13:35
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.

Add enforce_min_max_values to datetime transformers
4 participants