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 — bigquery: add Client.update_dataset by jba · Pull Request #4003 · googleapis/google-cloud-python

Conversation

@jba

@jba jba commented Sep 19, 2017

Copy link
Copy Markdown
Contributor

Also, remove Dataset.patch and Dataset.update.

Sorry, something went wrong.

Uh oh!

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

All reactions
@jba
jba requested a review from lukesneeringer as a code owner September 19, 2017 20:23
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 19, 2017
@jba
jba requested review from alixhami, tseaver and tswast September 19, 2017 20:24
tswast
tswast reviewed Sep 19, 2017
View reviewed changes

@tswast tswast 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.

Mostly LGTM.

We need to be clearer in the docs for fields if they are for the Python way of describing the properties or the API way.

Feel free to ignore / wait for a subsequent PR on the additional thoughts on how we might support new fields that we don't have have implemented.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread bigquery/google/cloud/bigquery/client.py Outdated
:param dataset: the dataset to update.

:type fields: sequence of string
:param fields: the fields of ``dataset`` to change.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

Comment thread bigquery/google/cloud/bigquery/client.py Outdated
dataset.dataset_id)
partial = {}
for f in fields:
if f not in Dataset._updateable_fields:

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

Comment thread bigquery/google/cloud/bigquery/client.py Outdated
api_response = self._connection.api_request(
method='PATCH', path=path, data=partial, headers=headers)
ds = Dataset(dataset.dataset_id, project=dataset.project, client=self)
ds._set_properties(api_response)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

Comment thread bigquery/tests/system.py
self.assertEqual(ds2.friendly_name, 'Friendly')
self.assertEqual(ds2.description, 'Description')

# TODO(jba): test that read-modify-write with ETag works.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

@jba
jba force-pushed the bq-ds-update branch from 4fa524b to 7751c46 Compare September 20, 2017 17:26
jba added 9 commits September 20, 2017 13:28
@jba
bigquery: add Client.update_dataset
50b1fb2
Remove Dataset.patch and Dataset.update.
@jba
improve cover
26ebece
@jba
more coverage
3df8b0c
@jba
update system tests
a53ff86
@jba
more coverage
c51d40d
@jba
add creds to client
0a11a2a
@jba
small changes
26511eb
@jba
.
e4df3ad
@jba
convert Python field name to API field name
6c37fab
@jba
jba force-pushed the bq-ds-update branch from 7751c46 to 6c37fab Compare September 20, 2017 17:29
tswast
tswast approved these changes Sep 20, 2017
View reviewed changes
@jba
jba merged commit e8b0760 into googleapis:bigquery-b2 Sep 20, 2017
tswast pushed a commit that referenced this pull request Sep 25, 2017
@jba @tswast
bigquery: add Client.update_dataset (#4003)
014fdc1
* bigquery: add Client.update_dataset

Remove Dataset.patch and Dataset.update.

* improve cover

* more coverage

* update system tests

* more coverage

* add creds to client

* small changes

* .

* convert Python field name to API field name
tswast pushed a commit that referenced this pull request Oct 12, 2017
@jba @tswast
bigquery: add Client.update_dataset (#4003)
04da9c0
* bigquery: add Client.update_dataset

Remove Dataset.patch and Dataset.update.

* improve cover

* more coverage

* update system tests

* more coverage

* add creds to client

* small changes

* .

* convert Python field name to API field name
tswast pushed a commit that referenced this pull request Oct 16, 2017
@jba @tswast
bigquery: add Client.update_dataset (#4003)
a200750
* bigquery: add Client.update_dataset

Remove Dataset.patch and Dataset.update.

* improve cover

* more coverage

* update system tests

* more coverage

* add creds to client

* small changes

* .

* convert Python field name to API field name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tswast tswast tswast approved these changes
@lukesneeringer lukesneeringer Awaiting requested review from lukesneeringer
@tseaver tseaver Awaiting requested review from tseaver
@alixhami alixhami Awaiting requested review from alixhami

Uh oh!

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

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

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.

3 participants

@jba @tswast @googlebot
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.