You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 38d9b31
Browse filesBrowse the repository at this point in the historyBrowse files
improvement(workflow-code): v9 benchmark findings (table row shape, retry and child result rules, ops help, column types, queryRows paging) (#10361)
* improvement(workflow-code): v9 benchmark findings (table row shape, retry 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)
* fix(workflow-code): declare orderKey and executions on table query and 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.
* fix(tables): state the public column types as one sentence in the column inputs' help
|`--column <json\|@file>`| Yes | Column definition to add. (JSON, or @path / @- to read a file or stdin). |
5894
+
|`--column <json\|@file>`| Yes | Column definition to add: {"name":"status","type":"string"}. A column's type is one of string, number, currency, boolean, date, json, select; a select column also takes options. (JSON, or @path / @- to read a file or stdin). |
5895
5895
5896
5896
</CommandTable>
5897
5897
@@ -6797,7 +6797,7 @@ sim tables create [options]
6797
6797
| --- | --- | --- |
6798
6798
|`--name <value>`| Yes | Identifier: letters, numbers, and underscores; cannot start with a number. |
6799
6799
|`--description <value>`| No | Optional table description. |
6800
-
|`--schema <json\|@file>`| Yes |Table schema: {"columns":[{"name":"email","type":"string"}]} (JSON, or @path / @- to read a file or stdin). |
6800
+
|`--schema <json\|@file>`| Yes |Initial table column definitions: {"columns":[{"name":"email","type":"string"}]}. A column's type is one of string, number, currency, boolean, date, json, select; a select column also takes options. (JSON, or @path / @- to read a file or stdin). |
6801
6801
|`--folder <value>`| No | Folder path as shown in the app; the leading / is optional. |
6802
6802
6803
6803
</CommandTable>
@@ -7773,7 +7773,9 @@ Edges:
7773
7773
connections maps a source handle to its targets: {"source":"<id>"}, {"source":["<a>","<b>"]},
7774
7774
or {"source":{"block":"<id>","handle":"<target handle>"}}; "success" is an alias of "source".
7775
7775
An add's connections create the new block's edges. An edit's connections REPLACE every
7776
-
outgoing edge of that block, on every handle: list again each edge to keep.
7776
+
outgoing edge of that block, on every handle: list again each edge to keep; {} removes them all.
7777
+
A block moved into or out of a loop or parallel (parentId) loses every edge that would cross the
7778
+
container's boundary: to leave the loop, wire its loop-end-source (parallel-end-source).
7777
7779
To remove one edge, edit its source block with
7778
7780
{"removeEdges":[{"targetBlockId":"<id>","sourceHandle":"source"}]} (sourceHandle defaults to
7779
7781
"source").
@@ -7786,12 +7788,14 @@ Source handles:
7786
7788
parallel-start-source, parallel-end-source the same for a parallel
7787
7789
Renames:
7788
7790
An edit's {"name":"New name"} also rewrites every <old key.field> reference to the block, in
7789
-
other blocks' inputs and in a loop's or parallel's collection and condition.
7791
+
other blocks' inputs and in a loop's or parallel's collection and condition. Edits run after the
7792
+
batch's adds, so a block added in the same batch is rewritten too.
7790
7793
Inputs:
7791
7794
inputs takes the field ids `sim blocks get <type>` lists (inputSchema, operationInputSchema),
7792
7795
or the name a pair of them shares (inputDefinitions: tableId for tableSelector and
7793
7796
manualTableId; a string goes to the typed field). Add the type it answers with: `blocks get
7794
-
table` answers table_v2, and an add of legacy table is refused.
7797
+
table` answers table_v2, and an add of legacy table is refused. An edit's inputs replace each
7798
+
field they name whole (a responseFormat schema too) and keep the fields they do not name.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/cli/tables.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ sim tables create [options]
68
68
| --- | --- | --- |
69
69
|`--name <value>`| Yes | Identifier: letters, numbers, and underscores; cannot start with a number. |
70
70
|`--description <value>`| No | Optional table description. |
71
-
|`--schema <json\|@file>`| Yes |Table schema: {"columns":[{"name":"email","type":"string"}]} (JSON, or @path / @- to read a file or stdin). |
71
+
|`--schema <json\|@file>`| Yes |Initial table column definitions: {"columns":[{"name":"email","type":"string"}]}. A column's type is one of string, number, currency, boolean, date, json, select; a select column also takes options. (JSON, or @path / @- to read a file or stdin). |
72
72
|`--folder <value>`| No | Folder path as shown in the app; the leading / is optional. |
|`--column <json\|@file>`| Yes | Column definition to add. (JSON, or @path / @- to read a file or stdin). |
627
+
|`--column <json\|@file>`| Yes | Column definition to add: {"name":"status","type":"string"}. A column's type is one of string, number, currency, boolean, date, json, select; a select column also takes options. (JSON, or @path / @- to read a file or stdin). |
"description": "Initial table column definitions: {\"columns\":[{\"name\":\"email\",\"type\":\"string\"}]}. A column's type is one of string, number, currency, boolean, date, json, select; a select column also takes options."
6426
6426
},
6427
6427
"folderPath": {
6428
6428
"description": "Folder in which to create the table.",
@@ -6701,7 +6701,7 @@
6701
6701
},
6702
6702
"required": ["name", "type"],
6703
6703
"additionalProperties": false,
6704
-
"description": "Column definition to add."
6704
+
"description": "Column definition to add: {\"name\":\"status\",\"type\":\"string\"}. A column's type is one of string, number, currency, boolean, date, json, select; a select column also takes options."
0 commit comments