Skip to content

fix: remove description field from lean payload#1956

Open
PedroBinotto wants to merge 6 commits into
devfrom
fix/proposals-response-schema
Open

fix: remove description field from lean payload#1956
PedroBinotto wants to merge 6 commits into
devfrom
fix/proposals-response-schema

Conversation

@PedroBinotto
Copy link
Copy Markdown
Collaborator

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
anticapture Ready Ready Preview, Comment May 29, 2026 6:43pm
anticapture-storybook Ready Ready Preview, Comment May 29, 2026 6:43pm

Request Review

@railway-app
Copy link
Copy Markdown

railway-app Bot commented May 29, 2026

🚅 Deployed to the anticapture-pr-1956 environment in anticapture-infra

Service Status Web Updated (UTC)
api-gateway ⏭️ Skipped (View Logs) Web May 29, 2026 at 6:47 pm
nouns-api ✅ Success (View Logs) May 29, 2026 at 6:46 pm
uniswap-api ✅ Success (View Logs) May 29, 2026 at 6:44 pm
ens-api ✅ Success (View Logs) May 29, 2026 at 6:43 pm
gateful ✅ Success (View Logs) Web May 29, 2026 at 6:43 pm
grafana ✅ Success (View Logs) Web May 29, 2026 at 6:43 pm
fluid-api ✅ Success (View Logs) May 29, 2026 at 6:43 pm
scroll-api ✅ Success (View Logs) May 29, 2026 at 6:43 pm
lil-nouns-api ✅ Success (View Logs) May 29, 2026 at 6:43 pm
shutter-api ✅ Success (View Logs) May 29, 2026 at 6:42 pm
gitcoin-api ✅ Success (View Logs) May 29, 2026 at 6:42 pm
anticapture-mcp-server ✅ Success (View Logs) Web May 29, 2026 at 6:42 pm
obol-api ✅ Success (View Logs) May 29, 2026 at 6:42 pm
alertmanager ✅ Success (View Logs) Web May 29, 2026 at 6:42 pm
otelcol ❌ Build Failed (View Logs) May 29, 2026 at 6:42 pm
compound-api ✅ Success (View Logs) May 29, 2026 at 6:42 pm
hyperindex-erpc ❌ Build Failed (View Logs) May 29, 2026 at 6:42 pm
prometheus ✅ Success (View Logs) Web May 29, 2026 at 6:42 pm
loki ✅ Success (View Logs) Web May 29, 2026 at 6:42 pm
aave-api ✅ Success (View Logs) May 29, 2026 at 6:42 pm
tempo ✅ Success (View Logs) May 29, 2026 at 6:42 pm
hyperindex-erpc-bundled ❌ Build Failed (View Logs) May 29, 2026 at 6:41 pm
ens-indexer-offchain ✅ Success (View Logs) May 29, 2026 at 5:47 pm
ens-relayer ✅ Success (View Logs) May 29, 2026 at 5:46 pm
uniswap-indexer-offchain ✅ Success (View Logs) May 29, 2026 at 5:45 pm
address-enrichment ✅ Success (View Logs) Web May 29, 2026 at 5:45 pm
compound-indexer-offchain ✅ Success (View Logs) May 29, 2026 at 5:44 pm
gitcoin-indexer-offchain ✅ Success (View Logs) May 29, 2026 at 5:44 pm
gitcoin-indexer ✅ Success (View Logs) May 29, 2026 at 4:50 pm
fluid-indexer ✅ Success (View Logs) May 29, 2026 at 4:50 pm
aave-indexer ✅ Success (View Logs) May 29, 2026 at 4:50 pm
shutter-indexer ✅ Success (View Logs) May 29, 2026 at 4:50 pm
uniswap-indexer ✅ Success (View Logs) May 29, 2026 at 4:50 pm
lil-nouns-indexer ✅ Success (View Logs) May 29, 2026 at 4:50 pm
compound-indexer ✅ Success (View Logs) May 29, 2026 at 4:50 pm
scroll-indexer ✅ Success (View Logs) May 29, 2026 at 4:50 pm
obol-indexer ✅ Success (View Logs) May 29, 2026 at 4:50 pm
ens-indexer ✅ Success (View Logs) May 29, 2026 at 4:50 pm
nouns-indexer ✅ Success (View Logs) May 29, 2026 at 4:50 pm
erpc ✅ Success (View Logs) Web May 29, 2026 at 4:49 pm
nodeful ✅ Success (View Logs) May 29, 2026 at 4:49 pm

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 18aef3474e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +112 to +114
description: z.string().optional().openapi({
description: "Proposal body. Omitted when the request sets `lean=true`.",
}),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Regenerate downstream contracts for lean responses

After making description optional/omitted for lean=true, the committed downstream contract snapshots still describe it as required: apps/gateful/openapi/gateful.json:1121 lists description in required, and apps/api-gateway/schema.graphql:1620 has description: String!. Those files are consumed by SDK/GraphQL generation (packages/anticapture-client/kubb.config.ts:31, packages/graphql-client/codegen.ts:5), so clients generated from this commit will still require a field that the API now omits for lean proposal calls.

Useful? React with 👍 / 👎.

The onchain proposals contract now omits `description` when `lean=true`,
making it optional in the generated client. Guard the description tab
against the undefined case.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d56279a0e8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

---
"@anticapture/api": patch
"@anticapture/gateful": patch
"@anticapture/api-gateway": patch
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Regenerate the gateway schema before publishing

Fresh evidence in the current commit is that the REST OpenAPI snapshot was updated, but this changeset still publishes @anticapture/api-gateway while apps/api-gateway/schema.graphql:1620 continues to declare OnchainProposal.description: String!. When GraphQL callers pass lean: true, the upstream API now omits that field, so GraphQL will treat the missing non-null value as an execution error/null parent instead of returning the lean proposal payload.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9e8af0fe31

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +2 to +4
"@anticapture/api": patch
"@anticapture/gateful": patch
"@anticapture/api-gateway": patch
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Bump the generated REST client package

Because this changeset updates the Gateful OpenAPI contract for /proposals but only bumps @anticapture/gateful, external consumers of @anticapture/client will not get a new published SDK with the variant union and lean responses that omit description. The client package is generated from apps/gateful/openapi/gateful.json during its codegen/build task and does not depend on @anticapture/gateful, so Changesets will not publish it unless it is listed here as well.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants