-
Notifications
You must be signed in to change notification settings - Fork 18
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
Changing ListMetaData to correspond to reality #106
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #106 +/- ##
==========================================
- Coverage 59.38% 59.34% -0.05%
==========================================
Files 33 33
Lines 16048 16043 -5
==========================================
- Hits 9530 9520 -10
- Misses 6518 6523 +5 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
There is ongoing discussion if we better should change implementation to reflect the *.proto file. I.e. have
Below some possible examples to show results for a spec containing
FYI @rafaeling @argerus - does the table match how you think it should work |
Put on hold for now, we possibly want to have root plus filter anyway, so at least no proto update for 5.0 |
string filter = 2; | ||
// A path which may include wildcards | ||
// See https://github.com/eclipse-kuksa/kuksa-databroker/blob/main/doc/wildcard_matching.md | ||
string path = 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.
Some points of critic:
- With the removed filter one cannot request certain "types" of metadata any longer (like "I just want to get the numeric ids"). This may result in a lot of (unneeded) data.
- Having just one path (formerly root), it's hard to request metadata in a single request for completely different branches, like
Vehicle.Speed
andVehicle.Cabin.Seat.*
. (Or?)
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.
Well as of today we do not care about "filter" at all. I have no problem having a filter field if we actually intend to use it, but we do not describe how filter shall/can be used at all right now, like if it going to support the use-cases you mention. But as we seem to be uncertain I put this PR on hold.
In #105 I instead pointed out that filter
currently is not used, and that current implementation may change. Like to be on the safe side, do not use wildcards in root, as it may not be supported in the future.
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.
(Don't know, where to put this finding else:)
Rename field datapoints
of message PublishValuesRequest
to data_points
(w/ underscore).
We do not use the
filter
field, and the nameroot
is not that logical. In older API supporting same wildcard syntax we use the termpath
, so proposing to change to that.https://github.com/eclipse-kuksa/kuksa-databroker/blob/main/proto/kuksa/val/v1/val.proto#L104
Related to discussion at https://github.com/eclipse-kuksa/kuksa-databroker/pull/105/files#r1848167147