Skip to content

Conversation

@slowli
Copy link
Contributor

@slowli slowli commented Mar 24, 2020

Overview

This PR fixes issues brought into supervisor API in #1823:

  • bytes / Vec<u8> fields are serialized in hex rather than base64 as prescribed by Protobuf
  • tag = "type" for the ConfigChange enum makes it incompatible with canonical JSON format

I have an idea to make a generic solution for ServiceApiScope, which would enable endpoints to accept either JSON or Protobuf, depending on the passed Content-Type. This may take some time though.


See: https://jira.bf.local/browse/ECR-4368

@slowli slowli added bug 🪲 supervisor Changes affecting the Supervisor service labels Mar 24, 2020
@codecov
Copy link

codecov bot commented Mar 24, 2020

Codecov Report

Merging #1829 into master will decrease coverage by 0.02%.
The diff coverage is 84.80%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1829      +/-   ##
==========================================
- Coverage   94.82%   94.79%   -0.03%     
==========================================
  Files         269      269              
  Lines       42373    42521     +148     
==========================================
+ Hits        40180    40309     +129     
- Misses       2193     2212      +19     
Impacted Files Coverage Δ
components/api/src/backends/actix.rs 97.23% <ø> (ø)
components/api/src/error.rs 90.00% <ø> (ø)
components/api/src/lib.rs 98.38% <ø> (ø)
services/supervisor/src/proto_structures.rs 89.80% <ø> (ø)
components/proto/src/lib.rs 88.11% <68.57%> (-10.35%) ⬇️
runtimes/rust/src/api.rs 87.96% <77.10%> (-4.47%) ⬇️
components/proto/src/tests.rs 98.03% <97.77%> (-1.97%) ⬇️
services/supervisor/src/api.rs 88.19% <100.00%> (ø)
test-suite/rust-runtime-proto/src/service.rs 100.00% <100.00%> (ø)
test-suite/rust-runtime-proto/src/tests.rs 97.39% <100.00%> (+1.07%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cdff707...8d504d0. Read the comment docs.

@slowli slowli force-pushed the fix-supervisor-api branch from 977b7e8 to 8d504d0 Compare March 24, 2020 14:51
@aleksuss aleksuss merged commit 20ae361 into exonum:master Mar 24, 2020
@slowli slowli mentioned this pull request Mar 25, 2020
7 tasks
@slowli slowli deleted the fix-supervisor-api branch April 1, 2020 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🪲 supervisor Changes affecting the Supervisor service

Development

Successfully merging this pull request may close these issues.

3 participants