Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(datacatalog): add quickstart sample for creating fileset entry. #9977

Merged
merged 1 commit into from
Dec 18, 2019

Conversation

mesmacosta
Copy link
Contributor

Fixes #9976

@mesmacosta mesmacosta requested a review from a team December 13, 2019 20:02
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 13, 2019
@mesmacosta mesmacosta changed the title feat(datacatalog): add sample for create a fileset entry quickstart feat(datacatalog): add quickstart sample for creating fileset entry. Dec 13, 2019
# TODO(developer): Set entry_id to the ID of the entry to create.
# entry_id = "your_entry_id"

# 1. Environment cleanup: delete pre-existing data.
Copy link
Contributor

Choose a reason for hiding this comment

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

Are developers expected to encounter pre-existing data? This step seems like something that'd be better suited for a test setup.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

First time developers run no, the intention is to show a reproducible scenario, every time developers run it, it will work, and it shows how to delete the entries in case they need it.
WDYT? An option would be to split this part into a cleanup tutorial.

Copy link
Contributor

Choose a reason for hiding this comment

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

A quickstart sample should introduce as few concepts as possible. I recommend splitting this out.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, will send a separate PR for a clean up tutorial

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The cleanup logic has been removed from this PR.

@@ -0,0 +1,40 @@
# Copyright 2019 Google LLC
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's put this in a tests/quickstart/ folder to reflect the sample location. You might need a tests/quickstart/__init__.py file as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@mesmacosta mesmacosta requested a review from tswast December 16, 2019 13:06
@tswast tswast added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 18, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data Catalog: add quickstart sample for creating fileset entry.
4 participants