Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[breaking] Remove gRPC settings service #2411

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

Merged
cmaglie merged 3 commits into arduino:master from cmaglie:remove_settings_service
Nov 8, 2023

Conversation

Copy link
Member

@cmaglie cmaglie commented Nov 8, 2023

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

Removes the gRPC settings service, and migrates the RPC calls to the command service.
The service cc.arduino.cli.settings.v1 no longer exists and all existing RPC calls have been moved to the
cc.arduino.cli.commands.v1 service adding a Settings prefix to the names of all messages. The existing RPC calls:

  • rpc GetAll(GetAllRequest) returns (GetAllResponse)
  • rpc Merge(MergeRequest) returns (MergeResponse)
  • rpc GetValue(GetValueRequest) returns (GetValueResponse)
  • rpc SetValue(SetValueRequest) returns (SetValueResponse)
  • rpc Write(WriteRequest) returns (WriteResponse)
  • rpc Delete(DeleteRequest) returns (DeleteResponse)

are now renamed to:

  • rpc SettingsGetAll(SettingsGetAllRequest) returns (SettingsGetAllResponse)
  • rpc SettingsMerge(SettingsMergeRequest) returns (SettingsMergeResponse)
  • rpc SettingsGetValue(SettingsGetValueRequest) returns (SettingsGetValueResponse)
  • rpc SettingsSetValue(SettingsSetValueRequest) returns (SettingsSetValueResponse)
  • rpc SettingsWrite(SettingsWriteRequest) returns (SettingsWriteResponse)
  • rpc SettingsDelete(SettingsDeleteRequest) returns (SettingsDeleteResponse)

What is the current behavior?

No change

What is the new behavior?

No change

Does this PR introduce a breaking change, and is titled accordingly?

Yes.

Other information

@cmaglie cmaglie added type: enhancement Proposed improvement topic: gRPC Related to the gRPC interface labels Nov 8, 2023
@cmaglie cmaglie self-assigned this Nov 8, 2023
@cmaglie cmaglie linked an issue Nov 8, 2023 that may be closed by this pull request
3 tasks
Copy link

codecov bot commented Nov 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c45ab20) 64.80% compared to head (9f5eab4) 64.81%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@ Coverage Diff @@
## master #2411 +/- ##
=======================================
 Coverage 64.80% 64.81% 
=======================================
 Files 207 207 
 Lines 20153 20150 -3 
=======================================
 Hits 13060 13060 
+ Misses 5978 5976 -2 
+ Partials 1115 1114 -1 
Flag Coverage Δ
unit 64.81% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
commands/daemon/settings.go 92.78% <100.00%> (ø)
internal/cli/config/delete.go 88.88% <100.00%> (ø)
internal/cli/daemon/daemon.go 46.93% <ø> (-1.58%) ⬇️

... and 1 file with indirect coverage changes

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

@cmaglie cmaglie merged commit 50a8bf5 into arduino:master Nov 8, 2023
@cmaglie cmaglie deleted the remove_settings_service branch November 8, 2023 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@MatteoPologruto MatteoPologruto Awaiting requested review from MatteoPologruto

2 more reviewers

@alessio-perugini alessio-perugini alessio-perugini approved these changes

@umbynos umbynos umbynos approved these changes

Reviewers whose approvals may not affect merge requirements
Labels
topic: gRPC Related to the gRPC interface type: enhancement Proposed improvement
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Remove GRPC Setting Service API

AltStyle によって変換されたページ (->オリジナル) /