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 — Add samples for data catalog `lookup_entry`. by tswast · Pull Request #7832 · googleapis/google-cloud-python

Conversation

@tswast

@tswast tswast commented May 1, 2019

Copy link
Copy Markdown
Contributor

These samples use the sample generator to call LookupEntry linked to a BigQuery resource.

Depends on internal CL 246050183 to add the GAPIC config for these samples.

Sorry, something went wrong.

Uh oh!

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

All reactions
@tswast
Add samples for data catalog lookup_entry.
66d9956
These samples use the sample generator to call LookupEntry linked to a BigQuery resource.

Depends on internal CL 246050183 to add the GAPIC config for these samples.
@tswast tswast added type: docs Improvement to the documentation for an API. api: datacatalog Issues related to the Data Catalog API. labels May 1, 2019
@tswast
tswast requested a review from crwilcox as a code owner May 1, 2019 00:00
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 1, 2019
tseaver
tseaver reviewed May 1, 2019
View reviewed changes

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

ISTM that sample code should not be in the main source tree: our normal convention is to place them in datacatalog/docs/samples.py (or perhaps multiple files there).

Sorry, something went wrong.

Uh oh!

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

All reactions
@tswast

tswast commented May 1, 2019

Copy link
Copy Markdown
Contributor Author

GitHub doesn't make it easy to see, but the path is samples/google/cloud/datacatalog_v1beta1/gapic/lookup_entry/datacatalog_lookup_entry_by_sql.py. I've complained about the ridiculously long path names to the generator team, though I haven't filed a bug on it yet.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented May 1, 2019

Copy link
Copy Markdown
Contributor

@tswast I'm not talking about the source from which the sample is generated, but where we put it in this repo: samples for docs should be in the datacatalog/docs subdirectory, not in google/cloud/datacatalog_v1beta1/gapic/: they aren't part of the library, but rather its docs.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tswast

tswast commented May 1, 2019

Copy link
Copy Markdown
Contributor Author

Right, I'm saying it's not in google/, it's in samples/. That's just where the generator sticks it. I could work around that by adding move rules to synth.py, but if we do that, we should notify the generator team about why samples/ doesn't work for us. (IMO, samples/ seems appropriate)

CC @beccasaurus

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented May 2, 2019

Copy link
Copy Markdown
Contributor

@tswast I noticed just now that BigQuery has a samples subdirectory containing similarly-generated (I think?) samples / snippets. Could we do that for datacatalog, rather than leaving them inside google/cloud?

tswast reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

tswast added 2 commits May 2, 2019 16:23
@tswast
Move samples to samples/ directory.
467725e
@tswast
Merge remote-tracking branch 'upstream/master' into datacatalog-samples
6241bb4
@tswast tswast added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label May 2, 2019
@tswast
Exclude samples/google from library copy.
ba3c752
@yoshi-automation yoshi-automation added the 🚨 This issue needs some love. label May 8, 2019
@tswast

tswast commented Jul 1, 2019

Copy link
Copy Markdown
Contributor Author

Obsolete by GoogleCloudPlatform/python-docs-samples#2148.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tswast tswast closed this Jul 1, 2019
@tswast
tswast deleted the datacatalog-samples branch July 1, 2019 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@crwilcox crwilcox Awaiting requested review from crwilcox
1 more reviewer
@tseaver tseaver tseaver left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

api: datacatalog Issues related to the Data Catalog API. cla: yes This human has signed the Contributor License Agreement. do not merge Indicates a pull request not ready for merge, due to either quality or timing. 🚨 This issue needs some love. type: docs Improvement to the documentation for an API.

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 @tseaver @googlebot @yoshi-automation
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.