-
Notifications
You must be signed in to change notification settings - Fork 61
Doc Hub proposal #303
Doc Hub proposal #303
Conversation
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #303 +/- ##
=======================================
Coverage 75.46% 75.46%
=======================================
Files 18 18
Lines 1174 1174
=======================================
Hits 886 886
Misses 237 237
Partials 51 51
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
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 great start! Should we also "enhance" the parameter descriptions in the same PR? allowing labels... etc.
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
hey @pingsutw is this proposal ready to be reviewed? |
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
@katrogan yes, could you take a look, please?
|
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
// DescriptionEntity contains detailed description for the task/workflow. | ||
// Documentation could provide insight into the algorithms, business use case, etc. | ||
message DescriptionEntity { | ||
// id represents the unique identifier of the description entity. |
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.
any reason not to add an identifier resource type for description entities?
protos/flyteidl/admin/task.proto
Outdated
@@ -51,6 +55,9 @@ message TaskList { | |||
message TaskSpec { | |||
// Template of the task that encapsulates all the metadata of the task. | |||
core.TaskTemplate template = 1; | |||
|
|||
// Represents the specification for Description. | |||
DescriptionEntity description_entity = 2; |
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.
Is this always going to be populated in requests to Get and List tasks?
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.
TaskSpec is only used for TaskCreateRequest, and we use Task for get and list tasks
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.
awesome! thanks for explaining
protos/flyteidl/service/admin.proto
Outdated
// Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. | ||
rpc GetDescriptionEntity (flyteidl.admin.ObjectGetRequest) returns (flyteidl.admin.DescriptionEntity) { | ||
option (google.api.http) = { | ||
get: "/api/v1/description_entities/{id.project}/{id.domain}/{id.name}/{id.version}" |
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.
do we need to put the resource type in the url 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.
Also, id
refers to a NamedEntityIdentifier which doesn't have a version.. what is this supposed to point to?
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.
yes, we should add resource_type.
cc @EngHabu one question. I got an error when adding {id.resource_type} to the GetDescriptionEntity endpoint.
$ make generate
....
+ mockery -dir=gen/pb-go/flyteidl/service/ -all -output=clients/go/admin/mocks
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
+ mockery -dir=gen/pb-go/flyteidl/datacatalog/ -name=DataCatalogClient -output=clients/go/datacatalog/mocks
Generating mock for: DataCatalogClient in file: clients/go/datacatalog/mocks/DataCatalogClient.go
go generate ./...
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
Error parsing file: /Users/kevin/git/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go:2743:29: undeclared name: ResourceType
However, it works if I add {resource_type} to ListDescriptionEntities endpoint.
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.
we use core.Identifier
in ObjectGetRequest instead of NamedEntityIdentifier. there is a version in core.Identifier
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
@@ -19,7 +19,7 @@ enum ResourceType { | |||
// Encapsulation of fields that uniquely identifies a Flyte resource. | |||
message Identifier { | |||
// Identifies the specific type of resource that this identifier corresponds to. | |||
ResourceType resource_type = 1; | |||
core.ResourceType resource_type = 1; |
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.
@evalsocket mind taking a look at this? do you have any ideas why this generates bad code?
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
* Add description entity Signed-off-by: Kevin Su <[email protected]> * Add id Signed-off-by: Kevin Su <[email protected]> * wip Signed-off-by: Kevin Su <[email protected]> * few update Signed-off-by: Kevin Su <[email protected]> * update service Signed-off-by: Kevin Su <[email protected]> * update service Signed-off-by: Kevin Su <[email protected]> * Add description entity to task and workflow Signed-off-by: Kevin Su <[email protected]> * update des entity Signed-off-by: Kevin Su <[email protected]> * update Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> * typo Signed-off-by: Kevin Su <[email protected]> * address comment Signed-off-by: Kevin Su <[email protected]> * update idl Signed-off-by: Kevin Su <[email protected]> * list description entity Signed-off-by: Kevin Su <[email protected]> * make generate Signed-off-by: Kevin Su <[email protected]> * make generate Signed-off-by: Kevin Su <[email protected]> * Update service name Signed-off-by: Kevin Su <[email protected]> * update endpoint Signed-off-by: Kevin Su <[email protected]> * update endpoint Signed-off-by: Kevin Su <[email protected]> * remove create_description_entity endpoint Signed-off-by: Kevin Su <[email protected]> * Add description to task/workflow Signed-off-by: Kevin Su <[email protected]> * update Signed-off-by: Kevin Su <[email protected]> * address comments Signed-off-by: Kevin Su <[email protected]> * address comments Signed-off-by: Kevin Su <[email protected]> * fix tests Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> * fix test Signed-off-by: Kevin Su <[email protected]> * Add id.resource_type Signed-off-by: Kevin Su <[email protected]> * undeclared name: ResourceType Signed-off-by: Kevin Su <[email protected]> * update wrong code manually Signed-off-by: Kevin Su <[email protected]> * Fixed tests Signed-off-by: Kevin Su <[email protected]> * Fixed tests Signed-off-by: Kevin Su <[email protected]> Signed-off-by: Kevin Su <[email protected]> Co-authored-by: Yee Hing Tong <[email protected]> Signed-off-by: Bernhard <[email protected]>
* Add description entity Signed-off-by: Kevin Su <[email protected]> * Add id Signed-off-by: Kevin Su <[email protected]> * wip Signed-off-by: Kevin Su <[email protected]> * few update Signed-off-by: Kevin Su <[email protected]> * update service Signed-off-by: Kevin Su <[email protected]> * update service Signed-off-by: Kevin Su <[email protected]> * Add description entity to task and workflow Signed-off-by: Kevin Su <[email protected]> * update des entity Signed-off-by: Kevin Su <[email protected]> * update Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> * typo Signed-off-by: Kevin Su <[email protected]> * address comment Signed-off-by: Kevin Su <[email protected]> * update idl Signed-off-by: Kevin Su <[email protected]> * list description entity Signed-off-by: Kevin Su <[email protected]> * make generate Signed-off-by: Kevin Su <[email protected]> * make generate Signed-off-by: Kevin Su <[email protected]> * Update service name Signed-off-by: Kevin Su <[email protected]> * update endpoint Signed-off-by: Kevin Su <[email protected]> * update endpoint Signed-off-by: Kevin Su <[email protected]> * remove create_description_entity endpoint Signed-off-by: Kevin Su <[email protected]> * Add description to task/workflow Signed-off-by: Kevin Su <[email protected]> * update Signed-off-by: Kevin Su <[email protected]> * address comments Signed-off-by: Kevin Su <[email protected]> * address comments Signed-off-by: Kevin Su <[email protected]> * fix tests Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> * fix test Signed-off-by: Kevin Su <[email protected]> * Add id.resource_type Signed-off-by: Kevin Su <[email protected]> * undeclared name: ResourceType Signed-off-by: Kevin Su <[email protected]> * update wrong code manually Signed-off-by: Kevin Su <[email protected]> * Fixed tests Signed-off-by: Kevin Su <[email protected]> * Fixed tests Signed-off-by: Kevin Su <[email protected]> Signed-off-by: Kevin Su <[email protected]> Co-authored-by: Yee Hing Tong <[email protected]>
Signed-off-by: Kevin Su [email protected]
TL;DR
https://docs.google.com/document/d/1wvCvM6pLQ17Zr0DcpS9es2vOFQsNeOaNN99ufGw8O1U/edit#heading=h.w5wnz0kbiild
Type
Are all requirements met?
Complete description
Tracking Issue
flyteorg/flyte#531
Follow-up issue
NA