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 — fix: ensure AccessEntry equality and repr uses the correct `entity_type` by tswast · Pull Request #2182 · googleapis/python-bigquery

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

Conversation

@tswast

@tswast tswast commented May 13, 2025

Copy link
Copy Markdown
Contributor

Discovered while updating the internal version of google-cloud-bigquery. Without this fix, it was causing this test to fail: https://github.com/dbt-labs/dbt-bigquery/blob/0995665e490cdee9c408d26aac8e1c19fefaebe0/tests/unit/test_dataset.py#L25

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • 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 #<issue_number_goes_here> 🦕

Sorry, something went wrong.

Uh oh!

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

All reactions
@tswast
fix: ensure AccessEntry equality and repr uses the correct entity_type
d5b1455
@tswast
tswast requested review from a team and agrawal-siddharth May 13, 2025 18:28
@product-auto-label product-auto-label Bot added the size: s Pull request size is small. label May 13, 2025
@blunderbuss-gcf blunderbuss-gcf Bot assigned GaoleMeng May 13, 2025
@product-auto-label product-auto-label Bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label May 13, 2025
tswast
tswast commented May 13, 2025
View reviewed changes
Comment thread tests/unit/test_dataset.py

@tswast tswast May 13, 2025

Copy link
Copy Markdown
Contributor Author

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.

FYI: I did a mini-TDD for this. Both of these tests fail without the changes in dataset.py.

Sorry, something went wrong.

Uh oh!

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

All reactions
chelsea-lin
chelsea-lin reviewed May 13, 2025
View reviewed changes
Comment thread tests/unit/test_dataset.py
assert "dataset" in entry._properties
assert "condition" in entry._properties

def test_repr_from_api_repr(self):

@chelsea-lin chelsea-lin May 13, 2025

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.

Can you please check the array of AccessEntry works too? The g3 failed tests show the None entity type in the array: https://screenshot.googleplex.com/B88hiRSwcAfeE49

Sorry, something went wrong.

Uh oh!

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

All reactions

@tswast tswast May 13, 2025

Copy link
Copy Markdown
Contributor Author

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.

Done in 0cfa704

Also verified that the added test fails until the changes in dataset.py.

Sorry, something went wrong.

Uh oh!

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

chelsea-lin reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
chelsea-lin
chelsea-lin approved these changes May 13, 2025
View reviewed changes
@tswast
add a test for access_entries
0cfa704
chalmerlowe
chalmerlowe approved these changes May 14, 2025
View reviewed changes

@chalmerlowe chalmerlowe left a comment

Copy link
Copy Markdown
Collaborator

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, Approved

Sorry, something went wrong.

Uh oh!

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

All reactions
@chalmerlowe
chalmerlowe merged commit 0217637 into main May 14, 2025
@chalmerlowe
chalmerlowe deleted the tswast-accessentry-eq branch May 14, 2025 09:36
@chalmerlowe

chalmerlowe commented May 14, 2025

Copy link
Copy Markdown
Collaborator

Thanks for submitting this PR. Much appreciated, Tim.

tswast reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

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

@release-please release-please Bot mentioned this pull request May 14, 2025
chore(main): release 3.33.0 #2180
Merged
This was referenced May 28, 2025
May 26, 2025 kitta65/bq-extension-vscode#768
Closed
May 26, 2025 kitta65/prettier-plugin-bq#660
Closed
May 26, 2025 kitta65/bq2cst#519
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@agrawal-siddharth agrawal-siddharth Awaiting requested review from agrawal-siddharth
2 more reviewers
@chalmerlowe chalmerlowe chalmerlowe approved these changes
@chelsea-lin chelsea-lin chelsea-lin approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@GaoleMeng GaoleMeng

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

4 participants

@tswast @chalmerlowe @chelsea-lin @GaoleMeng
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.