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

feat: use mgmtPB.Owner to embed the owner information in response #392

Merged
merged 3 commits into from
Feb 22, 2024

Conversation

donch1989
Copy link
Member

@donch1989 donch1989 commented Feb 22, 2024

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.

@donch1989 donch1989 marked this pull request as draft February 22, 2024 10:19
Copy link

codecov bot commented Feb 22, 2024

Codecov Report

Attention: 55 lines in your changes are missing coverage. Please review.

Comparison is base (a5a336d) 0.70% compared to head (c95006f) 0.71%.

Files Patch % Lines
pkg/service/service.go 0.00% 40 Missing ⚠️
pkg/service/convert.go 0.00% 15 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #392   +/-   ##
=====================================
  Coverage   0.70%   0.71%           
=====================================
  Files          8       8           
  Lines       2963    2949   -14     
=====================================
  Hits          21      21           
+ Misses      2942    2928   -14     
Flag Coverage Δ
unittests 0.71% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@donch1989 donch1989 marked this pull request as ready for review February 22, 2024 15:27
Copy link
Collaborator

@jvallesm jvallesm left a comment

Choose a reason for hiding this comment

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

👏

The number of lines due to the /integration-test/proto directory scared me about reviewing this 😂 Is there a way we can dynamically fetch these e.g. on a buildtest command and add the directory to .gitignore?

@donch1989
Copy link
Member Author

👏

The number of lines due to the /integration-test/proto directory scared me about reviewing this 😂 Is there a way we can dynamically fetch these e.g. on a buildtest command and add the directory to .gitignore?

I think we should do that. It is very inconvenient to maintain the proto manually.

@donch1989 donch1989 merged commit d071461 into main Feb 22, 2024
15 checks passed
@donch1989 donch1989 deleted the huitang/ins-3664 branch February 22, 2024 16:24
donch1989 pushed a commit that referenced this pull request Feb 29, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.23.0-beta](v0.22.0-beta...v0.23.0-beta)
(2024-02-29)


### Features

* rename blockchain connector type to application
([#397](#397))
([80aa6a5](80aa6a5))
* support reference with `foo["bar"]` syntax
([#394](#394))
([ed82215](ed82215))
* use `mgmtPB.Owner` to embed the owner information in response
([#392](#392))
([d071461](d071461))


### Miscellaneous Chores

* release v0.23.0-beta
([53fbd18](53fbd18))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
donch1989 pushed a commit that referenced this pull request Feb 29, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.23.0-beta](v0.22.0-beta...v0.23.0-beta)
(2024-02-29)


### Features

* add component definition list endpoint
([#396](#396))
([b8728c1](b8728c1))
* rename blockchain connector type to application
([#397](#397))
([80aa6a5](80aa6a5))
* support reference with `foo["bar"]` syntax
([#394](#394))
([ed82215](ed82215))
* use `mgmtPB.Owner` to embed the owner information in response
([#392](#392))
([d071461](d071461))


### Miscellaneous Chores

* release v0.23.0-beta
([4d5639b](4d5639b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
donch1989 pushed a commit that referenced this pull request Mar 1, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.23.0-beta](v0.22.0-beta...v0.23.0-beta)
(2024-03-01)


### Features

* add component definition list endpoint
([#396](#396))
([b8728c1](b8728c1))
* rename blockchain connector type to application
([#397](#397))
([80aa6a5](80aa6a5))
* support reference with `foo["bar"]` syntax
([#394](#394))
([ed82215](ed82215))
* use `mgmtPB.Owner` to embed the owner information in response
([#392](#392))
([d071461](d071461))


### Bug Fixes

* fix component ID with a hyphen cannot be referenced
([#401](#401))
([1958168](1958168))


### Miscellaneous Chores

* release v0.23.0-beta
([e3ab340](e3ab340))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants