Header removals wait for the code editor to be left: autosave saves with drop=false, so follow_header adds and renames from the header but keeps a port or setting whose parameter is gone, and leaving the editor (blur or closing the panel) saves once more with removals; source saves of a flow run one at a time

This commit is contained in:
2026-10-15 21:31:04 +02:00
parent 5ca90ffece
commit ce2ce4e3e7
10 changed files with 105 additions and 24 deletions
+7 -1
View File
@@ -1119,11 +1119,14 @@ export class FlowsService {
*
* A node with its own code takes its input ports and settings from the
* header of ``process`` (see `follow_header`), and the answer carries the
* node when that changed it.
* node when that changed it. ``drop=false`` is the editor's autosave, which
* adds and renames from the header but keeps what it no longer names until
* the editor is left.
* @param data The data for the request.
* @param data.name
* @param data.nodeId
* @param data.requestBody
* @param data.drop
* @returns NodeSourceSaved Successful Response
* @throws ApiError
*/
@@ -1135,6 +1138,9 @@ export class FlowsService {
name: data.name,
node_id: data.nodeId
},
query: {
drop: data.drop
},
body: data.requestBody,
mediaType: 'application/json',
errors: {
+1
View File
@@ -1849,6 +1849,7 @@ export type FlowsReadNodeSourceData = {
export type FlowsReadNodeSourceResponse = (NodeSource);
export type FlowsSaveNodeSourceData = {
drop?: boolean;
name: string;
nodeId: string;
requestBody: NodeSource;