Skip to content

feat(api core): simplify from_rfc3339 methods - #8742

Closed
emar-kar wants to merge 269 commits into
googleapis:masterfrom
MaxxleLLC:Methods-Combining
Closed

feat(api core): simplify from_rfc3339 methods#8742
emar-kar wants to merge 269 commits into
googleapis:masterfrom
MaxxleLLC:Methods-Combining

Conversation

@emar-kar

@emar-karemar-kar commented Jul 24, 2019

Copy link
Copy Markdown
Contributor

Combining methods from_rfc3339 and from_rfc3339_nanos as requested in #7676.
from_rfc3339_nanos method marked as deprecated and refers to the new implementation.

Closes: #7676.

@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 24, 2019
@emar-kar
emar-kar marked this pull request as ready for review July 24, 2019 13:34
@tseavertseaver added api: core kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jul 24, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 24, 2019

@tseavertseaver left a comment

Copy link
Copy Markdown
Contributor

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).

@tseavertseaver left a comment

Copy link
Copy Markdown
Contributor

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.

@AVaksmanAVaksman added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 25, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 25, 2019
Comment threadapi_core/google/api_core/datetime_helpers.py
Comment threadapi_core/tests/unit/test_datetime_helpers.py
Comment threadapi_core/google/api_core/datetime_helpers.py
Comment threadapi_core/google/api_core/datetime_helpers.py Outdated
@tseavertseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 26, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 26, 2019
@tseavertseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 26, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 26, 2019
@crwilcox
crwilcox self-requested a review August 22, 2019 16:10
Comment threadapi_core/google/api_core/datetime_helpers.py Outdated
@IlyaFaerIlyaFaer added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 23, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 23, 2019
@IlyaFaerIlyaFaer added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 28, 2019
@yoshi-kokoroyoshi-kokoro removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Aug 28, 2019
@crwilcoxcrwilcox added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 6, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 6, 2019
regular expression.
"""
# Raise deprecation warnings for things we want to go away.
warnings.warn(

Copy link
Copy Markdown
Contributor

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

busunkim96and others added 10 commits November 7, 2019 13:58
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
@googlebot

Copy link
Copy Markdown

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 @googlebot I consent. in this pull request.

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 cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@googlebotgooglebot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Nov 8, 2019
@emar-karemar-kar closed this Nov 8, 2019
@googlebot

Copy link
Copy Markdown

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 @googlebot I consent. in this pull request.

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 cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: corecla: noThis human has *not* signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API Core: Simplify from_rfc3339 methods

20 participants

@emar-kar@googlebot@tseaver@crwilcox@busunkim96@AVaksman@IlyaFaer@yoshi-kokoro@yoshi-automation@WalterHub@plamut@tswast@jeanbza@maximus12793@shubha-rajan@wchargin@mkudejim@sukeesh@PaulTR@jingtaow