Skip to content

[5/N] [List API] docs(service): document gateway List API#306

Open
albertywu wants to merge 1 commit into
wua/list-api-e2efrom
wua/list-api-service-readme
Open

[5/N] [List API] docs(service): document gateway List API#306
albertywu wants to merge 1 commit into
wua/list-api-e2efrom
wua/list-api-service-readme

Conversation

@albertywu

@albertywu albertywu commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the SubmitQueue Gateway List API to the service README API reference and includes a grpcurl example for listing recent requests by queue and time window.

Test Plan

  1. Start up server, issue a Land Request using:
grpcurl -plaintext -import-path . -proto api/submitqueue/gateway/proto/gateway.proto -d '{"queue":"test-queue","change":{"uris":["github://uber/docs-list/pull/2/abcdef0123456789abcdef0123456789abcdef02"]},"strategy":"REBASE"}' localhost:64687 uber.submitqueue.gateway.SubmitQueueGateway/Land

STDOUT:

{
  "sqid": "test-queue/1"
}
  1. Issue a List API request:
grpcurl -plaintext -import-path . -proto api/submitqueue/gateway/proto/gateway.proto -d '{"queue":"test-queue","start_time_ms":1,"end_time_ms":9999999999999,"page_size":10}' localhost:64687 uber.submitqueue.gateway.SubmitQueueGateway/List

STDOUT:

{
  "requests": [
    {
      "sqid": "test-queue/1",
      "queue": "test-queue",
      "changeUris": [
        "github://uber/docs-list/pull/2/abcdef0123456789abcdef0123456789abcdef02"
      ],
      "status": "landed",
      "metadata": {
        "batch_id": "test-queue/batch/1"
      },
      "startedAtMs": "1783389642136",
      "updatedAtMs": "1783389644505",
      "completedAtMs": "1783389644505",
      "terminal": true
    }
  ]
}

Stack

  1. [1/N] [List API] feat(requestlog): persist queue and change metadata #302
  2. [2/N] [List API] feat(storage): add request summary read model #303
  3. [3/N] [List API] feat(gateway): expose request List RPC #304
  4. [4/N] [List API] test(e2e): cover gateway List API #305
  5. @ [5/N] [List API] docs(service): document gateway List API #306

Summary:
Adds the SubmitQueue Gateway List API to the service README API reference and includes a grpcurl example for listing recent requests by queue and time window.

Test Plan:
`make fmt`
STDOUT proof:
```
Formatting complete!
```

`make local-submitqueue-start`
STDOUT proof excerpt:
```
✅ Full stack is running!
  Gateway gRPC:      localhost:64687
  Orchestrator gRPC: localhost:64686
```

`grpcurl -plaintext -import-path . -proto api/submitqueue/gateway/proto/gateway.proto -d '{"queue":"test-queue","change":{"uris":["github://uber/docs-list/pull/2/abcdef0123456789abcdef0123456789abcdef02"]},"strategy":"REBASE"}' localhost:64687 uber.submitqueue.gateway.SubmitQueueGateway/Land`
STDOUT proof:
```json
{
  "sqid": "test-queue/1"
}
```

`grpcurl -plaintext -import-path . -proto api/submitqueue/gateway/proto/gateway.proto -d '{"queue":"test-queue","start_time_ms":1,"end_time_ms":9999999999999,"page_size":10}' localhost:64687 uber.submitqueue.gateway.SubmitQueueGateway/List`
STDOUT proof:
```json
{
  "requests": [
    {
      "sqid": "test-queue/1",
      "queue": "test-queue",
      "changeUris": [
        "github://uber/docs-list/pull/2/abcdef0123456789abcdef0123456789abcdef02"
      ],
      "status": "landed",
      "metadata": {
        "batch_id": "test-queue/batch/1"
      },
      "startedAtMs": "1783389642136",
      "updatedAtMs": "1783389644505",
      "completedAtMs": "1783389644505",
      "terminal": true
    }
  ]
}
```

`make local-stop`
STDOUT proof:
```
Services stopped. Data volumes preserved.
```
@albertywu albertywu marked this pull request as ready for review July 7, 2026 02:11
@albertywu albertywu requested review from a team, behinddwalls and sbalabanov as code owners July 7, 2026 02:11
@albertywu albertywu changed the title docs(service): document gateway List API [5/N] [List API] docs(service): document gateway List API Jul 7, 2026
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.

1 participant