| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@crwilcox I was inspired by our conversation today. Note: I've created this as a draft pull request because after I made this commit, I realized we still call .dataset() 96 times in our samples at docs/snippets.py, and that's after @lbristol88 already moved a bunch over to the new "just use a string instead of a reference" way of doing things! I would feel better about adding the deprecation notice after we update the rest of our samples. |
Sorry, something went wrong.
|
@tswast Gentle ping to see if there are any updates on this PR. |
Sorry, something went wrong.
|
@busunkim96 I've worked with @sduskis to allocate some contractor resources for the necessary code sample updates before we unleash this PR. Is it an issue if we keep this open for now? |
Sorry, something went wrong.
|
@tswast Nope, I just wanted to check. 😸 Thanks! |
Sorry, something went wrong.
…Reference Now that all client methods that take a `DatasetReference` or `TableReference` also take a string, the `client.dataset()` method is unnecessary and confusing.
There was a problem hiding this comment.
There are still a lot of client.dataset() calls in snippets.py, but that file is deprecated, IIRC.
The rest looks good, aside from a remark on a possible grammar thingy.
Sorry, something went wrong.
| This method is deprecated. Construct a | ||
| :class:`~google.cloud.bigquery.dataset.DatasetReference` using its | ||
| constructor or use a string where previously a reference object was | ||
| used. |
There was a problem hiding this comment.
Would it make sense to use the standard Sphinx directive for deprecations?
The text itself is already clear, though.
Sorry, something went wrong.
Sorry, something went wrong.
|
The test_client_load_partitioned_table snippet test failure could be unrelated, happens on another PR, too. Might still be worth investigating, though. Edit: Also happens on master, thus indeed unrelated to this PR. Update: #10195 fixes it. |
Sorry, something went wrong.
Co-Authored-By: Peter Lamut <plamut@users.noreply.github.com>
That's right. We're moving those samples to the samples/ directory and updating them to avoid the use of client.dataset(). I'm hoping that with #10175 and #10176 we'll have enough snippets updated. |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good now. 👍
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Now that all client methods that take a DatasetReference or
TableReference also take a string, the client.dataset() method is
unnecessary and confusing.
Closes #8989.