-
Notifications
You must be signed in to change notification settings - Fork 40
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: Persist provider configuration in protobuf #1021
Conversation
fecf354
to
f9463f1
Compare
This moves the provider configuration from the providers package into the protobuf definitions. This enables us to be able to configure/create/update providers via protobuf in the future. For now, we only have the protobuf structure, but in the future we'll have a `ProvidersService` API that we'll be able to leverage in order to manage providers.
f9463f1
to
610bf2b
Compare
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.
two questions, but nothing blocking
|
||
// Validate is a utility function which allows for the validation of a struct. | ||
func (_ *GitHubProviderConfig) Validate() error { | ||
// Unfortunately, we don't currently have a way to add custom tags 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.
this is currently empty because not even the API endpoint is required right?
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.
That's right
// - rest | ||
// - github | ||
// - git | ||
repeated string implements = 4; |
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.
Have you considered an enum instead?
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'm still not quite sure how to make enums user friendly and string (db) friendly 🤔
This moves the provider configuration from the providers package into the protobuf definitions.
This enables us to be able to configure/create/update providers via protobuf in the future.
For now, we only have the protobuf structure, but in the future we'll have a
ProvidersService
API that we'll be able to leverage in order to manage providers.