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

Update metadata doc section for KF 1.0 #1641

Merged

Conversation

zhenghuiwang
Copy link
Contributor

@zhenghuiwang zhenghuiwang commented Feb 10, 2020

Related to #1207

This PR update the metadata doc section for KF 1.0 release:

  • Move the metadata section from "component/misc" to component to make it more discoverable.
  • Remove the backend rest API part and reference, replacing it with current gRPC service.
  • Update examples and external links

This change is Reviewable

@zhenghuiwang zhenghuiwang changed the title [WIP] Update metadata doc section Update metadata doc section Feb 10, 2020
@zhenghuiwang zhenghuiwang requested review from sarahmaddox, jinchihe and neuromage and removed request for inc0 and jinchihe February 10, 2020 23:18
@zhenghuiwang zhenghuiwang changed the title Update metadata doc section Update metadata doc section for KF 1.0 Feb 10, 2020
Copy link
Contributor

@sarahmaddox sarahmaddox left a comment

Choose a reason for hiding this comment

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

I'll leave this to @joeliedtke for a full review. Just adding a couple of comments for your attention.

@sarahmaddox
Copy link
Contributor

/assign @joeliedtke

@sarahmaddox
Copy link
Contributor

Fixes #1651

--header "Content-Type: application/json" -d \
'{"name":"myorg/mytype/v1","properties":{"f1":"STRING", "f2":"INT", "f3": "DOUBLE"}}'
```
Kubeflow metadata SDK saves and UI retrieves data via the gRPC service. Similarly, you can define your own metadata types to log and view metadata for your custom artifacts. For Python examples, you can check [MLMD Python client](https://pypi.org/project/ml-metadata/) and Kubeflow metadata SDK [source code](https://github.com/kubeflow/metadata/blob/master/sdk/python/kubeflow/metadata/metadata.py). For Go examples, you can check the Watcher [source code](https://github.com/kubeflow/metadata/blob/master/watcher/handlers/metalogger.go).
Copy link
Member

Choose a reason for hiding this comment

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

Suggested revision for: Kubeflow metadata SDK saves and UI retrieves data via the gRPC service.

The Kubeflow Metadata SDK saves and retrieves data via the gRPC service.

Copy link
Member

Choose a reason for hiding this comment

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

metadata SDK -> Metadata SDK

Copy link
Member

Choose a reason for hiding this comment

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

What is "the Watcher"? Could this be referred to as the resource_watcher, or some other descriptive name?

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.

--header "Content-Type: application/json" -d \
'{"name":"myorg/mytype/v1","properties":{"f1":"STRING", "f2":"INT", "f3": "DOUBLE"}}'
```
Kubeflow Metadata SDK saves and retrieves data via the gRPC service. Similarly, you can define your own metadata types to log and view metadata for your custom artifacts. For Python examples, you can check [MLMD Python client](https://pypi.org/project/ml-metadata/) and Kubeflow Metadata SDK [source code](https://github.com/kubeflow/metadata/blob/master/sdk/python/kubeflow/metadata/metadata.py). For Go examples, you can check the [source code](https://github.com/kubeflow/metadata/blob/master/watcher/handlers/metalogger.go) of the [resource watcher](#metadata-watcher).
Copy link
Member

Choose a reason for hiding this comment

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

Do you have bandwidth to change "resource watcher" to "metadata watcher" since that is what it is referred to in the prior section?

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.

@zhenghuiwang
Copy link
Contributor Author

Thanks @joeliedtke @sarahmaddox for the review. Could you take another look?

@joeliedtke
Copy link
Member

/lgtm
/approve

Thanks for working on this update!

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: joeliedtke

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 78c2ad4 into kubeflow:master Feb 12, 2020
@zhenghuiwang zhenghuiwang deleted the update-metadata-doc-for-1.0 branch February 12, 2020 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants