-
Notifications
You must be signed in to change notification settings - Fork 24
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: add guardian proto #17
Conversation
option java_outer_classname = "ServiceManager"; | ||
|
||
// These annotations are used when generating the OpenAPI file. | ||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { |
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.
Can we start using OpenAPI v3?
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.
grpc-ecosystem/grpc-gateway#2147 the support for v3 still under development
LGTM. @kushsharma Can you also cross-check for any conventions we are following in proton? |
odpf/guardian/guardian.proto
Outdated
|
||
// Provider contains information about external data provider such as BigQuery, Metabase, etc., credentials, policy, and allowed roles | ||
message Provider { | ||
uint32 id = 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.
I see we are using int ids everywhere, are these DB auto-increment ids? Why not use UUID?
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 DB auto-increment, no specific reason why we're not using UUID, just following traditional ways for creating entity. What would make it better to use UUID?
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.
- can't enumerate values
- can't infer how many values are present in each table
- don't have to talk to the database to construct a value, useful in certain ORM situations
- perfectly indexable by most dbs
- easier to shard when we need to distribute data into multiple dbs
- unique across multiple tables/databases/space-time continuum
- costly on size but storage is cheap
@ravisuhag are we not versioning our REST APIs? Not versioning protobufs is fine I think as they get imported and get versioned while importing but REST APIs have no convention of knowing if something has breaking changes right? |
+1 to versioning. Shall we right away start with v1 as folder as well and move protos to that? or any other better idea? |
agree on adding should we add the prefix |
let's skip |
Yeah, we can version protobufs at directory/package level as well although once we have stable services, function definition hardly changes, only message fields do and that can be handled by only introducing new fields with new indices and supporting old fields as well. But yeah I am onboard with directory level versioning as well.
|
@rahmatrhd lets make the discussed changes and then we can merge. |
@rahmatrhd @kushsharma Are we moving protos to V1 folder? |
same goes for the directory as well. |
Let's follow semver for |
feat: add details to each resource of an appeal
… the provider (#46) * feat: added soft delete of resource feature * fix: use is_deleted as a query string Co-authored-by: Ishan Arya <ishanarya0@gmail.com> Co-authored-by: Rahmat Hidayat <rahmatramahidayat@gmail.com>
No description provided.