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

fix(151): clarify protobuf response for no parallel requests #228

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

toumorokoshi
Copy link
Member

For protobuf guidance, it was unclear response code should be.

Partially addresses #224

🍱 Types of changes

What types of changes does your code introduce to AEP? Put an x in the boxes
that apply

  • Enhancement
  • New proposal
  • Migrated from google.aip.dev
  • Chore / Quick Fix

📋 Your checklist for this pull request

Please review the AEP Style and Guidance for
contributing to this repository.

General

For protobuf guidance, it was unclear response code should be.
@toumorokoshi toumorokoshi requested a review from a team as a code owner October 19, 2024 20:36
@toumorokoshi toumorokoshi changed the title fix(lro): clarify protobuf response for no parallel requests fix(151): clarify protobuf response for no parallel requests Oct 19, 2024
aep/general/0151/aep.md.j2 Outdated Show resolved Hide resolved
aep/general/0151/aep.md.j2 Outdated Show resolved Hide resolved
aep/general/0151/aep.md.j2 Outdated Show resolved Hide resolved
@toumorokoshi toumorokoshi requested a review from wora October 21, 2024 04:15
@toumorokoshi
Copy link
Member Author

@wora addressed comments! PTAL.

@dv-stewarts
Copy link
Contributor

LGTM. I think splitting into tabs per protocol is the right answer. I'm not a reviewer, so cannot approve.

Comment on lines +78 to +89

{% tab proto %}

- A resource that does not support concurrent mutation requests **must** return an
`ABORTED` error if the resource has an outstanding mutation.

{% tab oas %}

- A resource that does not support concurrent mutation requests **must** respond
with a `409 Conflict` status code if the resource has an outstanding mutation.

{% endtabs %}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
{% tab proto %}
- A resource that does not support concurrent mutation requests **must** return an
`ABORTED` error if the resource has an outstanding mutation.
{% tab oas %}
- A resource that does not support concurrent mutation requests **must** respond
with a `409 Conflict` status code if the resource has an outstanding mutation.
{% endtabs %}
- Resource that does not permit multiple requests in parallel (denying any new
request until the one that is in progress finishes) **must** return
`ABORTED`/`409 Conflict` if a user attempts a parallel request, and include an error
message explaining the situation.

We discussed this live - seems unfortunate to add all the tab chrome to the page just to vary a single term. Thoughts?

Copy link
Member Author

Choose a reason for hiding this comment

The 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?

@toumorokoshi toumorokoshi added this to the GA milestone Nov 5, 2024
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