-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
# 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. |
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.
Are developers expected to encounter pre-existing data? This step seems like something that'd be better suited for a test setup.
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.
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.
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.
A quickstart sample should introduce as few concepts as possible. I recommend splitting this out.
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.
sure, will send a separate PR for a clean up tutorial
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.
The cleanup logic has been removed from this PR.
@@ -0,0 +1,40 @@ | |||
# Copyright 2019 Google LLC |
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.
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.
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.
done
Fixes #9976