3884 Commits

Author SHA1 Message Date
Ruben Fiszel 30fe28ceec fix: update git sync script 2024-09-20 09:12:00 +02:00
Ruben Fiszel 07372e7e65 fix: improve ability to paste from macos in vscode extension 2024-09-19 16:15:32 +02:00
Ruben Fiszel 623ece8c67 fix(go): put shared directory in job dir and not go parent 2024-09-19 10:05:08 +02:00
Ruben Fiszel 1b3e90ce7a add ansible to default tags 2024-09-19 00:47:30 +02:00
wendrul 6855b8da9a feat: ansible playbook support (#4399)
* Ansible execution and parsing

* Working collections and pip dependencies

* Remove unused vars

* File resources logic for ansible

* Make frontend for ansible and resource file

* Format file

* Change naming of file resource and inventory fields

* Add autocomplete for file extension resource creation

* Add endpoint to list file formats for resource types

* Add CLI functionality to pull/push file resources

* Add beta tag to ansible

* Add Full image dockerfiles containing ansible

* Prepare sqlx

* Update cargo.lock

* Update ansible path

* Remove unused imports

* Add back import removed by rust-analyzer

* Improve ansible init code

* Prepare sqlx

* Change dockerfile to make the full windmill image

* Remove old dockerfile

* Improve autocomplete file resource extension select

* Remove comment

* Validate file extension

* Add icons to text file resources

* Remove editability of file resource types

* Remove unused import

* Missing space

* Add yaml parser
2024-09-19 00:21:15 +02:00
pyranota d6d4756b7a 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 a24365237c rm legacy hubScripts 2024-09-17 17:33:52 +02:00
Alexander Petric 9297ffcac4 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
Faton Ramadani 97839a3583 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 8ae6c3262a fix: improve vscode extension handling of relative paths 2024-09-16 20:57:27 +02:00
Ruben Fiszel 6ba77d533f fix(cli): update CLI schema parsers to latest 2024-09-16 11:28:24 +02:00
Ruben Fiszel 396258f637 fix: improve first time setup experience 2024-09-15 21:02:36 +02:00
Ruben Fiszel 51cf420272 fix: parquet renderer display number of rows" (#4389)
* all

* all

* all

* nocheck
2024-09-13 23:34:36 +02:00
Ruben Fiszel e70b36ea22 handle better false values as defaultValue of appselect 2024-09-13 17:49:03 +02:00
Ruben Fiszel 11ca14a2d3 fix: add filename to s3 upload 2024-09-13 11:52:17 +02:00
HugoCasa f140daf4dc fix: update internal hub scritps to bun (#4384) 2024-09-13 11:41:58 +02:00
Ruben Fiszel a0a36a7d52 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 bb620aba24 appselect default value fix nit + editor workers are url based 2024-09-12 21:41:06 +02:00
Manuel 03a2eae49a 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 bc62930fe9 remove obsoelte flip on schemaform 2024-09-12 18:54:04 +02:00
Ruben Fiszel 7c16f2cef4 fix: tighten number input validity if min or max is set 2024-09-12 14:51:03 +02:00
Ruben Fiszel f222645dce fix: multiple secret picker candidates in resource adder 2024-09-12 13:52:16 +02:00
Ruben Fiszel 5bef077480 fix: improve password input for resources editor 2024-09-12 13:13:04 +02:00
HugoCasa 93e5ba1d16 fix(frontend): table footer display on safari (#4377) 2024-09-12 11:38:53 +02:00
Ruben Fiszel fb4c8d266a fix: improve app select propagation to list inputs in apps 2024-09-12 09:18:06 +02:00
Ruben Fiszel 0e64380473 fix: add tag_override for script in flows 2024-09-11 23:02:45 +02:00
Ruben Fiszel 042a2bf917 fix: graceful worker exits for same worker jobs (#4371)
* all

* fix compile
2024-09-11 18:32:08 +02:00
Ruben Fiszel 3e397df03e nit overflow and scrllbar height 2024-09-11 00:11:11 +02:00
Ruben Fiszel 5c7afc13e1 whileloop details in flowviewer 2024-09-10 20:52:13 +02:00
Ruben Fiszel 779a788567 nit accept underscore for flow editor 2024-09-10 20:31:12 +02:00
Ruben Fiszel a19db9a8d3 feat: add ability to edit id in flows (#4364)
* all

* all

* nit mailto

* fix

* fix
2024-09-10 20:16:43 +02:00
Henri Courdent 5dda5df77d Changelog refresh frontend (#4362) 2024-09-10 15:08:15 +02:00
Henri Courdent 516466bbda Typos frontend Instance settings (#4361) 2024-09-10 10:57:09 +02:00
Ruben Fiszel 05a6590349 custom baseUrl fixes 2024-09-09 17:20:44 +02:00
Ruben Fiszel 6b43d7e227 fix: migrate git sync to using bun based script 2024-09-09 14:31:37 +02:00
Ruben Fiszel 4a6c3c8cc5 fix: bun scripts cached in docker image have their dependencies pre-loaded 2024-09-09 13:52:12 +02:00
Ruben Fiszel f93b64be0d put sed helpers to remove anscii codes in downloaded logs 2024-09-09 10:26:17 +02:00
Ruben Fiszel 3998ecbf7b fix(cli): guide users to migrate to node version of the CLI 2024-09-07 21:27:36 +02:00
Ruben Fiszel 6f0af6b8c6 synchronize hub script is moved to new windmill cli 2024-09-07 19:05:34 +02:00
Ruben Fiszel 47f0ece8b4 migrate more to windmill-cli 2024-09-07 11:08:55 +02:00
Ruben Fiszel 593012f015 nit scrollbars 2024-09-07 01:19:20 +02:00
Ruben Fiszel 8bea2e473d fix: make select not reset on user changes in app + app css fix 2024-09-07 00:33:55 +02:00
HugoCasa dbd4292260 feat: schedule success handler (#4346) 2024-09-06 19:03:09 +02:00
Henri Courdent 112dd05c7d Workers page buttons and SSO logos (#4336)
* Workers page buttons and SSO logos

* JumpCloud typo

* Fix svg
2024-09-05 12:15:55 +02:00
Ruben Fiszel 32f2d0fc80 fix: fix error handler new script if no modules 2024-09-05 12:08:42 +02:00
Ruben Fiszel df720260b8 fix: improve app reports puppeteer interactions 2024-09-05 10:07:21 +02:00
Ruben Fiszel 3c988a517c nit file handling 2024-09-04 23:15:30 +02:00
Ruben Fiszel e30c344d32 feat: add load more to runs page if nb of jobs >= 1000 2024-09-04 22:45:35 +02:00
HugoCasa 067110e62f fix: increase AI gen timeout + upgrade to 16k gpt4o (#4340) 2024-09-04 19:33:23 +02:00
Ruben Fiszel f4446f292e nits scrollbar UX 2024-09-04 15:20:59 +02:00