Repository navigation
Conversation
- drop // comments: both servers reject them with a 400 parse error (Python accepts no comments, aw-server-rust only #) - __CATEGORIES__ is substituted only by the web UI Query page; via /api/0/query/ it is an undefined variable. find_bucket is a server function, not a web UI magic variable - fix the dead query-snapshot link (renamed to queriesSnapshot.test.node.ts.snap) Git-Session-Id: bed1476c-0b54-4dde-9c03-8080d9dde1e7
Review guide (auto-posted)Structured warm-up for reviewers — what changed, what to run, where to look. Key files
Suggested verification
Known risks / watch points
Suggested review focus
Generated by |
[Low impact] The changes affect only how readers use the query documentation. Safe to merge, with a small documentation fix recommended for the Basics example. Findings
SummaryThis PR removes unsupported comments from the query examples, explains where
Reviews (1) · Last reviewed commit: "docs(query): make the query snippets run..." · Reviewed by Greptile |
Git-Session-Id: bed1476c-0b54-4dde-9c03-8080d9dde1e7
|
@TimeToBuildBob review |
🤖 AI code reviewThis PR edits src/examples/working-with-data.rst: removes // comments from the Basics and Complete Example query blocks, adds a note about comment restrictions (Python rejects all comments, Rust accepts #), clarifies that CATEGORIES is only substituted by the web UI's Query page, and updates the query-snapshot link to queriesSnapshot.test.node.ts.snap. Safe to merge — no P0/P1 findingsConfidence 5/5 ✅ No findings. The diff looks correct to me on this pass. Files changed (1) — the diff as I read it
Reviewed Maintainer commands
|
The query-language page's snippets don't run as written against the current release. Checked on v0.14.3 (
aw-server-rust0.14.3 and the bundled Pythonaw-server) by POSTing eachjavascriptblock on the page to/api/0/query/.Before
//comments. Both servers reject them with a 400: aw-server-rust givesParsingError(... Slash ...)and Python givesQueryParseException: Syntax error: // ....The Python server accepts no comments at all (
#fails too), and aw-server-rust accepts only#. So this PR drops the comments and moves their intent into the prose.__CATEGORIES__is listed as something "the web UI provides", next tofind_bucket. Through/api/0/query/(the endpointaw-client.querycalls) it is undefined on both servers (VariableNotDefined("__CATEGORIES__")), because only the web UI Query page substitutes it.find_bucketis a server-side function and works through the API.queries.test.node.js.snap, which returns 404. The file is nowqueriesSnapshot.test.node.ts.snap.After, with each block run against both servers (seeded window/afk buckets):
Found during a docs-vs-reality pass over install, API, query and sync pages.