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 — feat: Add dataplane code snippets for feature store service by lclc19 · Pull Request #713 · googleapis/python-aiplatform

Conversation

@lclc19

@lclc19 lclc19 commented Sep 16, 2021

Copy link
Copy Markdown
Contributor

This is a follow up PR for dataplane code snippets for feature store service

Sorry, something went wrong.

Uh oh!

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

All reactions
@lclc19
lclc19 requested a review from a team September 16, 2021 19:52
@lclc19
lclc19 requested a review from a team as a code owner September 16, 2021 19:52
@lclc19
lclc19 requested a review from dinagraves September 16, 2021 19:52
@product-auto-label product-auto-label Bot added the api: aiplatform Issues related to the AI Platform API. label Sep 16, 2021
@snippet-bot

snippet-bot Bot commented Sep 16, 2021 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 4 region tags.
  • samples/snippets/feature_store_service/batch_create_features_sample.py:19, tag aiplatform_batch_create_features_sample
  • samples/snippets/feature_store_service/batch_read_feature_values_sample.py:20, tag aiplatform_batch_read_feature_values_sample
  • samples/snippets/feature_store_service/import_feature_values_sample.py:19, tag aiplatform_import_feature_values_sample
  • samples/snippets/feature_store_service/read_feature_values_sample.py:19, tag aiplatform_read_feature_values_sample

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment
All reactions

Sorry, something went wrong.

Uh oh!

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

@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 16, 2021
diemtvu
diemtvu reviewed Sep 16, 2021
View reviewed changes
Comment thread samples/snippets/feature_store_service/batch_create_features_sample.py Resolved

Uh oh!

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

Comment thread samples/snippets/feature_store_service/batch_create_features_sample.py Resolved

Uh oh!

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

lclc19 added 4 commits September 16, 2021 13:48
@lclc19
feat: Add code snippets for feature store service
4d8e39d
* Add resource creation and deletion including featurestore, entity
  type and feature.
@lclc19
fix: feature store controlplane convert string req to class definitions
d446083
@lclc19
feat: Add dataplane code snippets for feature store service
065d2d0
@lclc19
fix: feature store data plane convert request strings to objects
a94f08b
@lclc19
lclc19 force-pushed the lclc_snippet_part_2 branch from 4fce072 to a94f08b Compare September 16, 2021 22:17
@lclc19
fix: construct the request directly in sample code
80e8c4d
@lclc19
lclc19 force-pushed the lclc_snippet_part_2 branch from 02bbd39 to 80e8c4d Compare September 16, 2021 23:15
@lclc19 lclc19 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 17, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 17, 2021
diemtvu
diemtvu reviewed Sep 17, 2021
View reviewed changes
Comment thread samples/snippets/feature_store_service/batch_create_features_sample.py Resolved

Uh oh!

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

Comment thread samples/snippets/feature_store_service/batch_read_feature_values_sample.py Resolved

Uh oh!

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

Comment thread samples/snippets/feature_store_service/batch_read_feature_values_sample.py Resolved

Uh oh!

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

Comment thread samples/snippets/feature_store_service/batch_create_features_sample.py Resolved

Uh oh!

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

@lclc19
fix: removed monitoring config, add wildcard sample for batch read
9dd3a7a
@lclc19
lclc19 force-pushed the lclc_snippet_part_2 branch from 254e0a8 to 9dd3a7a Compare September 22, 2021 18:58
@lclc19

lclc19 commented Sep 22, 2021

Copy link
Copy Markdown
Contributor Author

Re guidance for parameters list:
Same as #713 (comment), we need to expose the request construction explicitly in order for the sample to be educational. We expect the usage for this snippet is that a user fill in all the parameters as seen in the function signature, then the snippet should work as expected, and the user can later tweak the hard coded part to fulfill their specialized use.

All reactions

Sorry, something went wrong.

Uh oh!

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

@nicain
nicain self-requested a review September 22, 2021 19:39
nicain
nicain suggested changes Sep 22, 2021
View reviewed changes

@nicain nicain left a comment •
edited
Loading

Uh oh!

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

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.

  • Import dependencies
  • Instantiate the client library
  • Handle authentication
  • Prepare an API request
  • Exercise the API
  • Process the result
  • Use correct region tags
  • Region tags updated in cloud.google.com
  • Self-contained, copy-paste-runnable
  • Descriptive top-level comment
  • Code comments in the body of the code snippet
  • Lines of code (and 120 char lines)
  • Levels of indirection
  • Cyclomatic complexity
  • Variable instantiation
  • Variable types
  • Adhere to language idioms
  • Handle errors
  • Test coverage
  • Portable in multiple environments

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread samples/snippets/conftest.py Resolved

Uh oh!

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

Comment thread samples/snippets/feature_store_service/batch_create_features_sample.py Resolved

Uh oh!

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

Comment thread samples/snippets/feature_store_service/batch_create_features_sample.py Resolved

Uh oh!

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

Comment thread samples/snippets/feature_store_service/batch_read_feature_values_sample.py Resolved

Uh oh!

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

Comment thread samples/snippets/feature_store_service/batch_read_feature_values_sample.py Resolved

Uh oh!

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

Comment thread samples/snippets/feature_store_service/delete_featurestore_sample.py Resolved

Uh oh!

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

Comment thread samples/snippets/feature_store_service/import_feature_values_sample.py Resolved

Uh oh!

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

Comment thread samples/snippets/feature_store_service/read_feature_values_sample.py Resolved

Uh oh!

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

Comment thread samples/snippets/feature_store_service/read_feature_values_sample_test.py Resolved

Uh oh!

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

Comment thread samples/snippets/feature_store_service/read_feature_values_sample_test.py Resolved

Uh oh!

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

lclc19 and others added 2 commits September 22, 2021 14:17
@lclc19
fix: unnest request variables, added top level comment
b65b52e
@nicain
Merge branch 'main' into lclc_snippet_part_2
6b4c03c
@nicain
nicain self-requested a review September 22, 2021 22:15
nicain
nicain approved these changes Sep 22, 2021
View reviewed changes

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

Updates make this LGTM.

You may want to verify that your region tags are consistent with those in the documentation, I haven't checked those but don't want to block you.

Sorry, something went wrong.

Uh oh!

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

All reactions
@lclc19

lclc19 commented Sep 22, 2021

Copy link
Copy Markdown
Contributor Author

Updates make this LGTM.

You may want to verify that your region tags are consistent with those in the documentation, I haven't checked those but don't want to block you.

Thanks, double checked the region tags to make sure they are conforming to go/code-snippets-style#use-correct-region-tags

All reactions

Sorry, something went wrong.

Uh oh!

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

@lclc19
Merge branch 'main' into lclc_snippet_part_2
b36df71
@lclc19
lclc19 merged commit e3ea683 into googleapis:main Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dinagraves dinagraves Awaiting requested review from dinagraves
2 more reviewers
@diemtvu diemtvu diemtvu left review comments
@nicain nicain nicain approved these changes
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: aiplatform Issues related to the AI Platform API. 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.

4 participants

@lclc19 @nicain @diemtvu @yoshi-kokoro
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 01402792 — 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.