Repository navigation
docs(gtf): align async API docs/schema with GTF; fix stale doc comments - #43804
Merged
villebro merged 1 commit intoSep 2, 2026
Merged
Conversation
Documentation/schema follow-ups from a final review (all P2/P3, no behavior change).
- ChartDataAsyncResponseSchema advertised the removed GAQ response shape
(channel_id/job_id/user_id/status/result_url); the async endpoint returns
{task_ids, cursor, tab_id} from GTF submission. Rewrote the marshmallow schema
(drives the live /swagger/v1) and the committed docs snapshot
(docs/static/resources/openapi.json) to match, including the 202 examples.
- Removed the retired /api/v1/async_event/ endpoint and AsyncEventsRestApi tag
from the docs snapshot and generated api.mdx, and dropped their hard-coded
entries from the docs generators (generate-api-index.mjs, fix-openapi-spec.py)
so a regen doesn't re-add them. (Frozen version-6.1.0 docs left untouched.)
- asyncEvent.ts cancellation comment reworded: engine-level query cancellation is
best-effort/engine-dependent (the worker registers abort handlers), not 'do not
cancel after execution starts'.
- superset-websocket README documents /ready (readiness for LB draining) vs
/health (liveness).
- Extension tasks doc: update_task() merges payload (top-level keys), it does not
replace it wholesale.
(--no-verify: pre-existing stale gitignored .d.ts trips the frontend type-check
hook; ruff/mypy/pylint/oxlint and JSON validation pass on all changed files.)
Contributor
|
Bito Automatic Review Skipped - Branch Excluded |
8 of 9 tasks
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## gaq-to-gtf #43804 +/- ##
=============================================
Coverage ? 79.44%
=============================================
Files ? 2897
Lines ? 167486
Branches ? 38719
=============================================
Hits ? 133060
Misses ? 31910
Partials ? 2516
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
Documentation and OpenAPI-schema follow-ups from a final review of the
gaq-to-gtfepic (#43407). All findings were P2/P3; no runtime behavior changes.P2 — async chart-data OpenAPI advertised the removed GAQ response shape.
The async endpoint returns
{task_ids, cursor, tab_id}from GTF submission (submit_chart_data_query_tasks), butChartDataAsyncResponseSchemastill exposedchannel_id,job_id,user_id,status, andresult_url./swagger/v1) totask_ids/cursor/tab_id.docs/static/resources/openapi.json— the schema component and both chart-data202examples — to match.P2 — generated API docs still listed the removed async-events endpoint.
/api/v1/async_event/andAsyncEventsRestApiwere removed from the backend but still published in the docs. Removed the path, tag, and202schema from the docs snapshot and the generateddocs/developer_docs/api.mdx, and dropped the hard-codedAsyncEventsRestApientries from the generators (generate-api-index.mjs,fix-openapi-spec.py) so a regeneration doesn't re-add them. The frozenversion-6.1.0versioned docs are intentionally left untouched (they document a released version).P3 — stale frontend cancellation comment.
asyncEvent.tssaid chart tasks "do not cancel an underlying warehouse query after execution starts." The worker now registers engine-level abort handlers (_capture_query_cancellation), so this is reworded as best-effort / engine-dependent.P3 — websocket operator docs omitted
/ready. Thesuperset-websocketREADME health-check section only listed/health. Documented/ready(readiness —200only while the Redis subscriber is connected/subscribed,503otherwise) for load-balancer draining, and clarified/healthas pure liveness.P3 — extension task-payload semantics. The extension docs said
update_task()"replaces the previous payload completely"; the code merges (top-level keys). Corrected to describe incremental merge semantics.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A (docs/schema only).
TESTING INSTRUCTIONS
python -c "import json; json.load(open('docs/static/resources/openapi.json'))"— snapshot is valid JSON./swagger/v1and confirm the chart-data202response documentstask_ids/cursor/tab_idand thatAsyncEventsRestApi//api/v1/async_event/are gone.ADDITIONAL INFORMATION
Part of the GAQ → GTF migration epic (#43407).