-
Notifications
You must be signed in to change notification settings - Fork 124
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
build: Cleanup proto generation and fix linter issues #1556
Conversation
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Codecov Report
@@ Coverage Diff @@
## dev #1556 +/- ##
==========================================
+ Coverage 52.71% 55.46% +2.75%
==========================================
Files 638 348 -290
Lines 77658 29885 -47773
==========================================
- Hits 40938 16577 -24361
+ Misses 34242 12008 -22234
+ Partials 2478 1300 -1178
|
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
@@ -71,14 +71,14 @@ func UnmarshalItem(item *api.Item) (proto.Message, error) { | |||
} | |||
|
|||
// GetModelForItem returns model for given item. | |||
func GetModelForItem(item *api.Item) (RegisteredModel, error) { | |||
func GetModelForItem(item *api.Item) (KnownModel, error) { |
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 think RegisteredModel
fits more, but if you like it...
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.
Actually, in the situation when the models are retrieved from remote agent and not from local registry, it might be confusing to label them as registered..
To be honest, Im not certain either way..
proto/buf.make