Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

feat!: microgenerator changes#203

Merged
kolea2 merged 35 commits into
googleapis:mastergoogleapis/python-bigtable:masterfrom
kolea2:microgenerator-changeskolea2/python-bigtable:microgenerator-changesCopy head branch name to clipboard
Feb 11, 2021
Merged

feat!: microgenerator changes#203
kolea2 merged 35 commits into
googleapis:mastergoogleapis/python-bigtable:masterfrom
kolea2:microgenerator-changeskolea2/python-bigtable:microgenerator-changesCopy head branch name to clipboard

Conversation

@kolea2

@kolea2 kolea2 commented Feb 4, 2021

Copy link
Copy Markdown
Contributor

Release-As: v2.0.0-dev1

Regen the client with the microgenerator. This requires the client to be used with Python >= 3.6

There are a few outstanding questions I have that I will annotate in the PR. Most important changes to pay attention to are the handwritten client and test layers.

@kolea2 kolea2 requested a review from a team February 4, 2021 15:57
@product-auto-label product-auto-label Bot added the api: bigtable Issues related to the googleapis/python-bigtable API. label Feb 4, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Feb 4, 2021
@snippet-bot

snippet-bot Bot commented Feb 4, 2021

Copy link
Copy Markdown

Here is the summary of changes.

You added 1 region tag.
You deleted 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

Comment thread google/cloud/bigtable/column_family.py Outdated
max_age = _helpers._duration_pb_to_timedelta(gc_rule_pb.max_age)
return MaxAgeGCRule(max_age)
# todo check this is right
# max_age = _helpers._duration_pb_to_timedelta(gc_rule_pb.max_age)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

question - is this change the correct new approach?

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.

This might be good to dig into. protoplus knows timestamps, and I would expect gc_rule_pb.max_age to be one, without the helper? Though timedelta isn't timestamp and I don't recall offhand if that is implemented. to be safe, I'd expect gc_rule_pb._pb.max_age to allow the other code to stay the same?

Comment thread google/cloud/bigtable/table.py Outdated
Comment thread tests/unit/test_app_profile.py Outdated
Comment thread tests/unit/test_client.py
@kolea2 kolea2 requested a review from crwilcox February 4, 2021 16:03
Comment thread google/cloud/bigtable/table.py Outdated
Comment thread tests/unit/test_table.py Outdated
@kolea2 kolea2 added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Feb 8, 2021
@kolea2 kolea2 requested a review from a team February 10, 2021 20:52
Comment thread google/cloud/bigtable/client.py
Comment thread google/cloud/bigtable/table.py Outdated
if self.timeout is not None:
kwargs["timeout"] = timeout.ExponentialTimeout(deadline=self.timeout)

# todo confirm this change

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@crwilcox another todo I missed - I think my concern here was the mutate rows call wasn't wrapped in a request={... but I think due to the code below this (will need to expand) this works as expected. LMK if you have a concern

Comment thread tests/system.py
bigtable_table_admin_client_config as table_admin_config,
)

# from google.cloud.bigtable_admin_v2.gapic import (

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@crwilcox ping

Comment thread tests/unit/test_table.py
bigtable_table_admin_pb2.ListBackupsRequest(
parent=parent, filter=backups_filter, **kwargs
),
retry=mock.ANY,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@crwilcox one last thing to point out - the last few params were now removed from the assertion because we are no longer using the inner_api_calls to get the result, let me know if oyu think this should still be here.

Comment thread google/cloud/bigtable/client.py
Comment thread samples/beam/requirements.txt Outdated
@kolea2 kolea2 removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Feb 11, 2021
@kolea2 kolea2 merged commit b31bd87 into googleapis:master Feb 11, 2021
@kolea2 kolea2 deleted the microgenerator-changes branch February 11, 2021 15:12
@release-please release-please Bot mentioned this pull request Apr 6, 2021
tseaver added a commit that referenced this pull request Dec 8, 2021
parthea added a commit that referenced this pull request Jan 11, 2022
parthea added a commit that referenced this pull request Jan 11, 2022
parthea added a commit that referenced this pull request Jan 12, 2022
* ci: run samples under Python 3.9 / 3.10

Refresh each sample's noxfile via:

----------------------------- %< -----------------------------
$ for noxfile in samples/*/noxfile.py; do
    echo "Refreshing $noxfile";
    wget -O $noxfile https://github.com/GoogleCloudPlatform/python-docs-samples/raw/main/noxfile-template.py
    echo "Blackening samples for $noxfile"
    nox -f $noxfile -s blacken
done
----------------------------- %< -----------------------------

Closes #477.

* fix: disable install-from-sorce for beam sample

Per #203.

* fix: skip beam sample for Python 3.10

Beam-related wheels are not yet available.

* fix: also refresh noxfiles for 'samples/snippets'

* ci: don't enforce type hints on old samples

* resolve issue where samples templates are not updated

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* resolve mypy error Name __path__ already defined

* add workaroud from PR #203

Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigtable Issues related to the googleapis/python-bigtable API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.