-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat(api core): simplify from_rfc3339 methods #8742
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to deprecation (for benefit of hypothetical external clients), this PR needs remove all use of the _nanos
version in our codebase (we don't want to be emitting deprecation warnings ourselves).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the coverage and lint failures.
…eapis#9189) * Add support for array params to Cursor.execute() * Raise NotImplementedError for STRUCT-like values
regular expression. | ||
""" | ||
# Raise deprecation warnings for things we want to go away. | ||
warnings.warn( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this warning then I am good
Two similar methods combined into one.
Re-write tests for the 'from_rfc3339_nanos' method.
Fix for coverage and lint failures.
restore previous version with testing regex first + cosmetic chgs for the descriptions
added test to check the deprecation warning
adjusted the condition for the 'from_rfc3339' method + warning fix
* deleted extra spaces
* 'if-else' statement restored to throw an exception * wrote additional tests to cover the exception
…-cloud-python into Methods-Combining
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
Combining methods
from_rfc3339
andfrom_rfc3339_nanos
as requested in #7676.from_rfc3339_nanos
method marked as deprecated and refers to the new implementation.Closes: #7676.