Repository navigation
improvement(workflow-code): v9 benchmark findings (table row shape, retry and child result rules, ops help, column types, queryRows paging) - #10361
Conversation
…etry and child result rules, ops help, column types, queryRows paging)
- Table blocks declare row/rows as {id, data, position, createdAt, updatedAt}: check flags row.<column> (W_UNKNOWN_OUTPUT_PATH, hint names the members) and `sim blocks get` publishes nested output shapes (OutputFieldDefinition gains properties/items)
- Primer: block retry vs an api block's retries, a child workflow's c.result.data.<field>, run inputs in the workspace loop
- operations apply help: same-batch renames, connections {} and parentId moves, inputs replace whole fields, nested retries, the table row path
- Column types named in tables create/columns create help, from the contract
- table.queryRows note: no limit maximum, page by nextCursor
- workflows source help points tables at workspaces source
- Generated special params types name the params core.d.ts adds (HumanParams: inputFormat)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
[Medium impact] This PR appears safe to merge. SummaryThis PR makes Table row shapes visible to workflow authors and improves CLI guidance.
No actionable new issues were found. No previous finding threads were supplied. The previous-review merge-base check differed, so the full PR was reviewed. Reviews (2) · Last reviewed commit: "fix(tables): state the public column typ..." · Reviewed by Greptile |
There was a problem hiding this comment.
All reported issues were addressed across 25 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…d insert rows query_rows, batch_insert_rows and insert_row present rows with presentNamedTableQueryRow, which adds orderKey and executions; the declared row shape omitted them, so a check reading either warned W_UNKNOWN_OUTPUT_PATH.
…ow-code-v9-findings
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
row/rowsas{ id, data, position, createdAt, updatedAt }(one shared definition fortableandtable_v2).checknow flagsrow.<column>withW_UNKNOWN_OUTPUT_PATHand the hintrow holds: id, data, position, createdAt, updatedAt.;row.data.<column>stays cleanOutputFieldDefinitiongainsproperties/items;sim blocks get(v2 block catalog) publishes a block output's nested shape, with the block output schema picked fromV2ToolOutput. JEV answers and the Start metadata output type as plain block outputs (no casts)retryreruns the whole block, anapiblock'sretriesrepeat only the request inside each try; a child workflow's response field isc.result.data.<field>; the workspace loop showssim workflows run <workflowId> --manual --input '{…}'. Both primers stay within the 4096-byte budgetworkflows operations apply --help: same-batch renames rewrite added blocks,connections: {}removes every outgoing edge, aparentIdmove drops edges that cross the container, an edit's inputs replace each named field whole (responseFormat too), the two retries nest, the Table row pathtables create --schemaandtables columns create --columnname the column types (fromCOLUMN_TYPES,ttlleft out as in OpenAPI); the CLI's own schema describe is gone in favour of the contract'stable.queryRowsbuilder note:limithas no maximum or default, page bynextCursor→cursoruntil nullworkflows source --helppoints tables, columns and rows atworkspaces sourcecore.d.tsadds (HumanParams:inputFormat)Type of Change
Testing
source-mistakes.test.ts(row cell read off the row, real catalog),invariants.test.ts(nested block output projection, hidden members and conditions dropped),generate.test.ts(core-param doc onHumanParams)applyOperationsToWorkflowStatebefore writing them (rename after adds,{}connections, parentId scope drop, responseFormat replace)file-doc-capabilitiesafterAll timeout), goldens,check:audits,check:test-types,check:migrations, docs compatibility, lint, root type-check,test:scripts, block-registry checkbun run generate(openapi, cli-api, cli-docs, sdk fixture catalog); content baseline updated for the two changed help blocksChecklist
test-auditauthoring gate)