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

Structured RPC responses #930

Merged
merged 5 commits into from
Mar 6, 2020

Conversation

eddyashton
Copy link
Member

Resolves #924.

We had a bunch of RPCs that returned the body true. Many of these would only ever return true, so I've removed this and now they return no body at all (their success is indicated by 200 OK).

Some of these RPCs would sometimes return the body false, but the meaning of this was unclear. In particular, for /members/vote, a false could mean "there aren't enough yes votes" or "there are too many no votes" or "there were enough yes votes but something went wrong"*. These member RPCs now return a structured ProposalInfo object.

* This case is particularly bad, and now it produces its own new FAILED state - if a proposed action has preconditions, the member votes should probably be checking those preconditions are met!

@eddyashton eddyashton requested a review from a team as a code owner March 6, 2020 15:32
@ghost
Copy link

ghost commented Mar 6, 2020

structured_responses@5779 aka 20200306.16 vs master ewma over 30 builds from 5403 to 5772
images

@eddyashton eddyashton merged commit 5eaf260 into microsoft:master Mar 6, 2020
@eddyashton eddyashton deleted the structured_responses branch March 6, 2020 17:11
eddyashton added a commit to eddyashton/CCF that referenced this pull request Mar 24, 2020
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.

Standard RPCs should return structured responses
3 participants