-
Notifications
You must be signed in to change notification settings - Fork 6
fix: remove description field from lean payload #1956
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: dev
Are you sure you want to change the base?
Changes from all commits
1ca4611
18aef34
3e7b013
d56279a
c549c95
9e8af0f
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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@anticapture/dashboard": patch | ||
| --- | ||
|
|
||
| Adapt the governance UI to the new `variant`-tagged onchain proposals response: narrow the SDK union to the `full` variant in the proposal hooks, search adapter, and detail page (the dashboard always requests the full payload). |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| "@anticapture/api": patch | ||
| "@anticapture/gateful": patch | ||
| "@anticapture/api-gateway": patch | ||
|
Comment on lines
+2
to
+4
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.
Because this changeset updates the Gateful OpenAPI contract for Useful? React with 👍 / 👎. |
||
| --- | ||
|
|
||
| Model the onchain proposals response (`/proposals`, `/proposals/search`, `/proposals/{id}`) as a `variant`-tagged discriminated union. When `lean=true` the API returns the `lean` variant (omitting calldatas/values/targets and the proposal description to reduce payload size); otherwise it returns the `full` variant. Clients can narrow on the `variant` discriminator for exact typing instead of guarding optional fields. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fresh evidence in the current commit is that the REST OpenAPI snapshot was updated, but this changeset still publishes
@anticapture/api-gatewaywhileapps/api-gateway/schema.graphql:1620continues to declareOnchainProposal.description: String!. When GraphQL callers passlean: 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 👍 / 👎.