-
Notifications
You must be signed in to change notification settings - Fork 25
fix(151): clarify protobuf response for no parallel requests #228
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -75,10 +75,23 @@ but is not obligated to do so: | |||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| - Resources that accept multiple parallel requests **may** place them in a | ||||||||||||||||||||||||||||||||||
| queue rather than work on the requests simultaneously. | ||||||||||||||||||||||||||||||||||
| - Resource that does not permit multiple requests in parallel (denying any new | ||||||||||||||||||||||||||||||||||
| request until the one that is in progress finishes) **must** return | ||||||||||||||||||||||||||||||||||
| `409 Conflict` if a user attempts a parallel request, and include an error | ||||||||||||||||||||||||||||||||||
| message explaining the situation. | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| {% tab proto %} | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| - A Resource that does not permit multiple requests in parallel (denying any new | ||||||||||||||||||||||||||||||||||
| request until the one that is in progress finishes) **must** return `ABORTED` | ||||||||||||||||||||||||||||||||||
|
toumorokoshi marked this conversation as resolved.
Outdated
|
||||||||||||||||||||||||||||||||||
| if a user attempts a parallel request, and include an error message explaining | ||||||||||||||||||||||||||||||||||
|
toumorokoshi marked this conversation as resolved.
Outdated
|
||||||||||||||||||||||||||||||||||
| the situation. | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| {% tab oas %} | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| - A Resource that does not permit multiple requests in parallel (denying any new | ||||||||||||||||||||||||||||||||||
| request until the one that is in progress finishes) **must** return a `409 | ||||||||||||||||||||||||||||||||||
| Conflict` if a user attempts a parallel request, and include an error message | ||||||||||||||||||||||||||||||||||
| explaining the situation. | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| {% endtabs %} | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+78
to
+89
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
We discussed this live - seems unfortunate to add all the tab chrome to the page just to vary a single term. Thoughts?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm fine with consolidating it. @wora gave feedback on the "include an error message" guidance earlier, and suggested that adding this type of guidance may result in users using the error string as a way to figure out the actual error (concurrent request). I removed that part intentionally based on that feedback (as I also agreed). Thoughts on that? |
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| ### Expiration | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.