From c2908e52c68103f5882dba896542f7f7fdec5cf7 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 24 Oct 2024 13:40:09 +0200 Subject: [PATCH 01/34] fix: initialize empty smtp settings correctly --- .../lib/components/InstanceSettings.svelte | 73 +++++++++++++------ 1 file changed, 51 insertions(+), 22 deletions(-) diff --git a/frontend/src/lib/components/InstanceSettings.svelte b/frontend/src/lib/components/InstanceSettings.svelte index ac0aabd161..5ff2262058 100644 --- a/frontend/src/lib/components/InstanceSettings.svelte +++ b/frontend/src/lib/components/InstanceSettings.svelte @@ -102,8 +102,8 @@ if (values['base_url'] == undefined) { values['base_url'] = 'http://localhost' } - if (values['smtp_connect'] == undefined) { - values['smtp_connect'] = {} + if (values['smtp_settings'] == undefined) { + values['smtp_settings'] = {} } loading = false @@ -274,22 +274,34 @@ {#if category == 'SMTP'}
Setting SMTP unlocks sending emails upon adding new users to the workspace or the instance or sending critical alerts. - Learn more
Setting SMTP unlocks sending emails upon adding new users to the workspace or the + instance or sending critical alerts. + Learn more {:else if category == 'Registries'}
- Add private registries for Pip, Bun and npm. Learn more + Add private registries for Pip, Bun and npm. Learn more
{:else if category == 'Slack'}
- Connecting your instance to a Slack workspace enables critical alerts to be sent to a Slack channel. - Learn more + Connecting your instance to a Slack workspace enables critical alerts to be sent to a + Slack channel. + Learn more
{:else if category == 'SCIM/SAML'}
- Setting up SAML and SCIM allows you to authenticate users using your identity provider. - Learn more + Setting up SAML and SCIM allows you to authenticate users using your identity + provider. + Learn more
{:else if category == 'Debug'}
@@ -310,9 +322,11 @@
{#if $enterpriseLicense} -
- On Enterprise Edition, you must send data to check that usage is in line with the terms of the subscription. You can either enable telemetry or regularly send usage data by clicking the button below. -
+
+ On Enterprise Edition, you must send data to check that usage is in line with the + terms of the subscription. You can either enable telemetry or regularly send usage + data by clicking the button below. +
- - {/if} +
+ + +
{#if alerts.length > 0}
@@ -217,12 +246,6 @@ - - + {#each alerts as alert, index} - {/if} + {#if activeOnly} + + {/if} {#if filteredUsers && users} - {#each filteredUsers.slice(0, nbDisplayed) as { email, super_admin, login_type, name, username } (email)} + {#each filteredUsers.slice(0, nbDisplayed) as { email, super_admin, login_type, name, username, operator_only } (email)} @@ -203,13 +230,22 @@ {email} isConflict on:renamed={() => { - listUsers() + listUsers(activeOnly) }} /> {/key} {/if} {/if} + {#if activeOnly} + + {/if}
- Name - - Queue Tags to Monitor @@ -230,38 +253,31 @@ Jobs Cooldown (s) Time (s) Actions
- {#if editingIndex === index} - - {:else} - {alert.name} - {/if} - {#if editingIndex === index}
@@ -282,8 +298,9 @@ filterTags(e)} + disabled={workerTags.length === alert.tags_to_monitor.length} class="p-1 flex-grow mr-1" /> @@ -302,6 +320,7 @@ class="autocomplete-list border max-h-36 overflow-y-auto absolute z-50" > {#each filteredTags as tag} + {#if !alert.tags_to_monitor.includes(tag)}
  • + {/if} {/each} {/if} @@ -401,6 +421,7 @@

    {/if} +

    Queue Metrics

    From 6572f7b509c7240c6688c919c51b3e5f8c64a076 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 25 Oct 2024 06:18:06 +0200 Subject: [PATCH 05/34] Update OAuthSetting.svelte --- frontend/src/lib/components/OAuthSetting.svelte | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/lib/components/OAuthSetting.svelte b/frontend/src/lib/components/OAuthSetting.svelte index 632fcc63a1..e2fe394761 100644 --- a/frontend/src/lib/components/OAuthSetting.svelte +++ b/frontend/src/lib/components/OAuthSetting.svelte @@ -66,10 +66,12 @@ > {#if enabled}
    - + {#if name != "slack"} + + {/if}
    usernamekind
    {email} {login_type} + {#if operator_only} + Operator only + {:else} + Developer + {/if} + @@ -244,7 +280,7 @@ updateName(e.detail, email) }} on:renamed={() => { - listUsers() + listUsers(activeOnly) }} {automateUsernameCreation} /> @@ -258,7 +294,7 @@ deleteConfirmedCallback = async () => { await UserService.globalUserDelete({ email }) sendUserToast(`User ${email} removed`) - listUsers() + listUsers(activeOnly) } }} > From 9c15fdde8a59f2c89c72b0415b88313efe9acbe6 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 29 Oct 2024 09:34:42 +0100 Subject: [PATCH 28/34] chore(main): release 1.414.0 (#4599) * chore(main): release 1.414.0 * Apply automatic changes * Update CHANGELOG.md --------- Co-authored-by: rubenfiszel --- CHANGELOG.md | 4 ++ backend/Cargo.lock | 48 +++++++++---------- backend/Cargo.toml | 4 +- backend/windmill-api/openapi.yaml | 2 +- benchmarks/lib.ts | 2 +- cli/main.ts | 2 +- frontend/package-lock.json | 4 +- frontend/package.json | 2 +- lsp/Pipfile | 4 +- openflow.openapi.yaml | 2 +- .../WindmillClient/WindmillClient.psd1 | 2 +- python-client/wmill/pyproject.toml | 2 +- python-client/wmill_pg/pyproject.toml | 2 +- typescript-client/jsr.json | 2 +- typescript-client/package.json | 2 +- version.txt | 2 +- 16 files changed, 45 insertions(+), 41 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 856c7b45f6..0302661caa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.414.0](https://github.com/windmill-labs/windmill/compare/v1.413.2...v1.414.0) (2024-10-29) + +* Issue with previous release, re-releasing + ## [1.413.2](https://github.com/windmill-labs/windmill/compare/v1.413.1...v1.413.2) (2024-10-29) diff --git a/backend/Cargo.lock b/backend/Cargo.lock index ce73a7bb66..fcd54febb1 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -10395,7 +10395,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windmill" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "axum", @@ -10437,7 +10437,7 @@ dependencies = [ [[package]] name = "windmill-api" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "argon2", @@ -10522,7 +10522,7 @@ dependencies = [ [[package]] name = "windmill-api-client" -version = "1.413.2" +version = "1.414.0" dependencies = [ "base64 0.21.7", "chrono", @@ -10540,7 +10540,7 @@ dependencies = [ [[package]] name = "windmill-audit" -version = "1.413.2" +version = "1.414.0" dependencies = [ "chrono", "serde", @@ -10553,7 +10553,7 @@ dependencies = [ [[package]] name = "windmill-autoscaling" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "rsmq_async", @@ -10568,7 +10568,7 @@ dependencies = [ [[package]] name = "windmill-common" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "async-stream", @@ -10614,7 +10614,7 @@ dependencies = [ [[package]] name = "windmill-git-sync" -version = "1.413.2" +version = "1.414.0" dependencies = [ "regex", "rsmq_async", @@ -10629,7 +10629,7 @@ dependencies = [ [[package]] name = "windmill-indexer" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "bytes", @@ -10651,7 +10651,7 @@ dependencies = [ [[package]] name = "windmill-macros" -version = "1.413.2" +version = "1.414.0" dependencies = [ "itertools 0.13.0", "lazy_static", @@ -10663,7 +10663,7 @@ dependencies = [ [[package]] name = "windmill-parser" -version = "1.413.2" +version = "1.414.0" dependencies = [ "convert_case 0.6.0", "serde", @@ -10672,7 +10672,7 @@ dependencies = [ [[package]] name = "windmill-parser-bash" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "lazy_static", @@ -10684,7 +10684,7 @@ dependencies = [ [[package]] name = "windmill-parser-go" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "gosyn", @@ -10696,7 +10696,7 @@ dependencies = [ [[package]] name = "windmill-parser-graphql" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "lazy_static", @@ -10708,7 +10708,7 @@ dependencies = [ [[package]] name = "windmill-parser-php" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "itertools 0.13.0", @@ -10719,7 +10719,7 @@ dependencies = [ [[package]] name = "windmill-parser-py" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "itertools 0.13.0", @@ -10730,7 +10730,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-imports" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "async-recursion", @@ -10748,7 +10748,7 @@ dependencies = [ [[package]] name = "windmill-parser-rust" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "convert_case 0.6.0", @@ -10765,7 +10765,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "lazy_static", @@ -10777,7 +10777,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "lazy_static", @@ -10795,7 +10795,7 @@ dependencies = [ [[package]] name = "windmill-parser-wasm" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "getrandom 0.2.15", @@ -10816,7 +10816,7 @@ dependencies = [ [[package]] name = "windmill-parser-yaml" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "serde_json", @@ -10826,7 +10826,7 @@ dependencies = [ [[package]] name = "windmill-queue" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "async-recursion", @@ -10859,7 +10859,7 @@ dependencies = [ [[package]] name = "windmill-sql-datatype-parser-wasm" -version = "1.413.2" +version = "1.414.0" dependencies = [ "wasm-bindgen", "wasm-bindgen-test", @@ -10869,7 +10869,7 @@ dependencies = [ [[package]] name = "windmill-worker" -version = "1.413.2" +version = "1.414.0" dependencies = [ "anyhow", "async-recursion", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index df77adff9e..5ba836f197 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windmill" -version = "1.413.2" +version = "1.414.0" authors.workspace = true edition.workspace = true @@ -29,7 +29,7 @@ members = [ ] [workspace.package] -version = "1.413.2" +version = "1.414.0" authors = ["Ruben Fiszel "] edition = "2021" diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml index d8ab6a8696..2ce27a2799 100644 --- a/backend/windmill-api/openapi.yaml +++ b/backend/windmill-api/openapi.yaml @@ -1,7 +1,7 @@ openapi: "3.0.3" info: - version: 1.413.2 + version: 1.414.0 title: Windmill API contact: diff --git a/benchmarks/lib.ts b/benchmarks/lib.ts index 05ccd95904..6578a87ed9 100644 --- a/benchmarks/lib.ts +++ b/benchmarks/lib.ts @@ -2,7 +2,7 @@ import { sleep } from "https://deno.land/x/sleep@v1.2.1/mod.ts"; import * as windmill from "https://deno.land/x/windmill@v1.174.0/mod.ts"; import * as api from "https://deno.land/x/windmill@v1.174.0/windmill-api/index.ts"; -export const VERSION = "v1.413.2"; +export const VERSION = "v1.414.0"; export async function login(email: string, password: string): Promise { return await windmill.UserService.login({ diff --git a/cli/main.ts b/cli/main.ts index 1c06b24301..8a633bc383 100644 --- a/cli/main.ts +++ b/cli/main.ts @@ -60,7 +60,7 @@ export { // } // }); -export const VERSION = "1.413.2"; +export const VERSION = "1.414.0"; const command = new Command() .name("wmill") diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 6c99fc97a6..b859c62981 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "windmill-components", - "version": "1.413.2", + "version": "1.414.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "windmill-components", - "version": "1.413.2", + "version": "1.414.0", "license": "AGPL-3.0", "dependencies": { "@aws-crypto/sha256-js": "^4.0.0", diff --git a/frontend/package.json b/frontend/package.json index 2a48b09a4f..e85c91b829 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "windmill-components", - "version": "1.413.2", + "version": "1.414.0", "scripts": { "dev": "vite dev", "build": "vite build", diff --git a/lsp/Pipfile b/lsp/Pipfile index e7e4828ccd..0a9b200f43 100644 --- a/lsp/Pipfile +++ b/lsp/Pipfile @@ -4,8 +4,8 @@ verify_ssl = true name = "pypi" [packages] -wmill = ">=1.413.2" -wmill_pg = ">=1.413.2" +wmill = ">=1.414.0" +wmill_pg = ">=1.414.0" sendgrid = "*" mysql-connector-python = "*" pymongo = "*" diff --git a/openflow.openapi.yaml b/openflow.openapi.yaml index c9808679bf..91dde9a6dc 100644 --- a/openflow.openapi.yaml +++ b/openflow.openapi.yaml @@ -1,7 +1,7 @@ openapi: "3.0.3" info: - version: 1.413.2 + version: 1.414.0 title: OpenFlow Spec contact: name: Ruben Fiszel diff --git a/powershell-client/WindmillClient/WindmillClient.psd1 b/powershell-client/WindmillClient/WindmillClient.psd1 index 41dba9e1da..789f9924c8 100644 --- a/powershell-client/WindmillClient/WindmillClient.psd1 +++ b/powershell-client/WindmillClient/WindmillClient.psd1 @@ -12,7 +12,7 @@ RootModule = 'WindmillClient.psm1' # Version number of this module. -ModuleVersion = '1.413.2' +ModuleVersion = '1.414.0' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/python-client/wmill/pyproject.toml b/python-client/wmill/pyproject.toml index 4c3200022b..ff81b83dc8 100644 --- a/python-client/wmill/pyproject.toml +++ b/python-client/wmill/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "wmill" -version = "1.413.2" +version = "1.414.0" description = "A client library for accessing Windmill server wrapping the Windmill client API" license = "Apache-2.0" homepage = "https://windmill.dev" diff --git a/python-client/wmill_pg/pyproject.toml b/python-client/wmill_pg/pyproject.toml index d0b7d007e9..d3ad71e5d7 100644 --- a/python-client/wmill_pg/pyproject.toml +++ b/python-client/wmill_pg/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "wmill-pg" -version = "1.413.2" +version = "1.414.0" description = "An extension client for the wmill client library focused on pg" license = "Apache-2.0" homepage = "https://windmill.dev" diff --git a/typescript-client/jsr.json b/typescript-client/jsr.json index 2f34a6cb06..146ef63def 100644 --- a/typescript-client/jsr.json +++ b/typescript-client/jsr.json @@ -1,6 +1,6 @@ { "name": "@windmill/windmill", - "version": "1.413.2", + "version": "1.414.0", "exports": "./src/index.ts", "publish": { "exclude": ["!src", "./s3Types.ts", "./client.ts"] diff --git a/typescript-client/package.json b/typescript-client/package.json index ed422483f4..c1d1d8248b 100644 --- a/typescript-client/package.json +++ b/typescript-client/package.json @@ -1,7 +1,7 @@ { "name": "windmill-client", "description": "Windmill SDK client for browsers and Node.js", - "version": "1.413.2", + "version": "1.414.0", "author": "Ruben Fiszel", "license": "Apache 2.0", "devDependencies": { diff --git a/version.txt b/version.txt index 8e1037d7b9..7f67999298 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.413.2 +1.414.0 From 9fbcfc712c981b8a1fee29a1d6b0eed136667e23 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 29 Oct 2024 10:47:06 +0100 Subject: [PATCH 29/34] fix(frontend): new approval steps default to timeout 1800 --- .../src/lib/components/flows/map/FlowModuleSchemaMap.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/flows/map/FlowModuleSchemaMap.svelte b/frontend/src/lib/components/flows/map/FlowModuleSchemaMap.svelte index 6b23ba909b..203ac70988 100644 --- a/frontend/src/lib/components/flows/map/FlowModuleSchemaMap.svelte +++ b/frontend/src/lib/components/flows/map/FlowModuleSchemaMap.svelte @@ -110,7 +110,7 @@ } if (kind == 'approval') { - module.suspend = { required_events: 1 } + module.suspend = { required_events: 1, timeout: 1800 } } else if (kind == 'trigger') { module.stop_after_if = { expr: '!result || (Array.isArray(result) && result.length == 0)', From f795a65276bbc26728f6ba2ae0699fef6d18b1f1 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 29 Oct 2024 12:23:56 +0100 Subject: [PATCH 30/34] fix(frontend): make script and schema scrollable on script detail page --- .../lib/components/FlowGraphViewerStep.svelte | 6 +- .../details/DetailPageDetailPanel.svelte | 80 +++++++++---------- .../details/DetailPageLayout.svelte | 44 +++++----- .../scripts/get/[...hash]/+page.svelte | 6 +- 4 files changed, 68 insertions(+), 68 deletions(-) diff --git a/frontend/src/lib/components/FlowGraphViewerStep.svelte b/frontend/src/lib/components/FlowGraphViewerStep.svelte index b2b7b9d381..fe235c6455 100644 --- a/frontend/src/lib/components/FlowGraphViewerStep.svelte +++ b/frontend/src/lib/components/FlowGraphViewerStep.svelte @@ -133,8 +133,10 @@ Error handler {:else if stepDetail.id === 'preprocessor'} Preprocessor - {:else} - Anonymous step + {:else if stepDetail.value.type == 'rawscript'} + Inline {stepDetail.value.language} script + {:else if stepDetail.value.type == 'script'} + Workspace script {/if} diff --git a/frontend/src/lib/components/details/DetailPageDetailPanel.svelte b/frontend/src/lib/components/details/DetailPageDetailPanel.svelte index 4d56fba8f3..84180d2d5e 100644 --- a/frontend/src/lib/components/details/DetailPageDetailPanel.svelte +++ b/frontend/src/lib/components/details/DetailPageDetailPanel.svelte @@ -1,7 +1,6 @@