Compare commits

...

5 Commits

Author SHA1 Message Date
Ruben Fiszel
4219377bfc chore(main): release 1.177.1 (#2342)
* chore(main): release 1.177.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2023-09-26 20:43:29 +02:00
HugoCasa
ff1b4df1ac fix: disable schema awareness when object resource (#2343) 2023-09-26 20:12:34 +02:00
Ruben Fiszel
dc44b0841a fix: improve list component handling of non array data 2023-09-26 18:41:28 +02:00
Faton Ramadani
18cf8faec1 fix(frontend): fix modal closing issues (#2340) 2023-09-26 17:23:14 +02:00
Faton Ramadani
2e8f2ec724 fix(frontend): fix overflow (#2341)
* fix(frontend): fix overflow

* fix(frontend): fix overflow
2023-09-26 17:22:52 +02:00
21 changed files with 91 additions and 59 deletions

View File

@@ -1,6 +1,15 @@
# Changelog
## [1.177.1](https://github.com/windmill-labs/windmill/compare/v1.177.0...v1.177.1) (2023-09-26)
### Bug Fixes
* **frontend:** fix modal closing issues ([#2340](https://github.com/windmill-labs/windmill/issues/2340)) ([18cf8fa](https://github.com/windmill-labs/windmill/commit/18cf8faec16d496e4b327505b682459ed518a5b4))
* **frontend:** fix overflow ([#2341](https://github.com/windmill-labs/windmill/issues/2341)) ([2e8f2ec](https://github.com/windmill-labs/windmill/commit/2e8f2ec724f6802170121f4f8aa73b697a39c9ee))
* improve list component handling of non array data ([dc44b08](https://github.com/windmill-labs/windmill/commit/dc44b0841af17227160b9d56ec446e6646a8ab0d))
## [1.177.0](https://github.com/windmill-labs/windmill/compare/v1.176.0...v1.177.0) (2023-09-26)

62
backend/Cargo.lock generated
View File

@@ -321,7 +321,7 @@ dependencies = [
"serde",
"serde-aux",
"serde_json",
"sha2 0.10.7",
"sha2 0.10.8",
"thiserror",
"url",
]
@@ -378,7 +378,7 @@ dependencies = [
"serde",
"serde_json",
"serde_qs 0.9.2",
"sha2 0.10.7",
"sha2 0.10.8",
"smart-default",
"smol_str",
"thiserror",
@@ -3221,7 +3221,7 @@ dependencies = [
"serde",
"serde_json",
"sha1",
"sha2 0.10.7",
"sha2 0.10.8",
"smallvec",
"subprocess",
"thiserror",
@@ -3860,7 +3860,7 @@ dependencies = [
"md-5 0.10.6",
"memchr",
"rand 0.8.5",
"sha2 0.10.7",
"sha2 0.10.8",
"stringprep",
]
@@ -4506,7 +4506,7 @@ version = "7.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d38ff6bf570dc3bb7100fce9f7b60c33fa71d80e88da3f2580df4ff2bdded74"
dependencies = [
"sha2 0.10.7",
"sha2 0.10.8",
"walkdir",
]
@@ -5097,9 +5097,9 @@ dependencies = [
[[package]]
name = "sha2"
version = "0.10.7"
version = "0.10.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8"
checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8"
dependencies = [
"cfg-if",
"cpufeatures",
@@ -5365,7 +5365,7 @@ dependencies = [
"rustls-pemfile",
"serde",
"serde_json",
"sha2 0.10.7",
"sha2 0.10.8",
"smallvec",
"sqlformat",
"thiserror",
@@ -5405,7 +5405,7 @@ dependencies = [
"quote",
"serde",
"serde_json",
"sha2 0.10.7",
"sha2 0.10.8",
"sqlx-core",
"sqlx-mysql",
"sqlx-postgres",
@@ -5451,7 +5451,7 @@ dependencies = [
"rsa 0.9.2",
"serde",
"sha1",
"sha2 0.10.7",
"sha2 0.10.8",
"smallvec",
"sqlx-core",
"stringprep",
@@ -5494,7 +5494,7 @@ dependencies = [
"serde",
"serde_json",
"sha1",
"sha2 0.10.7",
"sha2 0.10.8",
"smallvec",
"sqlx-core",
"stringprep",
@@ -7098,7 +7098,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "windmill"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"anyhow",
"axum",
@@ -7116,7 +7116,7 @@ dependencies = [
"rsmq_async",
"serde",
"serde_json",
"sha2 0.10.7",
"sha2 0.10.8",
"sqlx",
"tokio",
"tokio-metrics",
@@ -7132,7 +7132,7 @@ dependencies = [
[[package]]
name = "windmill-api"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"anyhow",
"argon2",
@@ -7169,7 +7169,7 @@ dependencies = [
"serde",
"serde_json",
"serde_urlencoded",
"sha2 0.10.7",
"sha2 0.10.8",
"sql-builder",
"sqlx",
"tempfile",
@@ -7192,7 +7192,7 @@ dependencies = [
[[package]]
name = "windmill-api-client"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"base64 0.21.4",
"chrono",
@@ -7210,7 +7210,7 @@ dependencies = [
[[package]]
name = "windmill-audit"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"chrono",
"serde",
@@ -7223,7 +7223,7 @@ dependencies = [
[[package]]
name = "windmill-common"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"anyhow",
"axum",
@@ -7239,7 +7239,7 @@ dependencies = [
"reqwest",
"serde",
"serde_json",
"sha2 0.10.7",
"sha2 0.10.8",
"sqlx",
"thiserror",
"tokio",
@@ -7251,7 +7251,7 @@ dependencies = [
[[package]]
name = "windmill-parser"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"serde",
"serde_json",
@@ -7259,7 +7259,7 @@ dependencies = [
[[package]]
name = "windmill-parser-bash"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"anyhow",
"lazy_static",
@@ -7270,7 +7270,7 @@ dependencies = [
[[package]]
name = "windmill-parser-go"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"anyhow",
"gosyn",
@@ -7282,7 +7282,7 @@ dependencies = [
[[package]]
name = "windmill-parser-graphql"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"anyhow",
"lazy_static",
@@ -7293,7 +7293,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"anyhow",
"itertools 0.11.0",
@@ -7304,7 +7304,7 @@ dependencies = [
[[package]]
name = "windmill-parser-py-imports"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"anyhow",
"async-recursion",
@@ -7321,7 +7321,7 @@ dependencies = [
[[package]]
name = "windmill-parser-sql"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"anyhow",
"lazy_static",
@@ -7332,7 +7332,7 @@ dependencies = [
[[package]]
name = "windmill-parser-ts"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"anyhow",
"convert_case 0.6.0",
@@ -7349,7 +7349,7 @@ dependencies = [
[[package]]
name = "windmill-parser-wasm"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"anyhow",
"getrandom 0.2.10",
@@ -7367,7 +7367,7 @@ dependencies = [
[[package]]
name = "windmill-queue"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"anyhow",
"async-recursion",
@@ -7397,7 +7397,7 @@ dependencies = [
[[package]]
name = "windmill-worker"
version = "1.177.0"
version = "1.177.1"
dependencies = [
"anyhow",
"async-recursion",
@@ -7432,7 +7432,7 @@ dependencies = [
"rust_decimal",
"serde",
"serde_json",
"sha2 0.10.7",
"sha2 0.10.8",
"sqlx",
"tokio",
"tokio-postgres",

View File

@@ -1,6 +1,6 @@
[package]
name = "windmill"
version = "1.177.0"
version = "1.177.1"
authors.workspace = true
edition.workspace = true
@@ -22,7 +22,7 @@ members = [
]
[workspace.package]
version = "1.177.0"
version = "1.177.1"
authors = ["Ruben Fiszel <ruben@windmill.dev>"]
edition = "2021"

View File

@@ -1,7 +1,7 @@
openapi: "3.0.3"
info:
version: 1.177.0
version: 1.177.1
title: Windmill API
contact:

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.177.0";
export const VERSION = "v1.177.1";
export async function login(email: string, password: string): Promise<string> {
return await windmill.UserService.login({

View File

@@ -31,7 +31,7 @@ addEventListener("error", (event) => {
}
});
export const VERSION = "v1.177.0";
export const VERSION = "v1.177.1";
let command: any = new Command()
.name("wmill")

View File

@@ -1,12 +1,12 @@
{
"name": "windmill-components",
"version": "1.177.0",
"version": "1.177.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "windmill-components",
"version": "1.177.0",
"version": "1.177.1",
"license": "AGPL-3.0",
"dependencies": {
"@aws-crypto/sha256-js": "^4.0.0",

View File

@@ -1,6 +1,6 @@
{
"name": "windmill-components",
"version": "1.177.0",
"version": "1.177.1",
"scripts": {
"dev": "vite dev",
"build": "vite build",

View File

@@ -235,8 +235,14 @@
let command: Disposable | undefined = undefined
let sqlSchemaCompletor: Disposable | undefined = undefined
$: args &&
(dbSchema = $dbSchemas[(lang === 'graphql' ? args.api : args.database)?.replace('$res:', '')])
function updateSchema(lang, args) {
const schemaRes = lang === 'graphql' ? args.api : args.database
if (schemaRes instanceof String) {
dbSchema = $dbSchemas[schemaRes.replace('$res:', '')]
}
}
$: args && updateSchema(lang, args)
$: dbSchema && ['sql', 'graphql'].includes(lang) && addDBSchemaCompletions()
$: (!dbSchema || lang !== 'sql') && sqlSchemaCompletor && sqlSchemaCompletor.dispose()
$: (!dbSchema || lang !== 'graphql') && graphqlService && graphqlService.setSchemaConfig([])

View File

@@ -69,17 +69,19 @@
initialData: Array<any> | undefined = [],
page: number = 0
) {
const sanitizedData = Array.isArray(initialData) ? initialData : []
if (mode === 'auto') {
const pageSize: number = configuration.auto.pageSize ?? 0
const data = initialData?.slice(0 + page * pageSize, pageSize + page * pageSize) ?? []
const shouldDisplayPagination = pageSize < initialData?.length ?? false
const total = Math.ceil(initialData?.length / pageSize ?? 0)
const data = sanitizedData?.slice(0 + page * pageSize, pageSize + page * pageSize) ?? []
const shouldDisplayPagination = pageSize < sanitizedData?.length ?? false
const total = Math.ceil(sanitizedData.length / pageSize ?? 0)
return {
data,
shouldDisplayPagination,
indexOffset: page * pageSize,
disableNext: pageSize > 0 && (page + 1) * pageSize >= initialData?.length,
disableNext: pageSize > 0 && (page + 1) * pageSize >= sanitizedData?.length,
total: total
}
} else {
@@ -88,7 +90,7 @@
return {
shouldDisplayPagination: true,
data: initialData ?? [],
data: sanitizedData ?? [],
indexOffset: 0,
disableNext: page + 1 >= pageCount,
total: total

View File

@@ -148,7 +148,7 @@
<div>{resolvedConfig.modalTitle}</div>
<div class="w-8">
<button
on:click={() => {
on:click|stopPropagation={() => {
open = false
}}
class="hover:bg-surface-hover bg-surface-secondary rounded-full w-8 h-8 flex items-center justify-center transition-all"

View File

@@ -76,7 +76,7 @@
class="h-full"
lang="css"
bind:code={$app.theme.css}
fixedOverflowWidgets={false}
fixedOverflowWidgets={true}
small
automaticLayout
bind:this={cssEditor}

View File

@@ -72,7 +72,10 @@
const theme = $app.theme
if (theme?.type === 'path') {
sendUserToast('Cannot migrate to CSS editor when using a theme by path', true)
sendUserToast(
'Cannot migrate to CSS editor when using a theme by path. Fork a global theme to edit CSS.',
true
)
return
} else if (theme?.type === 'inlined') {
let cssString = theme.css

View File

@@ -104,7 +104,13 @@
$: !$generatedCode && hideDiff()
$: dbSchema = $dbSchemas[(lang === 'graphql' ? args.api : args.database)?.replace('$res:', '')]
function updateSchema(lang, args) {
const schemaRes = lang === 'graphql' ? args.api : args.database
if (schemaRes instanceof String) {
dbSchema = $dbSchemas[schemaRes.replace('$res:', '')]
}
}
$: updateSchema(lang, args)
</script>
{#if SUPPORTED_LANGUAGES.has(lang)}

View File

@@ -146,7 +146,13 @@
$: editor && setSelectionHandler()
$: selection && (isEdit = !selection.isEmpty())
$: dbSchema = $dbSchemas[(lang === 'graphql' ? args.api : args.database)?.replace('$res:', '')]
function updateSchema(lang, args) {
const schemaRes = lang === 'graphql' ? args.api : args.database
if (schemaRes instanceof String) {
dbSchema = $dbSchemas[schemaRes.replace('$res:', '')]
}
}
$: updateSchema(lang, args)
</script>
{#if $generatedCode.length > 0 && !genLoading}

View File

@@ -4,8 +4,8 @@ verify_ssl = true
name = "pypi"
[packages]
wmill = ">=1.177.0"
wmill_pg = ">=1.177.0"
wmill = ">=1.177.1"
wmill_pg = ">=1.177.1"
sendgrid = "*"
mysql-connector-python = "*"
pymongo = "*"

View File

@@ -1,7 +1,7 @@
openapi: "3.0.3"
info:
version: 1.177.0
version: 1.177.1
title: OpenFlow Spec
contact:
name: Ruben Fiszel

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "wmill"
version = "1.177.0"
version = "1.177.1"
description = "A client library for accessing Windmill server wrapping the Windmill client API"
license = "Apache-2.0"
homepage = "https://windmill.dev"
@@ -16,7 +16,7 @@ include = ["wmill/py.typed"]
[tool.poetry.dependencies]
python = "^3.7"
windmill-api = "^1.177.0"
windmill-api = "^1.177.1"
[build-system]
requires = ["poetry>=1.0.2", "poetry-dynamic-versioning"]

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "wmill-pg"
version = "1.177.0"
version = "1.177.1"
description = "An extension client for the wmill client library focused on pg"
license = "Apache-2.0"
homepage = "https://windmill.dev"

View File

@@ -1,7 +1,7 @@
{
"name": "windmill-client",
"description": "Windmill SDK client for browsers and Node.js",
"version": "1.177.0",
"version": "1.177.1",
"author": "Ruben Fiszel",
"license": "Apache 2.0",
"devDependencies": {

View File

@@ -1 +1 @@
1.177.0
1.177.1