Skip to content

Commit

Permalink
feat(pkg): use mgmtPB.Owner to embed the owner information (#523)
Browse files Browse the repository at this point in the history
Because

- Originally, we used `owner_name` and `owner` (`structpb`) to embed
owner information for Console. However, `owner` is a `structpb`, and it
is not well-formatted. Since we already have dedicated messages for
`User` and `Organization`, we should utilize these messages.

This commit

- Utilizes `mgmtPB.Owner` to embed the owner information in pipeline and
connector response when `view != VIEW_BASIC`.
- Updates Connector and Operator packages.
  • Loading branch information
heiruwu authored Feb 23, 2024
1 parent 20c6127 commit 37d5708
Show file tree
Hide file tree
Showing 39 changed files with 2,671 additions and 1,944 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0
github.com/iancoleman/strcase v0.2.0
github.com/instill-ai/protogen-go v0.3.3-alpha.0.20240215033939-b0bf95f922f1
github.com/instill-ai/protogen-go v0.3.3-alpha.0.20240222135530-192b4f25f624
github.com/instill-ai/usage-client v0.2.4-alpha.0.20240123081026-6c78d9a5197a
github.com/instill-ai/x v0.3.0-alpha
github.com/knadh/koanf v1.4.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1307,8 +1307,8 @@ github.com/imdario/mergo v0.3.10/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH
github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/instill-ai/protogen-go v0.3.3-alpha.0.20240215033939-b0bf95f922f1 h1:5atJZOo5nOQVe8ZlWv8DAR+HHwGC6Mj+bbTfyFy0AE4=
github.com/instill-ai/protogen-go v0.3.3-alpha.0.20240215033939-b0bf95f922f1/go.mod h1:jhEL0SauySMoPLVvx105DWyThju9sYTbsXIySVCArmM=
github.com/instill-ai/protogen-go v0.3.3-alpha.0.20240222135530-192b4f25f624 h1:hs3W4ex8uL1Mr+xCTsNOgsyvFvjMX1GHOdBVzWmx7DY=
github.com/instill-ai/protogen-go v0.3.3-alpha.0.20240222135530-192b4f25f624/go.mod h1:jhEL0SauySMoPLVvx105DWyThju9sYTbsXIySVCArmM=
github.com/instill-ai/usage-client v0.2.4-alpha.0.20240123081026-6c78d9a5197a h1:gmy8BcCFDZQan40c/D3f62DwTYtlCwi0VrSax+pKffw=
github.com/instill-ai/usage-client v0.2.4-alpha.0.20240123081026-6c78d9a5197a/go.mod h1:EpX3Yr661uWULtZf5UnJHfr5rw2PDyX8ku4Kx0UtYFw=
github.com/instill-ai/x v0.3.0-alpha h1:z9fedROOG2dVHhswBfVwU/hzHuq8/JKSUON7inF+FH8=
Expand Down
1 change: 0 additions & 1 deletion integration-test/grpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export const options = {
};

const client = new grpc.Client();
client.load(['proto/common'], 'healthcheck.proto');
client.load(['proto/model/model/v1alpha'], 'model_definition.proto');
client.load(['proto/model/model/v1alpha'], 'model.proto');
client.load(['proto/model/model/v1alpha'], 'model_private_service.proto');
Expand Down
31 changes: 0 additions & 31 deletions integration-test/proto/common/google/api/annotations.proto

This file was deleted.

99 changes: 0 additions & 99 deletions integration-test/proto/common/google/api/client.proto

This file was deleted.

90 changes: 0 additions & 90 deletions integration-test/proto/common/google/api/field_behavior.proto

This file was deleted.

Loading

0 comments on commit 37d5708

Please sign in to comment.