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

Remove of optional fields from sdv.databroker.v1 and kuksa.val.v2 due to older proto3 versions limitations. #96

Conversation

rafaeling
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 25.95420% with 97 lines in your changes missing coverage. Please review.

Project coverage is 59.63%. Comparing base (e737ae0) to head (325b533).
Report is 3 commits behind head on feature/databroker-api-v2.

Files with missing lines Patch % Lines
...tabroker/src/grpc/sdv_databroker_v1/conversions.rs 0.00% 77 Missing ⚠️
databroker/src/grpc/kuksa_val_v2/conversions.rs 45.94% 20 Missing ⚠️
Additional details and impacted files
@@                      Coverage Diff                      @@
##           feature/databroker-api-v2      #96      +/-   ##
=============================================================
+ Coverage                      59.36%   59.63%   +0.26%     
=============================================================
  Files                             33       33              
  Lines                          16005    15926      -79     
=============================================================
- Hits                            9502     9498       -4     
+ Misses                          6503     6428      -75     

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

Copy link
Contributor

@argerus argerus left a comment

Choose a reason for hiding this comment

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

I would prefer if the kuksa.val.v1 concept of ValueRestriction was not carried over to the other protos

proto/sdv/databroker/v1/types.proto Outdated Show resolved Hide resolved
@erikbosch
Copy link
Contributor

I have nothing in particular against this PR, but do we know if this will have any impact on any existing clients. Any thoughts @lukasmittag ?

@erikbosch
Copy link
Contributor

We should better add in the PR description or commit description why we remove optional. If I remember correct it is because older proto3 versions does not support it, right?, but if so we should better document it so we do not forget it. Possibly even worth mentioning in proto to avoid adding new optional fields later.

@argerus
Copy link
Contributor

argerus commented Nov 8, 2024

Possibly even worth mentioning in proto to avoid adding new optional fields later.

I think that's a very good idea.

@rafaeling rafaeling changed the title Remove optional from sdv.databroker.v1 and kuksa.val.v2 Remove of optional fields from sdv.databroker.v1 and kuksa.val.v2 due to proto3 limitations. Nov 11, 2024
@rafaeling rafaeling force-pushed the fix/remove_optional_field_from_apis branch from 79fe1a2 to 6bdd929 Compare November 11, 2024 07:43
@rafaeling
Copy link
Contributor Author

We should better add in the PR description or commit description why we remove optional. If I remember correct it is because older proto3 versions does not support it, right?, but if so we should better document it so we do not forget it. Possibly even worth mentioning in proto to avoid adding new optional fields later.

Added

@rafaeling rafaeling changed the title Remove of optional fields from sdv.databroker.v1 and kuksa.val.v2 due to proto3 limitations. Remove of optional fields from sdv.databroker.v1 and kuksa.val.v2 due to older proto3 versions limitations. Nov 11, 2024
@rafaeling rafaeling force-pushed the fix/remove_optional_field_from_apis branch from 6bdd929 to 8970a65 Compare November 11, 2024 08:28
proto/kuksa/val/v2/types.proto Outdated Show resolved Hide resolved
@rafaeling rafaeling force-pushed the fix/remove_optional_field_from_apis branch from 3b99909 to 325b533 Compare November 11, 2024 15:28
@argerus argerus merged commit 07eaf88 into eclipse-kuksa:feature/databroker-api-v2 Nov 13, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants