Merge branch 'main' into alp/teams_scripts

This commit is contained in:
Alexander Petric
2025-02-07 13:27:28 -05:00
committed by GitHub
18 changed files with 125 additions and 45 deletions
+8
View File
@@ -1,5 +1,13 @@
# Changelog
## [1.458.1](https://github.com/windmill-labs/windmill/compare/v1.458.0...v1.458.1) (2025-02-07)
### Bug Fixes
* **cli:** ai resource type typo ([#5240](https://github.com/windmill-labs/windmill/issues/5240)) ([b09eb04](https://github.com/windmill-labs/windmill/commit/b09eb04c24743aa43f80bc65e6158cc3b2b557f2))
* get update endpoint ([#5245](https://github.com/windmill-labs/windmill/issues/5245)) ([fcf8f31](https://github.com/windmill-labs/windmill/commit/fcf8f312bc4a27d8da02542964d5d0122ef71a12))
## [1.458.0](https://github.com/windmill-labs/windmill/compare/v1.457.1...v1.458.0) (2025-02-07)
@@ -0,0 +1,68 @@
{
"db_name": "PostgreSQL",
"query": "SELECT\n c.id IS NOT NULL AS completed,\n CASE \n WHEN q.id IS NOT NULL THEN (CASE WHEN NOT $5 AND q.running THEN true ELSE null END)\n ELSE false\n END AS running,\n SUBSTR(logs, GREATEST($1 - log_offset, 0)) AS logs,\n COALESCE(r.memory_peak, c.memory_peak) AS mem_peak,\n CASE\n -- flow step:\n WHEN flow_step_id IS NOT NULL THEN NULL\n -- completed:\n WHEN c.id IS NOT NULL THEN COALESCE(\n c.workflow_as_code_status || c.flow_status,\n c.workflow_as_code_status,\n c.flow_status\n )\n -- not completed:\n ELSE COALESCE(\n f.workflow_as_code_status || f.flow_status,\n f.workflow_as_code_status,\n f.flow_status\n )\n END AS \"flow_status: sqlx::types::Json<Box<RawValue>>\",\n job_logs.log_offset + CHAR_LENGTH(job_logs.logs) + 1 AS log_offset,\n created_by AS \"created_by!\",\n CASE WHEN $4::BOOLEAN THEN (\n SELECT scalar_int FROM job_stats WHERE job_id = $3 AND metric_id = 'progress_perc'\n ) END AS progress\n FROM v2_job j\n LEFT JOIN v2_job_queue q USING (id)\n LEFT JOIN v2_job_runtime r USING (id)\n LEFT JOIN v2_job_status f USING (id)\n LEFT JOIN v2_job_completed c USING (id)\n LEFT JOIN job_logs ON job_logs.job_id = $3\n WHERE j.workspace_id = $2 AND j.id = $3",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "completed",
"type_info": "Bool"
},
{
"ordinal": 1,
"name": "running",
"type_info": "Bool"
},
{
"ordinal": 2,
"name": "logs",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "mem_peak",
"type_info": "Int4"
},
{
"ordinal": 4,
"name": "flow_status: sqlx::types::Json<Box<RawValue>>",
"type_info": "Jsonb"
},
{
"ordinal": 5,
"name": "log_offset",
"type_info": "Int4"
},
{
"ordinal": 6,
"name": "created_by!",
"type_info": "Varchar"
},
{
"ordinal": 7,
"name": "progress",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Int4",
"Text",
"Uuid",
"Bool",
"Bool"
]
},
"nullable": [
null,
null,
null,
null,
null,
null,
false,
null
]
},
"hash": "b075c77caad37cdd75faab1d934b7a63521c1ad788033c564ffd7a2944454378"
}
+25 -25
View File
@@ -10859,7 +10859,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "windmill"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"axum",
@@ -10902,7 +10902,7 @@ dependencies = [
[[package]]
name = "windmill-api"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"argon2",
@@ -10995,7 +10995,7 @@ dependencies = [
[[package]]
name = "windmill-api-client"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"base64 0.22.1",
"chrono",
@@ -11013,7 +11013,7 @@ dependencies = [
[[package]]
name = "windmill-audit"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"chrono",
"serde",
@@ -11026,7 +11026,7 @@ dependencies = [
[[package]]
name = "windmill-autoscaling"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"serde",
@@ -11040,7 +11040,7 @@ dependencies = [
[[package]]
name = "windmill-common"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"async-stream",
@@ -11099,7 +11099,7 @@ dependencies = [
[[package]]
name = "windmill-git-sync"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"regex",
"serde",
@@ -11113,7 +11113,7 @@ dependencies = [
[[package]]
name = "windmill-indexer"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"bytes",
@@ -11136,7 +11136,7 @@ dependencies = [
[[package]]
name = "windmill-macros"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"itertools 0.14.0",
"lazy_static",
@@ -11148,7 +11148,7 @@ dependencies = [
[[package]]
name = "windmill-parser"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"convert_case 0.6.0",
"serde",
@@ -11157,7 +11157,7 @@ dependencies = [
[[package]]
name = "windmill-parser-bash"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"lazy_static",
@@ -11169,7 +11169,7 @@ dependencies = [
[[package]]
name = "windmill-parser-csharp"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"serde_json",
@@ -11181,7 +11181,7 @@ dependencies = [
[[package]]
name = "windmill-parser-go"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"gosyn",
@@ -11193,7 +11193,7 @@ dependencies = [
[[package]]
name = "windmill-parser-graphql"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"lazy_static",
@@ -11205,7 +11205,7 @@ dependencies = [
[[package]]
name = "windmill-parser-php"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"itertools 0.14.0",
@@ -11216,7 +11216,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"itertools 0.14.0",
@@ -11227,7 +11227,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py-imports"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"async-recursion",
@@ -11247,7 +11247,7 @@ dependencies = [
[[package]]
name = "windmill-parser-rust"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"convert_case 0.6.0",
@@ -11264,7 +11264,7 @@ dependencies = [
[[package]]
name = "windmill-parser-sql"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"lazy_static",
@@ -11276,7 +11276,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ts"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"lazy_static",
@@ -11294,7 +11294,7 @@ dependencies = [
[[package]]
name = "windmill-parser-wasm"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"getrandom 0.2.15",
@@ -11316,7 +11316,7 @@ dependencies = [
[[package]]
name = "windmill-parser-yaml"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"serde_json",
@@ -11326,7 +11326,7 @@ dependencies = [
[[package]]
name = "windmill-queue"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"async-recursion",
@@ -11359,7 +11359,7 @@ dependencies = [
[[package]]
name = "windmill-sql-datatype-parser-wasm"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"wasm-bindgen",
"wasm-bindgen-test",
@@ -11369,7 +11369,7 @@ dependencies = [
[[package]]
name = "windmill-worker"
version = "1.458.0"
version = "1.458.1"
dependencies = [
"anyhow",
"async-recursion",
+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "windmill"
version = "1.458.0"
version = "1.458.1"
authors.workspace = true
edition.workspace = true
@@ -30,7 +30,7 @@ members = [
]
[workspace.package]
version = "1.458.0"
version = "1.458.1"
authors = ["Ruben Fiszel <ruben@windmill.dev>"]
edition = "2021"
+1 -1
View File
@@ -1,7 +1,7 @@
openapi: "3.0.3"
info:
version: 1.458.0
version: 1.458.1
title: Windmill API
contact:
+7 -3
View File
@@ -5175,12 +5175,15 @@ async fn get_job_update(
OptAuthed(opt_authed): OptAuthed,
Extension(db): Extension<DB>,
Path((w_id, job_id)): Path<(String, Uuid)>,
Query(JobUpdateQuery { log_offset, get_progress, .. }): Query<JobUpdateQuery>,
Query(JobUpdateQuery { log_offset, get_progress, running }): Query<JobUpdateQuery>,
) -> JsonResult<JobUpdate> {
let record = sqlx::query!(
"SELECT
c.id IS NOT NULL AS completed,
q.id IS NOT NULL AND q.running AS running,
CASE
WHEN q.id IS NOT NULL THEN (CASE WHEN NOT $5 AND q.running THEN true ELSE null END)
ELSE false
END AS running,
SUBSTR(logs, GREATEST($1 - log_offset, 0)) AS logs,
COALESCE(r.memory_peak, c.memory_peak) AS mem_peak,
CASE
@@ -5214,7 +5217,8 @@ async fn get_job_update(
log_offset,
&w_id,
job_id,
get_progress.unwrap_or(false)
get_progress.unwrap_or(false),
running,
)
.fetch_optional(&db)
.await?
+1 -1
View File
@@ -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.458.0";
export const VERSION = "v1.458.1";
export async function login(email: string, password: string): Promise<string> {
return await windmill.UserService.login({
+1 -1
View File
@@ -60,7 +60,7 @@ export {
// }
// });
export const VERSION = "1.458.0";
export const VERSION = "1.458.1";
const command = new Command()
.name("wmill")
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "windmill-components",
"version": "1.458.0",
"version": "1.458.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "windmill-components",
"version": "1.458.0",
"version": "1.458.1",
"license": "AGPL-3.0",
"dependencies": {
"@anthropic-ai/sdk": "^0.32.1",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "windmill-components",
"version": "1.458.0",
"version": "1.458.1",
"scripts": {
"dev": "vite dev",
"build": "vite build",
+2 -2
View File
@@ -4,8 +4,8 @@ verify_ssl = true
name = "pypi"
[packages]
wmill = ">=1.458.0"
wmill_pg = ">=1.458.0"
wmill = ">=1.458.1"
wmill_pg = ">=1.458.1"
sendgrid = "*"
mysql-connector-python = "*"
pymongo = "*"
+1 -1
View File
@@ -1,7 +1,7 @@
openapi: "3.0.3"
info:
version: 1.458.0
version: 1.458.1
title: OpenFlow Spec
contact:
name: Ruben Fiszel
@@ -12,7 +12,7 @@
RootModule = 'WindmillClient.psm1'
# Version number of this module.
ModuleVersion = '1.458.0'
ModuleVersion = '1.458.1'
# Supported PSEditions
# CompatiblePSEditions = @()
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "wmill"
version = "1.458.0"
version = "1.458.1"
description = "A client library for accessing Windmill server wrapping the Windmill client API"
license = "Apache-2.0"
homepage = "https://windmill.dev"
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "wmill-pg"
version = "1.458.0"
version = "1.458.1"
description = "An extension client for the wmill client library focused on pg"
license = "Apache-2.0"
homepage = "https://windmill.dev"
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@windmill/windmill",
"version": "1.458.0",
"version": "1.458.1",
"exports": "./src/index.ts",
"publish": {
"exclude": ["!src", "./s3Types.ts", "./client.ts"]
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "windmill-client",
"description": "Windmill SDK client for browsers and Node.js",
"version": "1.458.0",
"version": "1.458.1",
"author": "Ruben Fiszel",
"license": "Apache 2.0",
"devDependencies": {
+1 -1
View File
@@ -1 +1 @@
1.458.0
1.458.1