From 81bb580222fa196aecb57c2d276c3b70c15cee69 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 22 Feb 2023 01:13:42 +0100 Subject: [PATCH] remove versions from serialized apps --- backend/windmill-api/src/workspaces.rs | 2 +- cli/apps.ts | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/backend/windmill-api/src/workspaces.rs b/backend/windmill-api/src/workspaces.rs index 6386171b57..60137b1712 100644 --- a/backend/windmill-api/src/workspaces.rs +++ b/backend/windmill-api/src/workspaces.rs @@ -1111,7 +1111,7 @@ where .as_object() .map(|obj| { let mut obj = obj.clone(); - for key in ["workspace_id", "path", "name"] { + for key in ["workspace_id", "path", "name", "versions"] { if obj.contains_key(key) { obj.remove(key); } diff --git a/cli/apps.ts b/cli/apps.ts index a324fbecf8..358badf2a4 100644 --- a/cli/apps.ts +++ b/cli/apps.ts @@ -1,4 +1,4 @@ -import { Any, model, property, array } from "./decoverto.ts"; +import { Any, model, property } from "./decoverto.ts"; import { AppService, AppWithLastVersion, @@ -16,14 +16,11 @@ export class AppFile implements Resource, PushDiffs { summary: string; @property(Any) policy: Policy; - @property(array(() => Number)) - versions: number[]; - constructor(value: string, summary: string, policy: Policy, versions: number[]) { + constructor(value: string, summary: string, policy: Policy) { this.value = value; this.summary = summary; this.policy = policy; - this.versions = versions; } async pushDiffs( workspace: string, @@ -41,7 +38,6 @@ export class AppFile implements Resource, PushDiffs { summary?: string | undefined; value?: any; policy?: Policy | undefined; - versions?: number[] | undefined; } = {}; for (const diff of diffs) { if (