Flows and dashboards get ids: the store is addressed by id with a key index, the first start gives every document its key as id, fluksio store migrate --dry-run and ls; the rename routes are gone

This commit is contained in:
2026-11-02 16:54:11 +01:00
parent de13c48c90
commit fae85f5ecb
20 changed files with 1287 additions and 420 deletions
+30 -24
View File
@@ -670,6 +670,11 @@ sequence number — which nothing here interprets.`
export const DashboardDef_InputSchema = {
properties: {
id: {
type: 'string',
title: 'Id',
default: ''
},
name: {
type: 'string',
title: 'Name'
@@ -744,6 +749,11 @@ export const DashboardDef_InputSchema = {
export const DashboardDef_OutputSchema = {
properties: {
id: {
type: 'string',
title: 'Id',
default: ''
},
name: {
type: 'string',
title: 'Name'
@@ -818,6 +828,11 @@ export const DashboardDef_OutputSchema = {
export const DashboardSummarySchema = {
properties: {
id: {
type: 'string',
title: 'Id',
default: ''
},
name: {
type: 'string',
title: 'Name'
@@ -1491,6 +1506,11 @@ export const FlavorsPublicSchema = {
export const FlowDef_InputSchema = {
properties: {
id: {
type: 'string',
title: 'Id',
default: ''
},
name: {
type: 'string',
title: 'Name'
@@ -1554,6 +1574,11 @@ export const FlowDef_InputSchema = {
export const FlowDef_OutputSchema = {
properties: {
id: {
type: 'string',
title: 'Id',
default: ''
},
name: {
type: 'string',
title: 'Name'
@@ -1877,6 +1902,11 @@ export const FlowStatePublicSchema = {
export const FlowSummarySchema = {
properties: {
id: {
type: 'string',
title: 'Id',
default: ''
},
name: {
type: 'string',
title: 'Name'
@@ -5338,18 +5368,6 @@ export const fluksio__api__routes__dashboards__PublishRequestSchema = {
title: 'PublishRequest'
} as const;
export const fluksio__api__routes__dashboards__RenameRequestSchema = {
properties: {
name: {
type: 'string',
title: 'Name'
}
},
type: 'object',
required: ['name'],
title: 'RenameRequest'
} as const;
export const fluksio__api__routes__flows__PublishRequestSchema = {
properties: {
version: {
@@ -5362,18 +5380,6 @@ export const fluksio__api__routes__flows__PublishRequestSchema = {
title: 'PublishRequest'
} as const;
export const fluksio__api__routes__flows__RenameRequestSchema = {
properties: {
new_name: {
type: 'string',
title: 'New Name'
}
},
type: 'object',
required: ['new_name'],
title: 'RenameRequest'
} as const;
export const fluksio__api__routes__messages__MessageValueSchema = {
properties: {
name: {
File diff suppressed because one or more lines are too long
+6 -22
View File
@@ -172,6 +172,7 @@ export type ControlWatch = {
* A dashboard as stored, and as the API hands it over.
*/
export type DashboardDef_Input = {
id?: string;
name: string;
title?: string;
columns?: number;
@@ -193,6 +194,7 @@ export type shape = 'rect' | 'round';
* A dashboard as stored, and as the API hands it over.
*/
export type DashboardDef_Output = {
id?: string;
name: string;
title?: string;
columns?: number;
@@ -217,6 +219,7 @@ export type DashboardsPublic = {
* A dashboard in a list, without its contents.
*/
export type DashboardSummary = {
id?: string;
name: string;
title?: string;
icon?: string;
@@ -425,6 +428,7 @@ export type FlavorUpdate = {
* One atomic flow.
*/
export type FlowDef_Input = {
id?: string;
name: string;
title?: string;
nodes?: Array<NodeDef_Input>;
@@ -453,6 +457,7 @@ export type mode = 'live' | 'batch';
* One atomic flow.
*/
export type FlowDef_Output = {
id?: string;
name: string;
title?: string;
nodes?: Array<NodeDef_Output>;
@@ -576,6 +581,7 @@ export type FlowStatePublic = {
};
export type FlowSummary = {
id?: string;
name: string;
title?: string;
mode?: 'live' | 'batch';
@@ -593,18 +599,10 @@ export type fluksio__api__routes__dashboards__PublishRequest = {
version: number;
};
export type fluksio__api__routes__dashboards__RenameRequest = {
name: string;
};
export type fluksio__api__routes__flows__PublishRequest = {
version: number;
};
export type fluksio__api__routes__flows__RenameRequest = {
new_name: string;
};
export type fluksio__api__routes__messages__MessageValue = {
name: string;
value: unknown;
@@ -1901,13 +1899,6 @@ export type DashboardsDuplicateDashboardData = {
export type DashboardsDuplicateDashboardResponse = (DashboardDef_Output);
export type DashboardsRenameDashboardData = {
name: string;
requestBody: fluksio__api__routes__dashboards__RenameRequest;
};
export type DashboardsRenameDashboardResponse = (DashboardDef_Output);
export type DevicesStartPairingData = {
requestBody?: (PairHello | null);
};
@@ -2050,13 +2041,6 @@ export type FlowsDiscardDraftData = {
export type FlowsDiscardDraftResponse = (FlowDetail);
export type FlowsRenameFlowData = {
name: string;
requestBody: fluksio__api__routes__flows__RenameRequest;
};
export type FlowsRenameFlowResponse = (FlowDetail);
export type FlowsDuplicateFlowData = {
name: string;
};