Commit Graph

9562 Commits

Author SHA1 Message Date
Ruben Fiszel 53c75b81e3 embed typescript client in cli (#4403)
* all

* all

* all

* all

* all
2024-09-18 16:45:39 +02:00
Ruben Fiszel 3cc6a5c68d chore(main): release 1.396.1 (#4402)
* chore(main): release 1.396.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-18 14:36:40 +02:00
Ruben Fiszel fc6e480e56 fix: postgres scripts that take longer than 20s do not timeout anymore 2024-09-18 14:32:16 +02:00
Ruben Fiszel aab09bcdbd chore(main): release 1.396.0 (#4401)
* chore(main): release 1.396.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-18 11:27:13 +02:00
pyranota d3e0b1c636 feat: Allow setProgress and getProgress from within the script (#4400)
* Allow setting progress explicitly from script body.

This feature exposes:
 * `getProgress`
 * `setProgress`
 * `incProgress`

API in TypeScript client (python is coming soon).

NOTE: Progress cannot be out of range 0..100 and cannot decrease.

With exposed APIs there is also UI changes, so progress can be shown for individual jobs as well.

For optimization reasons, jobs start to ask for progress only after N-seconds of execution.

* feat: Add `shell.nix`

If you dont have anything but nix, dont worry, run nix-shell in root, or activate with direnv and get all needed dependencies

NOTE: You will still need docker

* feat: Add `dev.nu` to typescript client

Little helper function, allowing developer to work on ts client easier.

To use:
  `./dev.nu watch`

Now add import of windmill in body of your script and `//nobundle` on top of the file

Edit ts client in your favourite editor and hit save. Script will do the rest.

* Cleanup files

* Fix: Failed to deserialize query string: missing field `get_progress`

* perf: Implement non-naive polling mechanism for getting job progress

* Add independant delay for getProgress

Problem in `TestJobLoader`:

There should be 2 delays:

    One until we find our first progress (every 5s)
    Once we found our first progress, we can do it every second

* nit: Use `query_scalar!` instead of `query_as`

* Fix: Sql error, no rows returned by a query that expected to return at least one row

* refactor: Remove global CSS for JobProgressBar

* Change UI for progress of flow subjobs

* Replace `Step 1` with `Running` in ProgressBar for individual jobs

* Remove `incProgress`

incProgress is not very usefull and error-prone

* perf: Set metric only for jobs that are actually using it

(https://github.com/windmill-labs/windmill/pull/4373#discussion_r1759843773)

* Offload registering progress from clients to server

* Add `jobId?` argument to typescript-client's `setProgress` and `getProgress`

Allows to set progress of other jobs and flows,
if jobId specified, than flow id will be inferred automatically.

Could be used by SDK.

* Add `Error::MetricNotFound` for better error handling

* Fix: Make `JobProgressBar` display in red when failed

* Add persistant progress bar

Now you can reload the page after job is done and progress will be still there

* Allow succeeded individual job's progress bar stick to 100%

* Add python support 

* nit: Remove usage of undefined variable in python-client

* Add `async` in ts client (for error handling)

* nit(frontend): Remove unused import

* Dont load JobProgressBar when it is not needed

* nit: npm check fix

* cargo sqlx prepare

* fix sqlx

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2024-09-18 01:16:19 +02:00
Ruben Fiszel 938b8d81dd fix lock-write for deno 2024-09-18 00:57:53 +02:00
Ruben Fiszel 6456e39ee2 add main tag to ee-nsjail 2024-09-18 00:36:02 +02:00
Ruben Fiszel 87bf6b8511 rm legacy hubScripts 2024-09-17 17:33:52 +02:00
Ruben Fiszel 359276537b chore(main): release 1.395.0 (#4394)
* chore(main): release 1.395.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-17 10:41:26 +02:00
Ruben Fiszel ae6103569a fix: update bun to 1.1.27 2024-09-17 10:27:51 +02:00
Ruben Fiszel 375f37741b nit display flowmodulevalue for tests 2024-09-17 09:11:23 +02:00
Ruben Fiszel 605ac7439b fix(deno): replace lock-write with frozen=false 2024-09-17 08:33:33 +02:00
Alexander Petric 65dfad8275 fix(frontend): new resource type name must be snake case (#4396)
* check if newResourceType.name is camel case

* adding option to convert to snake case

* signing commit

* validate numbers in snake case, externalize 'valid' field of newResourceType
2024-09-17 00:15:55 +02:00
Alexander Petric 8c23b21f43 caddy not needed for frontend dev with cloud backend (#4397) 2024-09-17 00:14:14 +02:00
Faton Ramadani fda1f21d5e fix(frontend): add support for step id change for forloops and branch… (#4395)
* fix(frontend): add support for step id change for forloops and branchone + add initial value for DebounchedInput

* fix(frontend): fix initial value of DebouncedInput
2024-09-16 23:12:23 +02:00
Ruben Fiszel f864709ab2 fix: cannot create duplicate apps and raw_apps 2024-09-16 21:15:29 +02:00
Ruben Fiszel 3e3b57f203 fix: improve vscode extension handling of relative paths 2024-09-16 20:57:27 +02:00
HugoCasa d3e8731be2 feat: failed key renewal alert + renew on start if no recent renewal (#4387)
* feat: failed key renewal alert + renew on start if no recent renewal

* Update ee-repo-ref.txt
2024-09-16 16:54:35 +02:00
Ruben Fiszel 91bd6f73d2 fix(cli): update CLI schema parsers to latest 2024-09-16 11:28:24 +02:00
Ruben Fiszel f04a4a78b3 chore(main): release 1.394.6 (#4393)
* chore(main): release 1.394.6

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-15 21:07:50 +02:00
Ruben Fiszel d533a017a7 fix: improve first time setup experience 2024-09-15 21:02:36 +02:00
Tsvetomir Bonev ad5363375d chore: build full docker image for arm64 (#4391)
* chore: build `windmill-full` for `arm64`

* fix: use non-enterprise docker image as base
2024-09-14 18:30:31 +02:00
Ruben Fiszel a146e0588b chore(main): release 1.394.5 (#4385)
* chore(main): release 1.394.5

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-13 23:39:12 +02:00
HugoCasa 6ca628c811 fix: queue metrics graph (#4388) 2024-09-13 23:34:48 +02:00
Ruben Fiszel 307b46cb9c fix: parquet renderer display number of rows" (#4389)
* all

* all

* all

* nocheck
2024-09-13 23:34:36 +02:00
Ruben Fiszel f73e18c7db handle better false values as defaultValue of appselect 2024-09-13 17:49:03 +02:00
Ruben Fiszel 6c3f9696cb fix: add filename to s3 upload 2024-09-13 11:52:17 +02:00
HugoCasa 7e01908b3a fix: update internal hub scritps to bun (#4384) 2024-09-13 11:41:58 +02:00
Ruben Fiszel 98799b54f6 update how monaco workers is loaded (#4383)
* update

* update 2

* Update package.json

* all

* update

* update

* Update package.json
2024-09-13 11:32:47 +02:00
Ruben Fiszel b7e164c88e chore(main): release 1.394.4 (#4375)
* chore(main): release 1.394.4

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-13 08:52:34 +02:00
Ruben Fiszel b060a1c39a fix(image): correctly publish windmill-full image 2024-09-13 08:47:58 +02:00
Ruben Fiszel 284029ed98 appselect default value fix nit + editor workers are url based 2024-09-12 21:41:06 +02:00
Manuel e0a6cfaeac fix(frontend): prompt fix-AI not to rename existing variables (#4382)
* fix(frontend): prompt fix-AI not to rename existing variables

* fix(frontend): prompt fix-& edit-AI not to rename existing variables

---------

Co-authored-by: Manu [tennox] <tennox+git@txlab.io>
Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2024-09-12 18:55:46 +02:00
Ruben Fiszel bb23c3267e remove obsoelte flip on schemaform 2024-09-12 18:54:04 +02:00
Ruben Fiszel bef1bcb2a4 fix: timeout in pg executor on postgresql connection after 20s 2024-09-12 18:49:43 +02:00
Ruben Fiszel 4a7b6aa77f fix: tighten number input validity if min or max is set 2024-09-12 14:51:03 +02:00
HugoCasa d3dc65b740 fix: tighten inputs for granular kinds (#4379)
* fix(backend): acls perms

* nit
2024-09-12 14:40:22 +02:00
Ruben Fiszel 770b475aa2 fix: multiple secret picker candidates in resource adder 2024-09-12 13:52:16 +02:00
Ruben Fiszel bc30996188 fix: improve password input for resources editor 2024-09-12 13:13:04 +02:00
HugoCasa 5227a67035 fix(frontend): table footer display on safari (#4377) 2024-09-12 11:38:53 +02:00
Ruben Fiszel 5a481e0a8e fix: improve app select propagation to list inputs in apps 2024-09-12 09:18:06 +02:00
Ruben Fiszel ea44afec41 chore(main): release 1.394.3 (#4374)
* chore(main): release 1.394.3

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-11 23:56:17 +02:00
Ruben Fiszel b5a9111d07 fix: improve runFlowAsync and run_flow_async default behavior + time formatting of scheduled for 2024-09-11 23:52:02 +02:00
Ruben Fiszel 816a303f7e chore(main): release 1.394.2 (#4372)
* chore(main): release 1.394.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-11 23:05:33 +02:00
Ruben Fiszel 34b130d018 fix: add tag_override for script in flows 2024-09-11 23:02:45 +02:00
Ruben Fiszel 7d29651d3e fix: graceful worker exits for same worker jobs (#4371)
* all

* fix compile
2024-09-11 18:32:08 +02:00
Ruben Fiszel dd6643aab7 chore(main): release 1.394.1 (#4366)
* chore(main): release 1.394.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-11 12:19:19 +02:00
Ruben Fiszel d55159367d fix: default success handler key can be viewed by anyone in the workspace 2024-09-11 12:16:10 +02:00
Ruben Fiszel 7a29c93bf8 fix: same worker is transitive on nested flows 2024-09-11 08:59:01 +02:00
Ruben Fiszel 458dcfe1e8 fix: handle better same_worker flow monitor 2024-09-11 01:29:40 +02:00