Commit Graph
58 Commits
Author SHA1 Message Date
Ruben Fiszel ab3ff1d701 fix run script preview for bundle scripts 2025-04-18 19:04:02 +02:00
Ruben Fiszel 24e893b8c5 fix: flow editor workspace script test use actual workspace script hash 2025-04-16 00:44:49 +00:00
Ruben Fiszel 6682b3daa9 nit 2025-01-28 07:36:26 +01:00
HugoCasa ce9cb510f9 fix frontend checks for script and flow preview jobs (#4961) 2024-12-21 05:13:27 +09:00
Ruben Fiszel 3e46346254 nit remove getLogs 2024-09-24 19:31:51 +02:00
HugoCasaandRuben Fiszel ae8f29a4cb feat: http routing (#4339)
* feat: http routing

* all

* feat: improve UI

* final stuff

* fix: sqlx

* fix: nit

* fix: nits

* fix: error handler display

* fix: routes panel perms

* all

* fix: improve ability to paste from macos in vscode extension

* fix lock-write for deno

* all

* cleaning

* fix

* cli preprocessor

* nits

* nits

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2024-09-20 15:38:38 +02:00
pyranotaandRuben Fiszel 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 34b130d018 fix: add tag_override for script in flows 2024-09-11 23:02:45 +02:00
Ruben Fiszel aae70ac6cb feat: logs can be downloaded directly from server/frontend if using shared volume 2024-05-12 04:16:04 +02:00
Ruben Fiszel 26e1d7fd14 nits 2024-04-17 23:03:20 +02:00
Ruben Fiszel cb6efb08a2 feat: show more for logs on s3 directly possible from browser log viewer 2024-04-17 21:42:46 +02:00
Ruben Fiszel 3279996fd2 feat(frontend): fetch logs just-in-time only when necessary 2024-03-23 15:57:23 +01:00
Ruben Fiszel 66d508f3dd nit 2024-03-23 11:40:28 +01:00
Ruben Fiszel 7714221f3e feat: large log disk and distributed storage compaction 2024-03-23 10:55:29 +01:00
Ruben Fiszel 174c977dc1 fix go-client 2024-03-05 18:54:01 +01:00
Ruben Fiszel 426c2a87b5 feat: workflow as code with timelines 2024-03-05 12:45:24 +01:00
Ruben Fiszel 00c79a54ff fix: improve dev mode for flows 2024-03-01 01:12:20 +01:00
Ruben Fiszel fa9b9a0839 feat: improve runs page + add all workspaces to admins runs page 2024-02-13 10:12:14 +01:00
Ruben Fiszel ac027e7027 feat(cli): global generate-metadata + inherit deps from closest package.json/requirements.txt + bun settable as default (#3102)
* all

* rm console logs

* rm console logs

* all

* push

* push

* fixes

* fixes

* all

* all
2024-01-29 19:06:56 +01:00
35756cf411 feat(frontend): DB Explorer (#2892)
* feat(frontend): Make table cell editable

* feat(frontend): wip

* feat(frontend): wip

* feat(frontend): wip

* feat(frontend): wip

* feat(frontend): wip

* feat(frontend): wip

* feat(frontend): wip

* feat(frontend): clean up

* fix(frontend): extract db schemas

* feat(frontend): v0 done

* feat(frontend): v0 done

* feat(frontend): v0 done

* feat(frontend): fix insert

* feat(frontend): fix insert

* feat(frontend): remove temp data

* feat(frontend): align insert button to the right

* feat(frontend): rework columns

* feat(frontend): rework insert

* feat(frontend): rework insert

* feat(frontend): rework insert

* feat(frontend): rework insert

* feat(frontend): fix jsonb display

* feat(frontend): fix reloading issues

* feat(frontend): fix reloading issues

* feat(frontend): fix reacticity issue

* feat(frontend): fix insert

* feat(frontend): support nullable default value

* feat(frontend): fix build

* update

* update

* db studio v0

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2024-01-06 17:27:15 +01:00
Guillaume Bouvignies 6f2ad5f5f4 feat: Detailed job memory footprint on job run page (#2956)
* feat: Detailed job memory footprint

* Address rubens comment

* double presion -> real

* sql query returns only metric_type
2024-01-05 09:13:05 +01:00
Ruben Fiszel bc34a42727 feat: truncate logs when necessary 2023-11-17 20:22:45 +01:00
Ruben Fiszel 0e1dc1396c feat: timeline for apps (#2470)
* progress

* progress

* feat: timelnes for apps

* all
2023-10-20 01:42:27 +02:00
Ruben Fiszelandgbouv 2ee57f3f84 feat: refactor entirely json processing in favor or rawjson to handle larger payloads (#2446)
* raw json

* raw json

* raw json

* raw json

* the big rawjson rewrite

* resolve merge conflicts

* all

* progress

* progress

* all compile

* remove mut

* remove mut

* remove mut

* arc queuedjob

* finish

* finish

* finish

* fixes

* progress

* fix result

* small fixes

* small fixes

* fix tests

* fix tests

* fix tests

* optimize eval timeout

* optimize eval timeout

* optimize eval timeout

* handle big args and result in get jobs

* improve args

* fix

* fix

* fix tests

* fix tests

* done

* add bigquery to native picker

* add bigquery

---------

Co-authored-by: gbouv <guillaume@windmill.dev>
2023-10-16 10:46:55 +02:00
Faton Ramadani 19e8ea1944 fix(frontend): Fix typing (#1774)
* feat(frontend): Add documentation link in the component settings

* feat(frontend): Add missing type

* feat(frontend): fix typing errors

* feat(frontend): fix typing errors
2023-06-27 14:10:40 +02:00
Ruben Fiszel badeefe57b feat(frontend): add flowstatus and log component for apps 2023-05-21 18:37:18 +02:00
Ryan Rich e17234b700 fix(frontend): reset ui job loading state when submitting preview job triggers error (#1483)
* fix(frontend): catch errors when submitting preview job

* fix(frontend): catch errors when submitting preview job (simplified)

* fix(frontend): also reset currentId
2023-04-27 18:39:37 +02:00
Ruben Fiszel 02ba82064f feat(backend): worker groups (#1452)
* tagged scripts

* tagged scripts

* fix

* fix

* fix

* all

* update sqlx
2023-04-23 16:57:23 +02:00
Ádám KovácsandFaton Ramadani 89fc5211e0 feat(frontend): Add runs preview popup (#1405)
* feat(frontend): Add runs preview popup

* fix(frontend): Remove events from closed drawer

* remove comment

* limit open previews to one

* handle running jobs

* update styling

* position correctly

---------

Co-authored-by: Faton Ramadani <faton.ramadani14@gmail.com>
2023-04-15 08:02:04 +00:00
Ruben Fiszel 1476f559b7 feat(frontend): cancellable inline script editor run 2023-04-14 01:08:37 +02:00
Ruben Fiszel 84b696361d fix(backend): add killpill for lines reading 2023-03-10 12:04:05 +01:00
Ruben Fiszel 0ecfec2577 feat: add mem peak info 2023-02-04 20:26:15 +01:00
Ádám Kovács 9a468be88c feat(frontend): App initial loading animations (#1176)
* feat(frontend): App initial loading animations

* fix(frontend): Optional prop
2023-02-02 17:55:11 +01:00
Ruben Fiszel aeb7e6e3d8 do not cancel the job on leaving the preview page 2023-01-18 00:31:55 +01:00
Ruben Fiszel 8203edf6c1 do not cancel the job on leaving the preview page 2023-01-18 00:14:29 +01:00
Ruben Fiszel f0a52d2f59 improve job loader in case of concurrent requests 2023-01-05 05:57:22 +01:00
Ruben Fiszel bb42024556 tighten public apps security using triggerable policy 2023-01-02 18:53:10 +01:00
Ruben Fiszel 1e10057a42 make app public page not require login at all 2023-01-02 13:02:45 +01:00
Ruben Fiszel 70abadc015 improve apps wiring 2023-01-02 10:07:15 +01:00
Ruben Fiszel e9d7124739 further apps improvements 2022-12-30 11:55:06 +01:00
Faton RamadaniandRuben Fiszel 6b33b80fc4 App bugfix (#1049)
* adapt static adapter to cloudflare

* fix(frontend): Various bug fix

* fix typecheck

* numerous fixes

* fix all connects

* fix all connects

* more improvements

* more improvements

* everything work?

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2022-12-29 12:47:53 +01:00
Ruben Fiszel cc170f69d1 fix testjobloader when running many interleaving computations 2022-12-28 17:11:58 +01:00
Ruben Fiszel e74f224230 fix test just this step freeze svelte bc of transition:fade 2022-12-28 12:51:04 +01:00
Faton RamadaniandRuben Fiszel 2d55abfc44 feat(frontend): Properly support resource (#1039)
* feat(frontend): Properly support resource

* feat(frontend): remove unused import

* feat(frontend): Fix build errors

* feat(frontend): Fix table actions

* feat(frontend): Fix table parameters

* feat(frontend): Fix runnable inputs sync

* feat(frontend): Done

* fix

* fix

* feat(frontend): Fix typing issues

* feat(frontend): Fix id generation

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2022-12-23 13:42:42 +01:00
Faton Ramadani 611d90f7cb feat(frontend): Fix component synchro (#1038)
* feat(frontend): Fix component synchro

* feat(frontend): Fix isObject
2022-12-21 11:19:27 +01:00
Ruben Fiszel dbaed8e606 improve perceived performances 2022-12-12 02:05:32 +01:00
Faton Ramadani aa8b8b35fd App editor v2 (#1001)
* fix(frontend): Fix app InputValue sync

* feat(frontend): WIP

* feat(frontend): WIP

* feat(frontend): Type aligned

* feat(frontend): working

* feat(frontend): working

* feat(frontend): Fix text binding

* feat(frontend): Connect + script working

* feat(frontend): Fix reactity issues
2022-12-08 13:26:01 +01:00
Ruben Fiszel 206f7babc2 use async internval for loading logs for better handling of slow connections 2022-11-15 14:18:10 +01:00
Faton Ramadani 31f6e47390 fix(frontend): App Editor v0 (#886) 2022-11-14 17:30:49 +01:00
Ruben Fiszel cd8d0e5ea6 feat: deprecate previous_result in favor of results per id 2022-11-10 01:58:52 +01:00