GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: support resource_tags for table by hrkh · Pull Request #2093 · googleapis/python-bigquery

This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Conversation

@hrkh

@hrkh hrkh commented Dec 21, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #2089 🦕

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery API. labels Dec 21, 2024
@hrkh
feat: support resource_tags for table
e783909
@hrkh
hrkh force-pushed the feature/resource-tags branch from 732426d to e783909 Compare December 21, 2024 04:30
@hrkh hrkh changed the title Support resource_tags for Table feat: support resource_tags for table Dec 21, 2024
@hrkh
hrkh marked this pull request as ready for review December 21, 2024 05:16
@hrkh
hrkh requested review from a team and PhongChuong December 21, 2024 05:16
@blunderbuss-gcf blunderbuss-gcf Bot assigned Linchin Dec 21, 2024
@hrkh
hrkh marked this pull request as draft December 21, 2024 06:42
hrkh added 3 commits December 21, 2024 17:47
@hrkh
fix: system test for resource tags
a194256
@hrkh
fix: typo
75fde55
@hrkh
fix: unit test
873caf8
@hrkh
hrkh marked this pull request as ready for review December 21, 2024 10:58
@Linchin

Linchin commented Jan 3, 2025

Copy link
Copy Markdown
Contributor

Sorry, this seems to be a duplicate of #2090.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Linchin Linchin closed this Jan 3, 2025
@hrkh

hrkh commented Jan 6, 2025

Copy link
Copy Markdown
Contributor Author

Hi @Linchin ,
Thank you for your feedback.

This PR was closed as a duplicate of #2090, but I’d like to clarify that #2090 addresses the resource tags for datasets, while this PR focuses on the resource tags for tables.

Could you please reopen this PR for further review? Let me know if additional clarification is needed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Linchin Linchin reopened this Jan 6, 2025
@Linchin

Linchin commented Jan 6, 2025

Copy link
Copy Markdown
Contributor

Thank you @hrkh for clarifying! I have reopened and will review this PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Linchin
Linchin reviewed Jan 6, 2025
View reviewed changes
Comment thread google/cloud/bigquery/table.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Linchin
Linchin reviewed Jan 6, 2025
View reviewed changes
Comment thread google/cloud/bigquery/table.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Linchin
Linchin reviewed Jan 6, 2025
View reviewed changes
Comment thread tests/unit/test_client.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Linchin added 2 commits January 7, 2025 07:13
@Linchin
Update tests/unit/test_client.py
43cc996
@Linchin
Merge branch 'main' into feature/resource-tags
481b2c2
@Linchin Linchin added kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jan 6, 2025
@Linchin
Update google/cloud/bigquery/table.py
19f66d5
@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jan 6, 2025
@Linchin
Merge branch 'main' into feature/resource-tags
04f4378
@Linchin Linchin added kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jan 16, 2025
@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jan 16, 2025
@Linchin

Linchin commented Jan 17, 2025

Copy link
Copy Markdown
Contributor

Thank you @hrkh for your contribution! It seems we just have the system test with python 3.12 failing, and it was caused by the same resource tag having been created by the python 3.8 system test. We encountered the exact same issue in #2090, and it was resolved by prefixing a randomly generated string to the tags (as in this commit). Could you see if you could implement this, so we can get this PR across the line? Cheers.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hrkh
fix: append random string suffix to resource tags to prevent test con…
6eb99f2
…flicts
@hrkh

hrkh commented Jan 18, 2025

Copy link
Copy Markdown
Contributor Author

Thank you @Linchin for your detailed feedback and guidance!

I've updated the PR to append randomly generated strings as suffixes to the tag keys, following the approach used in the referenced commit. This should resolve the test failures with Python 3.12.

Please let me know if any further adjustments are needed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Linchin Linchin added kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jan 21, 2025
@Linchin
Merge branch 'main' into feature/resource-tags
e753b48
@Linchin Linchin added kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jan 21, 2025
@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jan 21, 2025
Linchin
Linchin reviewed Jan 21, 2025
View reviewed changes
Comment thread google/cloud/bigquery/table.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Linchin
Update google/cloud/bigquery/table.py
0fc85d6
@Linchin Linchin added kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jan 21, 2025
@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jan 21, 2025
Linchin
Linchin approved these changes Jan 21, 2025
View reviewed changes

@Linchin Linchin left a comment

Copy link
Copy Markdown
Contributor

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.

LGTM. Thank you!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hrkh reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@Linchin
Linchin merged commit d4070ca into googleapis:main Jan 21, 2025
@release-please release-please Bot mentioned this pull request Jan 21, 2025
chore(main): release 3.30.0 #2119
Merged
@dyanarose dyanarose mentioned this pull request Feb 20, 2025
[Feature] Allow for Setting of IAM Tags dbt-labs/dbt-adapters#577
Open
3 tasks done
This was referenced Mar 4, 2025
March 03, 2025 kitta65/bq-extension-vscode#678
Closed
March 03, 2025 kitta65/prettier-plugin-bq#614
Closed
March 03, 2025 kitta65/bq2cst#480
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@PhongChuong PhongChuong Awaiting requested review from PhongChuong
1 more reviewer
@Linchin Linchin Linchin approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@Linchin Linchin

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. size: m Pull request size is medium.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Support resource_tags for Table

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@hrkh @Linchin @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.