Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

feat: support data_governance_type#1708

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Linchin merged 4 commits intogoogleapis:mainfromLinchin:data-gov-2
Nov 1, 2023

Conversation

@Linchin
Copy link
Contributor

@LinchinLinchin commentedOct 30, 2023
edited
Loading

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 abug/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#1707 🦕

@LinchinLinchin requested review froma team ascode ownersOctober 30, 2023 23:35
@product-auto-labelproduct-auto-labelbot added size: mPull request size is medium. api: bigqueryIssues related to the googleapis/python-bigquery API. labelsOct 30, 2023
@LinchinLinchin requested review fromchalmerlowe andshollyman and removed request forprash-miOctober 30, 2023 23:35
@LinchinLinchin added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelOct 30, 2023
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelOct 30, 2023
Copy link
Contributor

@shollymanshollyman left a comment

Choose a reason for hiding this comment

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

Is it worth adding the new field to an existing system/integration test related to routines, or are there extensive dependencies here to properly setup masking?


@data_governance_type.setter
defdata_governance_type(self,value):
ifvalueisnotNoneandvaluenotinself._DATA_GOVERNANCE_TYPE:
Copy link
Contributor

Choose a reason for hiding this comment

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

Generally we try to avoid this kind of setter enforcement in the client library itself, as the library may not be aware of all valid values. Allow the methods to raise errors if there's issues (e.g at routine creation/update/etc).

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Thank you, this is really good to know! I will only check for type instead.

@Linchin
Copy link
ContributorAuthor

Is it worth adding the new field to an existing system/integration test related to routines, or are there extensive dependencies here to properly setup masking?

Data governance feels like a new CUJ that is not covered by the current system tests, with a unique set of requirements for the routine itself (e.g., can have only one argument, input and output must be of the same type, etc.). So I added a test case for it.

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

Reviewers

@shollymanshollymanshollyman approved these changes

@chalmerlowechalmerloweAwaiting requested review from chalmerlowe

Assignees

No one assigned

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.size: mPull request size is medium.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

support data_governance_type when using routine

3 participants

@Linchin@shollyman@yoshi-kokoro

[8]ページ先頭

©2009-2025 Movatter.jp