Compare commits

...

511 Commits

Author SHA1 Message Date
Ruben Fiszel
240a96d4f1 chore(main): release 1.333.4 (#3775)
* chore(main): release 1.333.4

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-20 23:30:48 +02:00
Ruben Fiszel
b2958be7c1 fix(cli): make bun the default language in absence of wmill defaultTs 2 2024-05-20 23:27:08 +02:00
Ruben Fiszel
158be28a52 chore(main): release 1.333.3 (#3774)
* chore(main): release 1.333.3

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-20 23:16:05 +02:00
Ruben Fiszel
fbfad5e654 update git sync hub script 2024-05-20 23:15:05 +02:00
Ruben Fiszel
83990869bc fix(cli): make bun the default language in absence of wmill defaultTs 2024-05-20 23:09:38 +02:00
Ruben Fiszel
8cee11e32c use jemalloc for normal ee 2024-05-20 20:03:01 +02:00
Ruben Fiszel
0d78a31415 nit compile 2024-05-20 19:45:00 +02:00
Ruben Fiszel
e7e7360259 chore(main): release 1.333.2 (#3772)
* chore(main): release 1.333.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-20 19:19:42 +02:00
d10sfan
a3d81dfdce AgGrid - Allow to de-select all rows with setSelectedIndex (#3760)
* AgGrid - Allow to de-select all rows with setSelectedIndex

* Update frontend/src/lib/components/apps/components/display/table/AppAggridTable.svelte

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>

* Else & check for null instead of -1

---------

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2024-05-20 18:59:56 +02:00
Ruben Fiszel
da091cbad7 only enable profiling if env variable is present 2024-05-20 18:57:26 +02:00
Ruben Fiszel
f451748faa allow dynamic heap profiling using jemalloc live prof_active 2024-05-20 18:44:03 +02:00
Faton Ramadani
ccc2699d4e fix(frontend): fix AgGrid pagination refresh (#3773)
* feat(frontend): fix AgGrid pagination refresh

* feat(frontend): fix AgGrid pagination refresh
2024-05-20 15:25:18 +02:00
Ruben Fiszel
73ddc46ce7 chore(main): release 1.333.1 (#3771)
* chore(main): release 1.333.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-20 12:35:28 +02:00
Ruben Fiszel
d167053878 remove extra tracing 2024-05-20 12:34:15 +02:00
Ruben Fiszel
cd8b14a2fa further memory reduction 2024-05-20 11:38:11 +02:00
Ruben Fiszel
46c440f41a use RawValue for Flow value and hub script schema 2024-05-20 10:45:52 +02:00
d10sfan
158a83b0a9 Add support for form schema property setting textarea rows value (#3759) 2024-05-20 10:24:46 +02:00
Ruben Fiszel
f1bb7cfcbd fix(backend): improve memory usage by making schema RawValue instead of serde_json::Value 2024-05-20 10:11:47 +02:00
Ruben Fiszel
4a49dc6df4 chore(main): release 1.333.0 (#3769)
* chore(main): release 1.333.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-19 22:31:57 +02:00
Ruben Fiszel
f63c8349f4 sleep handle f64 2024-05-19 22:21:18 +02:00
Ruben Fiszel
5eeadb9240 handle early stop for simple flows 2024-05-19 22:07:06 +02:00
Ruben Fiszel
7a1808e951 feat: reduce memory usage (#3768)
* all

* all

* optimize deserialize

* all

* all

* fix issue

* fix compile

* fix compile

* fix compile

* fix compile

* fix compile

* fix compile

* fix compile

* fix compile

* fix compile

* fix compile
2024-05-19 21:58:38 +02:00
Ruben Fiszel
03519f5cac chore(main): release 1.332.1 (#3766)
* chore(main): release 1.332.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-18 10:12:45 +02:00
Ruben Fiszel
32bf061627 fix(cli): improve handling of schema for script bundles 2024-05-18 10:00:19 +02:00
HugoCasa
f0b3527e53 fix(frontend): improve json display for large table objects (#3765)
* fix(frontend): fix check for displaying table-col

* fix: improve display result json limit for tables

* fix: nit

* Update frontend/src/lib/components/DisplayResult.svelte

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>

* fix: nit

---------

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2024-05-17 18:45:13 +02:00
Ruben Fiszel
ed54974ebd chore: fix tag_latest to wait for build 2024-05-17 01:05:50 +02:00
Ruben Fiszel
583e132da9 chore(main): release 1.332.0 (#3755)
* chore(main): release 1.332.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-17 00:35:22 +02:00
Faton Ramadani
e11a3751c3 feat(frontend): Fix App Select component initial value (#3752)
* feat(frontend): Fix App Select component initial value

* Update AppSelect.svelte

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2024-05-17 00:31:32 +02:00
Ruben Fiszel
2b06d9ae79 fix: fix args interpolation for tag and concurrency key for non string values 2024-05-17 00:27:38 +02:00
Ruben Fiszel
de4e1d82a8 chore(main): release 1.331.2 (#3754)
* chore(main): release 1.331.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-16 23:46:36 +02:00
Ruben Fiszel
9e86177142 fix: improve support for non existing key in concurrency_key table 2024-05-16 23:43:30 +02:00
Ruben Fiszel
5d110bbf8b chore(main): release 1.331.1 (#3753)
* chore(main): release 1.331.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-16 21:41:32 +02:00
Ruben Fiszel
812575bbe5 jemalloc image 2024-05-16 21:38:17 +02:00
Ruben Fiszel
27d5cd00a3 nits 2024-05-16 20:34:15 +02:00
HugoCasa
f3b8e01981 fix(backend): prevent immediate cancellation of the error handler when a job is forcibly cancelled (#3751) 2024-05-16 16:53:27 +02:00
HugoCasa
2da00f19af fix(frontend): improve queue metrics graphs performance (#3749)
* fix(frontend): improve queue metrics graphs performance

* fix: check
2024-05-16 16:47:39 +02:00
Ruben Fiszel
ac0a397e76 chore(main): release 1.331.0 (#3737)
* chore(main): release 1.331.0

* Apply automatic changes

* Update CHANGELOG.md

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-15 21:06:57 +02:00
wendrul
d3942097df Add concurrency limits observability (#3586)
* Add concurrency_key table and field to payload

Add a new table custom_concurrency_key for storing concurrency keys on a
per job basis. Add the field to the job payload to populate the table on
creation of a new job.

* Rename to custom_concurrency_key

Be more explicit about the nature of the option variable by calling it
a more appropriate name.

* Delete concurrency_keys on delete_expire_items

* Propagate db errors up

* Add ref to EE changes

* update sqlx

* Add concurrency_key to tests

* Revert renaming of FlowValue field

FlowValue field concurrency_key must be named concurrency_key for
serialization purposes.

* Remove debug print statement

* Get concurrency_key from Job

Whether it is a Completed job or a queued one, add a ways to get the
associated concurrency key

* Add endpoint to get concurrency_key

* Add endpoint and button to get job concurrency_key

Add a line with a link on the FlowMetadata that goes to the
concurrency_groups page. add endpoint to get the concurrency_key of a
job

* Merge concurrency_key tables into one

migration + change all related querrys

* Add concurrency plot to the runs page

* Prepare sqlx

* Add concurrency Key filter on UI

* Prepare sqlx

* Prepare sqlx

* Fix filter and order query

The limit makes more sense if we cut the older rows, so order by
started_at

* Factor interpolation to reuse on concurrency key

Factor the arg interpolation logic into a function and finish the
processing of concurrency key before insertion

* Remove old concurrency key processing logic

* Second transaction with userdb

To send all concurrency intervals but revealing only uuids of accessible
jobs, make a second transaction with the userdb.

* Remove old second endpoint

the intervals endpoint now also gets the concurrencyt key information
for all jobs

* Show external jobs

* Put filters into a dropdown

Create a ToggleButtonMore and put elements into a dropdown

* Add toggle between two graphs

* Add filter functionality to concurrency graph

* Improve concurrency graph front

* Fix concurrency groups page

* Prepare sqlx

* Add ref to ee

* Change migration to create new table instead

Instead of renaming the custom_concurrency_key_ended atble, we create a
new table and we will delete custom_concurrency_key_ended in the future
when it is no longer linked to any jobs

* Do small UI improvements

* Fix range fusion by not filtering past jobs

Instead of filtering jobs in the backend on a startedAfter value, limit
the query to 1000 and query all possible towards the past to get a good
context for the graph in most sane situations

* Improve frontend UI
2024-05-15 20:15:14 +02:00
Faton Ramadani
cadc758fc7 feat(frontend): add nullable arg (#3729)
* feat(frontend): add nullable arg

* feat(frontend): Limit nullable toggle for strings and numbers

* feat(frontend): Limit nullable toggle to strings

* feat(frontend): fix validation

* feat(frontend): Disable nullable when required + add missing config in script editor
2024-05-15 17:30:40 +02:00
Ruben Fiszel
b0a33df362 fix workspace redirect bug 2024-05-15 16:20:02 +02:00
Faton Ramadani
0191dca347 feat(frontend): Add context section (#3745)
* feat(frontend): Add context section

* feat(frontend): Add missing tooltip
2024-05-15 16:09:48 +02:00
Lucian Buzzo
9d0f643dfd fix: resolve typo in bun_executor.rs error message (#3744) 2024-05-15 15:30:26 +02:00
Faton Ramadani
6ff6a603f7 feat(frontend): full height component (#3676)
* feat(frontend): wip

* feat(frontend): Full Height component

* feat(frontend): wip

* feat(frontend): add fullHeight indicator

* feat(frontend): add indicator for component that won't render

* feat(frontend): update collision algo

* fix(frontend): Full height component done

* fix(frontend): Remove the hidden check from preview

* feat(frontend): code cleanup

* feat(frontend): code cleanup

* feat(frontend): code cleanup

* feat(frontend): code cleanup

* feat(frontend): Fix height issue + fix toggle display

* feat(frontend): Fix insertNewGridITem

* feat(frontend): code cleanup

* feat(frontend): mobile fullHeigt

* feat(frontend): fix wording

* feat(frontend): add missing constants

* feat(frontend): fix typo

* feat(frontend): remove dead code

* feat(frontend): improve the structure

* feat(frontend): done

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2024-05-15 14:52:05 +02:00
Ruben Fiszel
001c010974 Revert "fix(backend): remove email constraints from DB (#3739)" (#3743)
This reverts commit fa6c531fda.
2024-05-15 14:45:11 +02:00
HugoCasa
fa6c531fda fix(backend): remove email constraints from DB (#3739)
* fix(backend): allow underscore in email domain name

* fix: remove email constraint
2024-05-15 14:43:36 +02:00
HugoCasa
bcefc20d34 fix(frontend): improve auto data table headers when array of arrays (#3738) 2024-05-15 12:29:31 +02:00
HugoCasa
db143c38b1 fix(frontend): rename correctly delete workspace button (#3736) 2024-05-15 11:55:50 +02:00
HugoCasa
428697782e fix(cli): add php support for the cli (#3735) 2024-05-15 11:49:47 +02:00
Ruben Fiszel
5e0259531e chore(main): release 1.330.1 (#3733)
* chore(main): release 1.330.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-15 10:35:42 +02:00
HugoCasa
14e9c22c07 fix: php worker tag migration (#3732) 2024-05-15 10:24:50 +02:00
Ruben Fiszel
da4e5ccca3 chore(main): release 1.330.0 (#3731)
* chore(main): release 1.330.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-15 08:30:25 +02:00
HugoCasa
6e805d8252 feat: add php (#3725)
* feat: add php

* fix: nsjail + frontend build
2024-05-15 08:12:11 +02:00
Ruben Fiszel
4c70c6a4e6 fix: remove schemas from typescript client 2024-05-15 08:10:29 +02:00
Ruben Fiszel
1cf0bda6d2 fix(bun): improve relative path type assistant in monaco for bun 2024-05-15 07:58:01 +02:00
Ruben Fiszel
a807fd03a3 chore(main): release 1.329.0 (#3722)
* chore(main): release 1.329.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-15 06:33:47 +02:00
Ruben Fiszel
503659b36a improve agcharts2 2024-05-15 06:30:42 +02:00
Ruben Fiszel
1fdbc64fe5 fix: fix agchart rendering 2024-05-15 06:27:34 +02:00
Ruben Fiszel
c044d188da nit workspace selection 2024-05-15 06:11:44 +02:00
Ruben Fiszel
28cc563df8 fix: improve display result output limit 2024-05-15 05:59:31 +02:00
Ruben Fiszel
d99f83015a improve log display 2024-05-14 23:22:11 +02:00
Faton Ramadani
86d958e7ed feat(frontend): Add date format (#3675)
* feat(frontend): Add date format

* feat(frontend): Add date format

* feat(frontend): add missing case

* feat(frontend): add date format

* fix(frontend): added missing tooltip + added default value to the date component
2024-05-14 22:15:16 +02:00
wendrul
b656236af7 Use userDB instead of DB (#3723) 2024-05-14 22:14:12 +02:00
Ruben Fiszel
6fe050b8c5 feat: improve log storage + expand all logs in a flow 2024-05-14 22:11:52 +02:00
Faton Ramadani
da5eabdfbf fix(frontend): Fix FileInput state when hidden (#3730) 2024-05-14 17:12:09 +02:00
Ruben Fiszel
b1a13bea20 fix: bun loader with nsjail 2024-05-14 01:17:13 +02:00
Ruben Fiszel
c3fb407c7d chore(main): release 1.328.0 (#3716)
* chore(main): release 1.328.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-13 22:52:57 +02:00
Faton Ramadani
ef0eba7c33 fix(frontend): fix slider component styling (#3720) 2024-05-13 22:48:23 +02:00
Ruben Fiszel
e21ac60547 fix: fix edit button on script row 2024-05-13 22:47:00 +02:00
HugoCasa
c883db3101 feat(frontend): allows to specify column order for rich display (#3709)
* feat(frontend): allows to specify column order for rich display

* patch: rename table-cell to table-row-object

* fix: nested table row object
2024-05-13 18:08:37 +02:00
Ruben Fiszel
79370535f4 chore(main): release 1.327.0 (#3715)
* chore(main): release 1.327.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-13 08:30:37 +02:00
Ruben Fiszel
8b21f0812c feat: nativets can use the wmill library + setClient not required anymore (#3714)
* all

* all

* all

* all
2024-05-13 08:26:03 +02:00
Ruben Fiszel
a60bc82bd6 chore(main): release 1.326.1 (#3712)
* chore(main): release 1.326.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-12 21:23:23 +02:00
Ruben Fiszel
2e2ebf6235 fix jsr publish 2024-05-12 21:16:02 +02:00
Ruben Fiszel
d4426cf16b improve empty resource types instructions 2024-05-12 21:07:23 +02:00
Ruben Fiszel
e2991ef923 fix: un-inline monaco editor workers for faster initial load 2024-05-12 17:43:55 +02:00
Ruben Fiszel
b7bacd5491 chore(main): release 1.326.0 (#3711)
* chore(main): release 1.326.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-12 04:32:14 +02:00
Ruben Fiszel
a3a66d0577 feat: logs can be downloaded directly from server/frontend if using shared volume 2024-05-12 04:16:04 +02:00
Ruben Fiszel
a3be6e9a1d ux nits 2024-05-11 18:27:11 +02:00
Ruben Fiszel
89846cbbbe chore(main): release 1.325.2 (#3710)
* chore(main): release 1.325.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-11 02:48:14 +02:00
Ruben Fiszel
12e302a309 fix: improve status exit dedicated workers 2024-05-11 02:44:49 +02:00
Ruben Fiszel
f835ce24f8 chore(main): release 1.325.1 (#3708)
* chore(main): release 1.325.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-11 02:26:37 +02:00
Ruben Fiszel
87add79de2 fix: improve nodejs mode after esm update 2024-05-11 02:15:28 +02:00
Ruben Fiszel
d0a6ddab94 fix(cli): support whileloop in flow cli sync 2024-05-11 02:06:14 +02:00
Ruben Fiszel
306007c3fe nit concat oauth fix 2024-05-11 00:54:38 +02:00
Ruben Fiszel
447e2d7742 fix: selectedRow for a table is set on table actions 2024-05-11 00:47:52 +02:00
Ruben Fiszel
251e6c35f4 app nits 2024-05-10 23:56:55 +02:00
Ruben Fiszel
5adfc748b8 chore(main): release 1.325.0 (#3707)
* chore(main): release 1.325.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-10 21:02:21 +02:00
HugoCasa
696a5612f8 feat: worker metrics (#3697)
* feat: worker metrics

* fix: limit worker metrics to superadmin

* fix: limit worker metrics to superadmin + feat: queue metrics charts

* fix: improve graphs
2024-05-10 20:50:09 +02:00
HugoCasa
67f4a4afee fix(backend): return flow result if flow fails or stops before early return (#3704)
* fix: return error if flow fails before early return

* fix: also handle early stop

* fix: improve code
2024-05-10 20:23:16 +02:00
Ruben Fiszel
bb8af8fa98 chore(main): release 1.324.2 (#3699)
* chore(main): release 1.324.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-10 01:48:01 +02:00
Ruben Fiszel
20dfbda69e fix: fix build 2024-05-10 01:24:46 +02:00
Ruben Fiszel
4c927865ef fix compile 2024-05-09 23:42:17 +02:00
Ruben Fiszel
15a160ea96 chore(main): release 1.324.1 (#3698)
* chore(main): release 1.324.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-09 19:39:14 +02:00
Ruben Fiszel
252ac18d47 fix(cli): narrow codebases to bun 2024-05-09 19:30:15 +02:00
Ruben Fiszel
b5e3d8fdc3 chore(main): release 1.324.0 (#3666)
* chore(main): release 1.324.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-09 18:53:46 +02:00
Ruben Fiszel
b06c72a5d5 fix(cli): add excludes to the codebase conf 2024-05-09 18:52:38 +02:00
Ruben Fiszel
11b3ea3ac8 feat: local typescript codebase as bundle (#3694)
* codebases

* codebases

* foo

* foo

* foo

* foo

* fix(frontend): Disable the insert button when required fields are empty strings (#3659)

* fix(frontend): use normal password mask for the sensitive fields of the resource editor

* handle super admins in password arg input

* chore(main): release 1.323.2 (#3660)

* chore(main): release 1.323.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>

* foo

* all

* s3_helpers move

* progress

* all

* progress

* progress

* progress

* progress

* codebase final

* update without ee

* sqlx

* all

* all

* all

* all

* all

* all

* all

* all

* all

* all

* all

* all

* all

* all

* all

* update

* all

* all

* all

---------

Co-authored-by: Faton Ramadani <faton.ramadani14@gmail.com>
Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-09 18:35:50 +02:00
Faton Ramadani
49867c06e6 feat(frontend): add missing date in the previous run panel (#3693) 2024-05-09 02:49:30 +02:00
Faton Ramadani
630ae7ec4b feat(frontend): Add a button tocopy the path of a subflow (#3691) 2024-05-08 14:36:33 +02:00
HugoCasa
285967ae66 chore: upgrade bun to 1.1.7 (#3689) 2024-05-08 14:35:58 +02:00
HugoCasa
d1f58f1037 fix: load large args of previous runs dynamically (#3688)
* fix: load large args of previous runs dynamically

* fix: lower limit size
2024-05-08 14:35:37 +02:00
Faton Ramadani
ee2a193958 feat(frontend): Improve app components (#3672)
* fix(frontend): wip

* fix(frontend): wip

* fix(frontend): improve components

* fix(frontend): improve components

* fix(frontend): improve ranges

* fix(frontend): fix build
2024-05-07 18:04:12 +02:00
HugoCasa
010662d3d0 fix: can cancel only if can disable schedule + stop worker on force cancel + soft cancel job parent on job cancel (#3670)
* fix: can cancel only if can disable schedule + stop worker on force cancel + cancel job parents

* fix: sqlx build

* fix: flow reschedule check + soft cancel only direct parent

* fix: sqlx prepare

* fix: only soft cancel parent if force cancel and job is a flow step
2024-05-07 17:17:43 +02:00
HugoCasa
cd1711cf03 feat: disable response logs based on env var (#3685) 2024-05-07 15:57:41 +02:00
Ruben Fiszel
1795522d2e minor cli improvements 2024-05-06 16:36:27 +02:00
Faton Ramadani
47ee6c9099 fix(frontend): Fix subflow viewer (#3674)
* fix(frontend): Fix subflow viewer

* fix(frontend): Fix subflow viewer
2024-05-06 14:03:16 +02:00
Ruben Fiszel
0175f90d8d nit disablable fields preview 2024-05-04 17:36:04 +02:00
Ruben Fiszel
ea4165d58b fix: improve conditional wrapper for app editor 2024-05-04 10:59:38 +02:00
Ruben Fiszel
7e44885dc3 update typescript openapi generator 2024-05-03 12:54:00 +02:00
Ruben Fiszel
33d4bf05d7 nit UX 2024-05-03 09:44:16 +02:00
Ruben Fiszel
4f3c28c810 increase max worker connections to 5 2024-05-03 08:39:51 +02:00
HugoCasa
c1a4a82843 feat: import export all worker groups config (#3667) 2024-05-02 21:45:07 +02:00
HugoCasa
29b1e6f6a2 feat: critical error side channel (#3625)
* feat: critical error side channel

* feat: trigger workspace error handler or critical channel on schedule error handling failure

* fix: build

* feat: finish critical error side channel

* feat: channels instead of just emails + move to EE

* fix: remove superfluous func

* fix: nits + ee ref

* fix: open source build

* fix: nits

* chore: update ee ref
2024-05-02 20:21:23 +02:00
Ruben Fiszel
5d468d4f27 chore(main): release 1.323.6 (#3665)
* chore(main): release 1.323.6

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-02 19:46:39 +02:00
Faton Ramadani
5bae66aec3 fix(frontend): Handle empty error message in toast + hide GridEditorM… (#3664)
* fix(frontend): Handle empty error message in toast + hide GridEditorMenu when the component is not visible

* fix(frontend): Handle empty error message in toast + hide GridEditorMenu when the component is not visible

* fix(frontend): use the right id
2024-05-02 19:09:45 +02:00
Ruben Fiszel
2bb7bd5549 improve expr interpreter for flows to handle results?.X 2024-05-02 11:51:52 +02:00
Ruben Fiszel
718fcca51a fix test lint issues 2024-05-02 11:23:39 +02:00
Ruben Fiszel
4015192a29 fix test lint issues 2024-05-02 10:54:51 +02:00
Ruben Fiszel
eb8e80a146 box flowmodulestatus to reduce stack allocation of flowvalue 2024-05-02 10:28:04 +02:00
Ruben Fiszel
98b65ed231 box flowmodule to reduce stack allocation of flowvalue 2024-05-02 10:06:16 +02:00
Ruben Fiszel
b2d9f7d717 add cloud compile flag 2024-05-02 09:39:40 +02:00
Ruben Fiszel
4f8d442479 chore(main): release 1.323.5 (#3663)
* chore(main): release 1.323.5

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-02 01:20:36 +02:00
Ruben Fiszel
caa11c6506 fix: re-release nit 2024-05-02 01:10:41 +02:00
Ruben Fiszel
bbbeca4d49 chore(main): release 1.323.4 (#3662)
* chore(main): release 1.323.4

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-02 00:49:18 +02:00
Ruben Fiszel
f3ac6bfd7a improve runs nit UX 2024-05-02 00:48:15 +02:00
Ruben Fiszel
774a35f223 fix: improve schedule editor UX 2024-05-02 00:42:50 +02:00
Ruben Fiszel
882c28fbe2 refactor workspace error handler 2024-05-01 23:48:23 +02:00
Ruben Fiszel
96760b2964 fix: handle list of errors for schedule error handler 2024-05-01 23:17:34 +02:00
Ruben Fiszel
7aa4561ae1 chore(main): release 1.323.3 (#3661)
* chore(main): release 1.323.3

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-01 21:26:45 +02:00
Ruben Fiszel
0855cdd946 fix: add WM_WORKER_GROUP to get worker group from script 2024-05-01 21:22:53 +02:00
Ruben Fiszel
28cc826104 add github=>pygithub remapping 2024-05-01 21:02:02 +02:00
Ruben Fiszel
bf99cd7548 chore(main): release 1.323.2 (#3660)
* chore(main): release 1.323.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-01 20:31:18 +02:00
Ruben Fiszel
6c3f6c0b09 handle super admins in password arg input 2024-05-01 20:28:05 +02:00
Ruben Fiszel
c8b439df5b fix(frontend): use normal password mask for the sensitive fields of the resource editor 2024-05-01 20:26:50 +02:00
Faton Ramadani
7df4f02529 fix(frontend): Disable the insert button when required fields are empty strings (#3659) 2024-05-01 17:30:43 +02:00
Ruben Fiszel
a4dcd62cb9 chore(main): release 1.323.1 (#3657)
* chore(main): release 1.323.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-01 14:44:49 +02:00
Faton Ramadani
92492ab6b7 fix(frontend): Restore AgGrid borders and remove the outer border pro… (#3658)
* fix(frontend): Restore AgGrid borders and remove the outer border properly. Improve the active color in both themes.

* fix(frontend): Restore AgGrid borders and remove the outer border properly. Improve the active color in both themes.

* fix(frontend): Remove old comment
2024-05-01 14:42:26 +02:00
Ruben Fiszel
54acc22a27 fix(cli): improve generate metadata lock for new scripts 2024-05-01 14:41:53 +02:00
Faton Ramadani
2b3473093a fix(frontend): improve default select styling for apps (#3656)
* fix(frontend): improve select

* fix(frontend): update border-radius

* fix(frontend): update border-radius
2024-05-01 13:25:34 +02:00
Ruben Fiszel
3aeb27bcb1 chore(main): release 1.323.0 (#3654)
* chore(main): release 1.323.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-01 11:00:23 +02:00
Ruben Fiszel
e3afdb1bfe fix resource picker not displayed picked resource in some cases for schedule editor 2024-05-01 10:57:22 +02:00
Ruben Fiszel
d96c6e41ca tablecomponent added last (#3655)
* tablecomponent_legacy

* Update sets.ts
2024-05-01 10:29:06 +02:00
Faton Ramadani
ca209e9c48 fix(frontend): sync columnDefs + improve columnDefs management (#3632)
* fix(frontend): sync columnDefs + improve columnDefs management

* fix(frontend): sync columnDefs + improve columnDefs management

* fix(frontend): improve code quality

* fix(frontend): improve code quality

* fix(frontend): remove useless warning while the config is loading

* fix(frontend): Disable actions for database studio, since columnDefs are managed by the component

* feat(frontend): Fix Database studio

* feat(frontend): revert changes from Database Studio

* feat(frontend): fix DB Studio refresh

* fix(frontend): improve code quality

* fix(frontend): improve code quality

* fix(frontend): fix build

* fix(frontend): fix wording

* fix(frontend): fix aggrid
2024-05-01 10:25:48 +02:00
Faton Ramadani
aa6204ff99 fix(frontend): improve result, flow status and log components (#3653) 2024-05-01 10:25:06 +02:00
Faton Ramadani
790f263e56 feat(frontend): Improve inputs (#3651)
* fix(frontend): Improve AgGrid Infinite table default codes + deprecated table + improve AutoDatatable

* fix(frontend): Handle undefined rowCount

* fix(frontend): Improve Ag Grid footer

* fix(frontend): Improve Deprecated badge

* fix(frontend): Improve inputs

* fix(frontend): revert select
2024-05-01 10:24:08 +02:00
Faton Ramadani
d7d2f03e23 fix(frontend): remove red from autodatable badges (#3652) 2024-05-01 10:23:52 +02:00
Ruben Fiszel
017710f17d improve bun dedicated worker to use nodejs 2024-05-01 02:10:58 +02:00
Ruben Fiszel
b854165b0d migrate bun dedicated worker to readline 2024-05-01 00:38:16 +02:00
Ruben Fiszel
d0ffcc3f6f print lines for dedicated worker in debug mode 2024-04-30 23:48:21 +02:00
Ruben Fiszel
1eeaa277f0 add base_internal_url to dedicated python workers 2024-04-30 22:48:40 +02:00
Ruben Fiszel
8997e3c041 chore(main): release 1.322.0 (#3650)
* chore(main): release 1.322.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-30 22:07:09 +02:00
HugoCasa
df586fc68e feat: import export worker group config (#3649) 2024-04-30 22:03:48 +02:00
Ruben Fiszel
0b23d90f60 fix: improve password ui 2024-04-30 22:01:19 +02:00
Ruben Fiszel
fa62a93c9f add stderr to debug log of dedicated workers 2024-04-30 21:10:05 +02:00
Ruben Fiszel
eb873c6119 more logs for dedicated workers 2024-04-30 17:19:34 +02:00
Ruben Fiszel
dec93126a1 chore(main): release 1.321.6 (#3645)
* chore(main): release 1.321.6

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-30 16:23:45 +02:00
Ruben Fiszel
ba771b294b small error clearing fix 2024-04-30 16:07:14 +02:00
Ruben Fiszel
c1f582f6e4 fix: fix aggrid table actions 2024-04-30 15:33:25 +02:00
Ruben Fiszel
0cd7ab4c72 chore(main): release 1.321.5 (#3642)
* chore(main): release 1.321.5

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-30 11:28:14 +02:00
Ruben Fiszel
cf6ffef48a fix(python): supports folders starting with numbers for execution 2024-04-30 11:23:48 +02:00
Ruben Fiszel
450201deb8 fix: prevent overflowing for long description and default in schema 2024-04-30 11:10:27 +02:00
Ruben Fiszel
1f983c2414 fix: fix console logs in REST scripts 2024-04-30 10:46:20 +02:00
Ruben Fiszel
ae165b9f87 fix: make sure folder updater keep write permissions if not admin 2024-04-30 10:20:51 +02:00
Ruben Fiszel
558160ecf9 allow breakline in arginput description 2024-04-30 02:28:33 +02:00
Ruben Fiszel
1ad7b723a0 chore(main): release 1.321.4 (#3640)
* chore(main): release 1.321.4

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-30 01:53:10 +02:00
Ruben Fiszel
53157262bd fix(cli): handle better missing lockfile for generating metadata 2024-04-30 01:49:35 +02:00
Ruben Fiszel
87f6f7503b chore(main): release 1.321.3 (#3639)
* chore(main): release 1.321.3

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-30 01:38:06 +02:00
Ruben Fiszel
959ae8d252 fix(cli): skip deleting script when lockfile delete 2024-04-30 01:35:05 +02:00
Ruben Fiszel
8f3944433e chore(main): release 1.321.2 (#3638)
* chore(main): release 1.321.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-30 01:21:54 +02:00
Ruben Fiszel
7b55e5219c use latest hub sync 2024-04-30 01:21:37 +02:00
Ruben Fiszel
b7f9ecbda1 fix(cli): improve lockfile support on cli 2024-04-30 01:16:37 +02:00
Ruben Fiszel
35b2423fe1 fix(cli): improve lockfile support on cli 2024-04-30 01:12:26 +02:00
Ruben Fiszel
05e70a849e fix(cli): improve lockfile support on cli 2024-04-30 00:59:19 +02:00
Ruben Fiszel
196de08775 chore(main): release 1.321.1 (#3637)
* chore(main): release 1.321.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-30 00:12:15 +02:00
Henri Courdent
578412978f Changelog CLI (#3634) 2024-04-30 00:12:04 +02:00
HugoCasa
f6e8f45af1 fix: pg types conversion dbstudio (#3636) 2024-04-29 22:34:43 +02:00
Ruben Fiszel
ca49e273de fix decision tree initial rendering 2024-04-29 21:46:22 +02:00
Ruben Fiszel
39e1ea3d57 chore(main): release 1.321.0 (#3633)
* chore(main): release 1.321.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-29 12:17:51 +02:00
HugoCasa
3956d012ad feat: add resource and variable picker for rest scripts (#3628)
* feat: add resource and variable picker for rest scripts

* feat: add reserved variables to rest scripts
2024-04-29 12:13:21 +02:00
HugoCasa
b5297846fe fix: toggle comment shortcut on some EU keyboards (#3630) 2024-04-29 12:13:12 +02:00
Ruben Fiszel
0e022c9e4e fix(python-client): improve error message for wait_job 2024-04-29 12:10:29 +02:00
Ruben Fiszel
3c79692559 chore(main): release 1.320.3 (#3629)
* chore(main): release 1.320.3

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-28 16:14:51 +02:00
Ruben Fiszel
08c863afd3 bump latest hub script 2024-04-28 16:10:46 +02:00
Ruben Fiszel
82e628a111 fix(cli): improve support for frontend scripts cli sync 2024-04-28 16:10:16 +02:00
Ruben Fiszel
c98dbb1fc4 chore(main): release 1.320.2 (#3627)
* chore(main): release 1.320.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-28 15:28:29 +02:00
Ruben Fiszel
e8dcd5b495 fix: bump git sync script version 2024-04-28 15:25:10 +02:00
Ruben Fiszel
9cf82b061e chore(main): release 1.320.1 (#3626)
* chore(main): release 1.320.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-28 15:21:06 +02:00
Ruben Fiszel
0fcd54bc07 fix: add button to easily bump git sync version 2024-04-28 15:17:56 +02:00
Ruben Fiszel
0a1006aa87 chore(main): release 1.320.0 (#3624) 2024-04-28 14:58:05 +02:00
Ruben Fiszel
22226e883e feat(cli): split inline sscripts for apps like for flows 2024-04-28 14:55:33 +02:00
Ruben Fiszel
c39f3a84d6 feat(cli): split lockfiles from script metadata 2024-04-28 12:29:06 +02:00
Ruben Fiszel
6c69889874 feat(cli): use separate lockfiles for rawscipt of flows 2024-04-28 02:15:31 +02:00
Ruben Fiszel
0d27df3dec update cli code 2024-04-27 18:54:10 +02:00
Ruben Fiszel
982c4c439e chore(main): release 1.319.1 (#3622)
* chore(main): release 1.319.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-26 21:25:57 +02:00
Ruben Fiszel
3875eec46f fix: improve dnd on app editor for large screens 2024-04-26 21:17:26 +02:00
Ruben Fiszel
3a5c925c99 update to bun 1.1.5 2024-04-26 20:55:15 +02:00
Ruben Fiszel
9668198f4b chore(main): release 1.319.0 (#3619)
* chore(main): release 1.319.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-26 18:29:07 +02:00
Ruben Fiszel
41f6bcdaa1 fix: make configurable footer for aggrid in apps 2024-04-26 18:25:26 +02:00
Ruben Fiszel
06aa0aa9f9 allow other cell renderer for aggrid 2024-04-26 18:19:22 +02:00
Ruben Fiszel
327be5bbc6 nits autodatatable 2024-04-26 16:57:37 +02:00
Henri Courdent
9d38c8c45f Changelog 04 26 (#3621) 2024-04-26 14:13:38 +02:00
Ruben Fiszel
de2bea613a rm go bin if cloud hosted 2024-04-26 13:42:24 +02:00
Ruben Fiszel
e3869693ec rm go bin if cloud hosted 2024-04-26 13:40:52 +02:00
HugoCasa
fee22fc060 feat: pg add json support (#3620) 2024-04-26 13:28:15 +02:00
Ruben Fiszel
c58342ddfd fix backend tests 2024-04-26 13:27:24 +02:00
Ruben Fiszel
035bacb8a7 improve select resiliency 2024-04-26 11:47:55 +02:00
Ruben Fiszel
45cad34222 small fixes 2024-04-26 11:38:44 +02:00
Ruben Fiszel
c73e7dbd8c feat: add distributed global cache for go 2024-04-26 11:31:21 +02:00
Ruben Fiszel
4188383d3e feat: add distributed global cache for go 2024-04-26 11:31:21 +02:00
wendrul
edff51f022 Add actions to publish to JSR (#3618)
add it to change-version.sh and publish action
2024-04-26 11:18:46 +02:00
Ruben Fiszel
a2c780bc8e chore(main): release 1.318.0 (#3611)
* chore(main): release 1.318.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-26 09:10:56 +02:00
Ruben Fiszel
094f50cdcc publish to jsr2 2024-04-25 19:08:21 +02:00
Ruben Fiszel
08918ec5f2 publish to jsr2 2024-04-25 18:12:01 +02:00
wendrul
03b1abc840 Add publish to jsr scripts (#3614)
* Add publish to jsr scripts

* Remove tsc logic for jsr build and publish
2024-04-25 17:58:42 +02:00
Henri Courdent
770f4471b5 Rich result buttons (#3485)
* Rich result buttons

* Fix rich result button

* feat(frontend): improve rich display buttons

* Icon to monitor

* Custom tooltip

* End Monitor

* Tooltip file fixed

---------

Co-authored-by: Faton Ramadani <faton.ramadani14@gmail.com>
Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2024-04-25 17:49:46 +02:00
HugoCasa
5def8cb52c fix: support all pg types from db studio (#3613)
* fix: support all pg types from db studio

* chore: parser pkg frontend update
2024-04-25 17:32:06 +02:00
HugoCasa
c09ae3ebc6 feat: app select policy (#3610)
* feat: app select policy

* fix: question marks
2024-04-25 17:21:00 +02:00
Faton Ramadani
f26d3e62f6 fix(frontend): Improve AgGrid Infinite table default codes + deprecat… (#3609)
* fix(frontend): Improve AgGrid Infinite table default codes + deprecated table + improve AutoDatatable

* fix(frontend): Handle undefined rowCount

* fix(frontend): Improve Ag Grid footer

* fix(frontend): Improve Deprecated badge
2024-04-25 15:06:58 +02:00
Ruben Fiszel
f20a4a626d chore(main): release 1.317.1 (#3608)
* chore(main): release 1.317.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-24 23:55:50 +02:00
Ruben Fiszel
8bdebcf212 fix: improve list markdown rendering 2024-04-24 23:51:48 +02:00
Ruben Fiszel
f1acdd7eb7 chore(main): release 1.317.0 (#3605)
* chore(main): release 1.317.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-24 23:27:06 +02:00
Ruben Fiszel
613bc26749 fix: improve autodata table 2024-04-24 23:22:37 +02:00
Ruben Fiszel
96265a6f90 support spaces in requirements regex 2024-04-24 18:56:39 +02:00
Faton Ramadani
5d486034db fix(frontend): Fix AgGrid infinit clear (#3607) 2024-04-24 18:38:36 +02:00
Ruben Fiszel
cec27a87b8 feat: add planned later toggle on runs 2024-04-24 18:17:25 +02:00
Henri Courdent
e9edac4c95 Fixed docLink of AgGrid Infinite (#3606) 2024-04-24 17:24:30 +02:00
Faton Ramadani
200a321975 feat(frontend): Aggrid infinite default code (#3604)
* feat(frontend): Add missing licence editor + add default codes

* feat(frontend): Add missing licence editor + add default codes
2024-04-24 17:03:11 +02:00
Ruben Fiszel
da0d78c209 chore(main): release 1.316.2 (#3603)
* chore(main): release 1.316.1

* Update version.txt

* Update CHANGELOG.md

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-24 14:20:24 +02:00
Ruben Fiszel
963fc3decc fix: fix get_completed_job with labels 2024-04-24 14:03:30 +02:00
Ruben Fiszel
08861c86de chore(main): release 1.316.0 (#3601)
* chore(main): release 1.316.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-24 12:10:47 +02:00
Ruben Fiszel
e8e6a6c281 labels nits 2024-04-24 11:56:14 +02:00
Faton Ramadani
aece01908b feat(frontend): add search to AgGrid Infinite (#3600)
* feat(frontend): add search fto AgGrid Infinite

* feat(frontend): add missing actions

* feat(frontend):fix initial previousResult

* feat(frontend): fix reload
2024-04-24 11:51:21 +02:00
HugoCasa
1d3e82607a fix: solve invite add conflict + deprecate invites (#3594)
* fix: solver invite add conflict + deprecate invites

* fix: sqlx build

* fix: npm run check

* patch: deprecate invite from cloud as well

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2024-04-24 11:50:56 +02:00
Faton Ramadani
2e39337355 fix marine button (#3602) 2024-04-24 11:50:07 +02:00
Ruben Fiszel
6951424611 improve labels handling 2024-04-24 11:44:29 +02:00
Ruben Fiszel
0be55ae98c feat: support multiple labels for jobs (wm_label -> wm_labels) 2024-04-24 11:32:25 +02:00
Ruben Fiszel
1f997e16ee chore(main): release 1.315.1 (#3599)
* chore(main): release 1.315.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-24 09:55:39 +02:00
Ruben Fiszel
534f877a7a fix: fix label from completed_job 2024-04-24 09:52:26 +02:00
Ruben Fiszel
fe2e929068 chore(main): release 1.315.0 (#3598)
* chore(main): release 1.315.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-24 09:38:06 +02:00
Faton Ramadani
7a8ffbea46 feat(frontend): Aggrid infinite (#3592)
* feat(frontend): wip

* feat(frontend): wip

* feat(frontend): wip

* feat(frontend): wip

* feat(frontend): wip

* feat(frontend): done

* feat(frontend): done

* feat(frontend): done

* feat(frontend): fix initializing

* feat(frontend): update all refreshButtons

* feat(frontend): fix build
2024-04-24 09:32:28 +02:00
Ruben Fiszel
b3f3df0d01 chore: improve cargo cache 2024-04-24 00:46:03 +02:00
Ruben Fiszel
29258a3de0 chore: improve cargo cache 2024-04-24 00:42:45 +02:00
Ruben Fiszel
872825fbb7 chore: improve cargo cache 2024-04-24 00:36:28 +02:00
Ruben Fiszel
2c773b8c50 improve label idx performances 2024-04-24 00:28:22 +02:00
Ruben Fiszel
f105d74d9f chore(main): release 1.314.0 (#3597)
* chore(main): release 1.314.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-23 23:13:34 +02:00
HugoCasa
0ab3d1bb8e feat: ui helper for workspaced worker tags (#3595)
* feat: ui helper for workspaced worker tags

* fix: add red border when required
2024-04-23 23:10:29 +02:00
Ruben Fiszel
fcff457462 feat: add label and schedule filters to runs page 2024-04-23 22:48:21 +02:00
Ruben Fiszel
032de9c2a3 chore(main): release 1.313.0 (#3590)
* chore(main): release 1.313.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-23 14:12:36 +02:00
HugoCasa
ae7f978180 feat: add support for readonly application intent in mssql (#3591) 2024-04-23 14:08:51 +02:00
HugoCasa
ff361d9026 feat: update git sync for azure devops service principal (#3588) 2024-04-23 10:49:02 +02:00
erickv
c68cd91531 import replacement: haystack >> haystack-ai (#3587)
* import replacement: haystack >> haystack-ai

* Update lib.rs

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2024-04-22 17:52:55 +02:00
Ruben Fiszel
a53b0bda6a chore(main): release 1.312.0 (#3582)
* chore(main): release 1.312.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-22 16:08:00 +02:00
HugoCasa
8ae16d90ed feat: hide scripts with on function main from operators + badge/filter for devs (#3584)
* feat: save in DB whether script has not main function

* fix: if cannot parse script args, clear schema

* feat: no main function badge and filter

* fix: sqlx

* fix: no main
2024-04-22 15:59:13 +02:00
Faton Ramadani
f3d0bb3814 fix(frontend): Fix the table selection + improve the ComponentInputTypeEditor (#3585) 2024-04-22 15:50:36 +02:00
Henri Courdent
cbe3243eaf grammar errors (#3583)
* Grammar errors

* Grammar errors
2024-04-22 14:00:28 +02:00
Amélia
dbb691084d Darkmode rework (#3578)
* darkmode_v2

* darkmode_v2

* feat(frontend): Fix dark theme

* feat(frontend): Remove submodule

---------

Co-authored-by: Faton Ramadani <faton.ramadani14@gmail.com>
2024-04-22 12:19:23 +02:00
Faton Ramadani
464a2c4f66 feat(frontend): Fix style panel zIndex (#3581) 2024-04-22 12:17:21 +02:00
Ruben Fiszel
c52d9d97e7 chore(main): release 1.311.0 (#3580)
* chore(main): release 1.311.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-21 12:44:39 +02:00
Ruben Fiszel
48ba709627 fix: improve re-scheduled for estimation in concurrency limits 2024-04-21 12:41:30 +02:00
Ruben Fiszel
5504114732 increase pg size limit for cloud 2024-04-21 10:20:50 +02:00
Ruben Fiszel
9d2c7544ed table quick nits 2024-04-20 11:37:05 +02:00
Faton Ramadani
587c777d57 feat(frontend): Improve tables (#3577)
* feat(frontend): wip

* feat(frontend): wip

* feat(frontend): aggrid theme

* feat(frontend): aggrid theme

* feat(frontend): aggrid theme

* feat(frontend): support old themes
2024-04-20 10:54:34 +02:00
Ruben Fiszel
a162de0b75 chore(main): release 1.310.0 (#3579)
* chore(main): release 1.310.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-19 19:13:03 +02:00
Faton Ramadani
62fcf086cc feat(frontend): Deeply nested Modals and Drawers (#3565)
* fix(frontend): Support deeply nested drawers and modals

* fix(frontend): Support deeply nested drawers and modals

* fix(frontend): Support deeply nested drawers and modals

* feat(frontend): fix name

* chore(main): release 1.308.2 (#3569)

* chore(main): release 1.308.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>

* feat(frontend): wip

* feat(frontend): wip

* fix(frontend): fix event propagation

* fix(frontend): fix drawers globally

* feat(frontend): Fix all drawers

* feat(frontend): split zIndexes in a new file

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-19 18:58:39 +02:00
Ruben Fiszel
f9b5da53e8 fix: fix password field 2024-04-19 18:15:27 +02:00
Ruben Fiszel
fa5a490283 nits 2024-04-19 17:47:18 +02:00
Ruben Fiszel
7e76d419f5 nits 2024-04-18 16:05:57 +02:00
lfanew
2459a5dfed Powershell client (#3551)
* init commit of partial functionality

* Simplified layout (matching TS client)

* reworked get & post

webrequest allows more interaction with response

* Added more functionality

* Added cancel and wait for jobs

* todo added

* Async script running and query util

* Added sync script & async flow

* Stop-WindmillExecution

Implementation of `cancel_running` from Python client.
Also changed $Body -> $Data to be more explicit (we don't expect JSON body as the method will convert it for us)

* Added get workspace and job

* added token creation

* Added job cancel cmdlet

* get id token

* Final draft

- Manual testing complete
- Rearranged methods & functions
- Added a bit more functionality

* fixed incomplete synopsis

* added parent job back

dont think it's related to this module. reported finding in discord

* feat: publish CI

---------

Co-authored-by: HugoCasa <hugo@casademont.ch>
2024-04-18 14:42:58 +02:00
Ruben Fiszel
0fdf72fc57 chore(main): release 1.309.2 (#3575)
* chore(main): release 1.309.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-18 12:23:56 +02:00
Ruben Fiszel
f3666ea140 fix: update go and typesript client 2024-04-18 11:07:11 +02:00
Ruben Fiszel
1b131f310e chore(main): release 1.309.1 (#3574)
* chore(main): release 1.309.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-18 10:24:25 +02:00
Ruben Fiszel
024ffdeb6e fix: improve log viewer loading from object store 2024-04-18 09:57:21 +02:00
Ruben Fiszel
f859cbb5d4 use echo -E for webhooks 2024-04-18 09:43:48 +02:00
Ruben Fiszel
2e52feb47a chore(main): release 1.309.0 (#3572)
* chore(main): release 1.309.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-18 01:22:44 +02:00
wendrul
ac841400ba Instrument logs (#3566)
* Add spans to show worker_name and job_id

Always show worker_name and job_id when relevant, by creating spans that
live as long as the worker and the job.

* Remove redundant worker names from fn run_worker

Remove the now redundant worker_name tracing, as the information now
lives at the span level

* Use span when spawning new thread

* Instrument more pertinent functions

Move spans to more pertinent functions. Remove more redundant info, and
change worker_name to just worker

* Change tracing subscriber to log path:line_no

Change from logging target (module name usually) to file path and line
number
2024-04-18 01:11:14 +02:00
Ruben Fiszel
f84a902445 fix: measure memory usage on postgres scripts 2024-04-18 01:05:16 +02:00
Ruben Fiszel
c3493f838d nits 2024-04-17 23:03:20 +02:00
Ruben Fiszel
da41e11c84 nits 2024-04-17 22:58:23 +02:00
Ruben Fiszel
ab19625688 nits 2024-04-17 22:44:21 +02:00
Ruben Fiszel
cdb01b0d01 fix: fix autosize when not rendered at initialization 2024-04-17 22:42:03 +02:00
Ruben Fiszel
ca3e2888a6 fix ee links 2024-04-17 22:38:03 +02:00
Ruben Fiszel
c4ccc781eb add pymysql 2024-04-17 22:31:07 +02:00
Ruben Fiszel
2eea00a2cd fix: improve cancel_all to never deadlock 2024-04-17 22:04:35 +02:00
Ruben Fiszel
071a0ae927 feat: show more for logs on s3 directly possible from browser log viewer 2024-04-17 21:42:46 +02:00
Ruben Fiszel
0b1acc3557 improve queue clearing for schedules 2024-04-17 14:05:22 +02:00
HugoCasa
fdaa49a7e9 fix(backend): prevent push fail of schedule error handling from reverting job completion (#3568)
* fix: prevent push fail of schedule error handling from reverting job completion

* fix: sqlx
2024-04-17 12:35:31 +02:00
Ruben Fiszel
615e95f335 improve disabled dropdown style 2024-04-16 20:53:58 +02:00
Ruben Fiszel
3f643baf1b improve disabled dropdown style 2024-04-16 20:51:19 +02:00
Ruben Fiszel
881915239f chore(main): release 1.308.1 (#3567)
* chore(main): release 1.308.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-16 19:59:36 +02:00
Ruben Fiszel
456b903766 fix: fix delete perms user folders 2024-04-16 19:53:30 +02:00
Ruben Fiszel
77ba312ecc chore(main): release 1.308.0 (#3560)
* chore(main): release 1.308.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-16 15:38:53 +02:00
HugoCasa
a8cf3ef424 feat: add visma oauth (#3564) 2024-04-16 12:32:48 +02:00
Ruben Fiszel
39f393d72d sqlx 2024-04-16 11:15:24 +02:00
Ruben Fiszel
5f8dd0e3d1 sqlx 2024-04-16 11:04:54 +02:00
Ruben Fiszel
158d26fe38 fix: tighten delete permissions 2024-04-16 10:41:14 +02:00
HugoCasa
c17bcd395e fix: db update cell issue when some col values are null (#3558)
* fix: db update cell issue when some col values are null

* fix: use sql cond instead + delete + format
2024-04-15 19:15:49 +02:00
Faton Ramadani
1658740ec6 fix(frontend): fix text alignement, email input before icon and fix m… (#3561)
* fix(frontend): fix text alignement, email input before icon and fix modal/drawer z-index

* fix(frontend): fix text alignement, email input before icon and fix modal/drawer z-index
2024-04-15 17:19:56 +02:00
Faton Ramadani
44c9fda49a feat(frontend): ImproveApp Editor UI (#3514)
Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2024-04-15 16:27:44 +02:00
Ruben Fiszel
a5aca2a2f6 chore(main): release 1.307.0 (#3555)
* chore(main): release 1.307.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-15 16:18:12 +02:00
wendrul
b69ff31000 Add dev environment setup instructions (#3559)
Add instructions to set up the local instance on the README
2024-04-15 16:16:27 +02:00
Ruben Fiszel
8b4dc227d3 fix: tighten delete folder permissions 2024-04-15 15:44:37 +02:00
HugoCasa
7c85cd808d fix: add mysql decimal support (#3557) 2024-04-15 14:26:17 +02:00
Faton Ramadani
863550a91d feat(frontend): Add actions to Database Studio (#3556)
* feat(frontend): Add actions to Database Studio

* feat(frontend): Add actions to Database Studio
2024-04-15 14:07:35 +02:00
Faton Ramadani
0b487426c8 fix(frontend): fix the initial dimension of the markdown component (#3554) 2024-04-15 09:05:51 +02:00
Ruben Fiszel
49030760ed nits 2024-04-15 01:12:24 +02:00
Ruben Fiszel
9010c6a97e chore(main): release 1.306.4 (#3552)
* chore(main): release 1.306.4

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-14 23:24:36 +02:00
Ruben Fiszel
fb00e3b0af fix: improve unsaved confirmation modal on flow draft 2024-04-14 23:17:06 +02:00
Ruben Fiszel
81233ad490 add more exports 2024-04-14 19:51:59 +02:00
Ruben Fiszel
6b1daabd33 chore(main): release 1.306.3 (#3550)
* chore(main): release 1.306.3

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-12 19:55:06 +02:00
Ruben Fiszel
71635646e8 fix: fix actions buttons error 2024-04-12 19:52:13 +02:00
Ruben Fiszel
8783fe0c7d chore(main): release 1.306.2 (#3549)
* chore(main): release 1.306.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-12 19:39:41 +02:00
Ruben Fiszel
6ea5965819 fix: fix actions buttons error 2024-04-12 19:36:28 +02:00
Ruben Fiszel
09954bdbcc chore(main): release 1.306.1 (#3547)
* chore(main): release 1.306.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-12 16:25:39 +02:00
Faton Ramadani
60d686b2bf Fix aggrid 2 (#3548)
* fix(frontend): Correctly handle undefined actions

* fix(frontend): Correctly handle undefined actions

* fix(frontend): Correctly handle undefined actions

* fix(frontend): add missinng migration code
2024-04-12 16:25:30 +02:00
Faton Ramadani
a687d56d45 fix(frontend): Correctly handle undefined actions (#3546)
* fix(frontend): Correctly handle undefined actions

* fix(frontend): Correctly handle undefined actions

* fix(frontend): Correctly handle undefined actions
2024-04-12 16:20:49 +02:00
Ruben Fiszel
62efbe11e7 chore(main): release 1.306.0 (#3542)
* chore(main): release 1.306.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-12 16:03:18 +02:00
Faton Ramadani
7eca53f9e7 fix(frontend): Correctly handle undefined actions (#3545) 2024-04-12 15:58:12 +02:00
Faton Ramadani
e9e6614486 feat(frontend): add maplock + properly display marker title (#3544) 2024-04-12 13:50:26 +02:00
Faton Ramadani
06723629ca fix(frontend): Fix AgGrid action selection (#3543) 2024-04-12 13:05:24 +02:00
Faton Ramadani
48ad095633 feat(frontend): Ag grid actions (#3535)
* feat(frontend): wip

* feat(frontend): wip

* feat(frontend): implement cellRenderer

* feat(frontend): wip

* feat(frontend): wip

* feat(frontend): Fix actions width

* feat(frontend): Fix interactions

* feat(frontend): Fix styling

* feat(frontend): Correctly handleAgGrid EE

* feat(frontend): Fix select

* feat(frontend): Fix select

* feat(frontend): Fix how row is passed

* feat(frontend): Fix update

* feat(frontend): Correctly implement cache

* feat(frontend): Correctly implement cache

* feat(frontend): simplify how refreshActions work

* feat(frontend): improve comparaison

* feat(frontend): simplify refreshactins

* feat(frontend): clean up

* feat(frontend): clean up

* feat(frontend): add inputs output + fix row eval

* feat(frontend): add config to wrap actions

* feat(frontend): add config to wrap actions

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2024-04-12 11:45:24 +02:00
Faton Ramadani
0afd68d474 fix(frontend): Fix s3 uploader (#3539)
* fix(frontend): Correctly handle multiple files

* fix(frontend): Correctly handle multiple files

* fix(frontend): improve comparaison

* feat(frontend): fix drag and drop
2024-04-12 11:45:11 +02:00
Ruben Fiszel
3a730c73d9 chore(main): release 1.305.3 (#3540)
* chore(main): release 1.305.3

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-12 09:55:15 +02:00
Ruben Fiszel
ee56821a47 fix: improve app icon renderer and app html renderer 2024-04-12 09:51:54 +02:00
Ruben Fiszel
6b59d9fbc3 nits 2024-04-11 20:40:34 +02:00
Ruben Fiszel
1f6cf58fb4 chore(main): release 1.305.2 (#3537)
* chore(main): release 1.305.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-11 20:08:21 +02:00
Ruben Fiszel
d1650dbed9 fix: unsaved changes on deploy of flow 2024-04-11 20:03:29 +02:00
Ruben Fiszel
0d5ee64ff9 chore(main): release 1.305.1 (#3532)
* chore(main): release 1.305.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-11 18:46:54 +02:00
Ruben Fiszel
6c33f17829 fix: improve goto behavior 2024-04-11 17:58:22 +02:00
Ruben Fiszel
e4dbac314d fix intempestive settings reload on selectedComponent change 2024-04-11 17:52:22 +02:00
Ruben Fiszel
83710e9dd1 nit invert icon logo 2024-04-11 17:27:38 +02:00
Ruben Fiszel
aaa28ce99e change default openapi file 2024-04-11 16:03:54 +02:00
Ruben Fiszel
cd5b023033 fix: load lazily the app icons 2024-04-11 14:57:48 +02:00
Ruben Fiszel
1b0a4f1cd6 nit for whitelabelling 2024-04-11 10:14:36 +02:00
Ruben Fiszel
137f733663 nits 2024-04-11 09:48:34 +02:00
Ruben Fiszel
b1f72e533f nit update peerDeps 2024-04-11 09:37:17 +02:00
Ruben Fiszel
62e4ec2e14 fix: update monaco configurations 2024-04-11 09:29:25 +02:00
Ruben Fiszel
cd07020edb fix: remove requirement on full wasm parser for row insert of db studio 2024-04-11 01:12:47 +02:00
Ruben Fiszel
f17bed9741 fix: remove requirement on full wasm parser for row insert of db studio 2024-04-11 01:12:41 +02:00
Ruben Fiszel
ce91ab81d1 add webpackIgnore annotations 2024-04-10 22:01:30 +02:00
Ruben Fiszel
c31de80a38 update cli deps 2024-04-10 16:31:23 +02:00
Ruben Fiszel
c88e6a8635 fix: fix plug connection for apps with array items 2024-04-10 16:02:45 +02:00
Faton Ramadani
0c9a95c964 fix(frontend): fix text alignement (#3533) 2024-04-10 15:27:39 +02:00
Faton Ramadani
8525494a68 fix(frontend): add missing darkModeObserver in CronInput (#3531) 2024-04-10 14:54:33 +02:00
Ruben Fiszel
be748b3bb2 chore(main): release 1.305.0 (#3530)
* chore(main): release 1.305.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-09 22:55:43 +02:00
Ruben Fiszel
5272956153 fix: add ability to cancel flows directly from operator modal 2024-04-09 22:51:15 +02:00
Ruben Fiszel
a55aad3003 feat: flow concurrency limits support custom concurrency key 2024-04-09 22:03:39 +02:00
Ruben Fiszel
32cd206556 chore(main): release 1.304.4 (#3528)
* chore(main): release 1.304.4

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-09 20:01:52 +02:00
Ruben Fiszel
ea4a45ad83 nits 2024-04-09 19:50:55 +02:00
Ruben Fiszel
a4442d4d3d fix: improve performance of for-loops with parralelism 2024-04-09 19:47:50 +02:00
Ruben Fiszel
29422f156d fix: improve performance of for-loops with parralelism 2024-04-09 19:41:56 +02:00
Ruben Fiszel
8cddef62f2 prevent parallelism from timing out lock monitor 2024-04-09 18:50:19 +02:00
Ruben Fiszel
d4d8a8f756 add default state store to flow status viewer 2024-04-09 18:43:50 +02:00
Ruben Fiszel
7e4b6c3744 fix: improve handling of very large iterator on frontend 2024-04-09 18:26:09 +02:00
Ruben Fiszel
bb847d399b nits 2024-04-09 14:15:12 +02:00
Ruben Fiszel
8bd37bbcbb update sqlx 2024-04-09 12:46:00 +02:00
Ruben Fiszel
0c824de4cd fix: improve deadlocks for parallel branches with parallelism constraints 2024-04-09 11:52:40 +02:00
Ruben Fiszel
1ab1fb7e4d fix: improve order dragndrop for json editor in app 2024-04-09 10:53:04 +02:00
Ruben Fiszel
74631922f2 more error messages 2024-04-09 10:27:14 +02:00
Faton Ramadani
975055b90f fix(frontend): Improve theme editor (#3525)
* fix(frontend): Improve theme editor

* feat(frontend): improve theme editor
2024-04-09 10:21:26 +02:00
Ruben Fiszel
16c9535256 improve default script for frontend apps 2024-04-09 01:53:19 +02:00
Ruben Fiszel
8dd117528c fix: improve deadlocks for parallel branches with parallelism constraints 2024-04-09 01:38:55 +02:00
Ruben Fiszel
f117539a54 fix: allow for longer approver names in flows 2024-04-08 15:44:33 +02:00
Faton Ramadani
db5abd37cd fix(frontend): Fix bypass confirmation shortcut (#3527)
* fix(frontend): Fix bypass confirmation shortcut

* Update Item.svelte

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2024-04-08 14:43:31 +02:00
Ruben Fiszel
587824ccfa chore(main): release 1.304.3 (#3522)
* chore(main): release 1.304.3

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-08 12:42:28 +02:00
Ruben Fiszel
c7f0f3f359 fix: improve CLI with visible_to_runner_only and priority 2024-04-08 12:22:48 +02:00
Ruben Fiszel
fc0056f991 fix: add resource types to list of ignored path filters for git sync 2024-04-08 11:50:10 +02:00
Ruben Fiszel
acf80dc6a0 fix: add resource types to list of ignored path filters for git sync 2024-04-08 10:05:55 +02:00
Ruben Fiszel
abfdb84cdd add scalar at openapi2.html 2024-04-08 01:42:54 +02:00
Ruben Fiszel
fecb92e45e add scalar at openapi2.html 2024-04-08 01:42:43 +02:00
Ruben Fiszel
7e8807d27e add page and perPage to list apis 2024-04-07 18:47:06 +02:00
Ruben Fiszel
a57bec8648 chore(main): release 1.304.2 (#3521)
* chore(main): release 1.304.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-06 23:34:04 +02:00
Faton Ramadani
a52d6b30b2 fix(frontend): Fix selectFirstRowByDefault on AgGrids (#3450) 2024-04-06 23:25:46 +02:00
Ruben Fiszel
a4385231f8 add whileloop flow to id orders 2024-04-06 22:58:20 +02:00
Ruben Fiszel
3b2a39f0c2 chore(main): release 1.304.1 (#3519)
* chore(main): release 1.304.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-06 22:26:32 +02:00
Ruben Fiszel
8cdae1ac96 fix: remove reqwest_11 2024-04-06 22:13:35 +02:00
Ruben Fiszel
673fce45fb chore(main): release 1.304.0 (#3516)
* chore(main): release 1.304.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-06 21:40:32 +02:00
Henri Courdent
2c9af9903d Fixed links and components descriptions (#3515)
* Fixed links and components descriptions

* Forgot on doc
2024-04-06 21:39:56 +02:00
Ruben Fiszel
67c21f3837 reduce large file detected alert 2024-04-06 21:38:58 +02:00
Ruben Fiszel
192e47222f reduce large file detected alert 2024-04-06 21:37:56 +02:00
Faton Ramadani
139bc38ddc fix(frontend): Fix simple flow tutorial (#3518) 2024-04-06 18:55:28 +02:00
Ruben Fiszel
8ee4fda1d6 fix build 2024-04-06 16:15:00 +02:00
Ruben Fiszel
e062f5413f frontend fix 2024-04-06 16:13:44 +02:00
Ruben Fiszel
21a7ee4c33 feat: add overridable cache_ttl in api of job triggers 2024-04-06 16:05:32 +02:00
Ruben Fiszel
f9d8dde61c fix: add args filter to schedule list 2024-04-06 15:43:37 +02:00
Ruben Fiszel
d61d6f520b fix: improve list static input 2024-04-06 15:00:49 +02:00
Ruben Fiszel
458dea2930 improve flow preview logs 2024-04-06 13:52:49 +02:00
Ruben Fiszel
48e7dfc88a update sqlx 2024-04-06 13:37:14 +02:00
Ruben Fiszel
9131d5cc40 fix: parallel flow with parallelism constraint could deadlock 2024-04-06 13:25:34 +02:00
HugoCasa
08231c02d2 feat: git sync group changes by folder (#3517)
* feat: git sync group changes by folder

* chore: update ee ref
2024-04-05 23:07:27 +02:00
Ruben Fiszel
fba1ea7d54 fix: make autodatatable more resilient 2024-04-05 20:55:11 +02:00
Ruben Fiszel
632c9fb2aa fix: make autodatatable more resilient 2024-04-05 20:40:18 +02:00
Ruben Fiszel
205d02c703 improve renderer for large html 2024-04-05 20:23:18 +02:00
Ruben Fiszel
31754569ba fix: remove information in approval page of a flow 2024-04-05 20:06:27 +02:00
Ruben Fiszel
06c6d1023e improve validate signature 2024-04-05 17:54:27 +02:00
Ruben Fiszel
2ec1add494 fix: make date time input more resilient 2024-04-05 17:10:03 +02:00
Ruben Fiszel
78b8c3edc9 fix: fix lightweight arg input min size 2024-04-05 16:51:13 +02:00
Ruben Fiszel
7c4eece009 fix: show flow user states in flow state preview 2024-04-05 16:43:38 +02:00
Ruben Fiszel
7ed7cdf5a9 chore(main): release 1.303.4 (#3513)
* chore(main): release 1.303.4

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-05 09:57:37 +02:00
Ruben Fiszel
72f4247983 fix: prevent operators from loading secrets through toggle 2024-04-05 09:53:42 +02:00
Ruben Fiszel
9b88bf0758 prevent operators from loading secrets through toggle 2024-04-05 09:03:16 +02:00
Ruben Fiszel
5cee360bf7 chore(main): release 1.303.3 (#3512)
* chore(main): release 1.303.3

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-05 00:17:29 +02:00
Ruben Fiszel
18e7e9449e fix: improve multiselect for approval steps 2024-04-05 00:04:51 +02:00
Ruben Fiszel
d0a0dd0f7e nit global cache python improvements 2024-04-04 22:07:14 +02:00
Ruben Fiszel
428675d956 chore(main): release 1.303.2 (#3511)
* chore(main): release 1.303.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-04 21:45:02 +02:00
Ruben Fiszel
0b3e6b9f1c fix: improve global cache deps 2024-04-04 21:33:44 +02:00
Ruben Fiszel
a62d5e197e chore(main): release 1.303.1 (#3509)
* chore(main): release 1.303.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-04 17:27:18 +02:00
Henri Courdent
3e00f8070b Changelog frontend (#3510) 2024-04-04 17:26:41 +02:00
Ruben Fiszel
964a05177b add py312 image 2024-04-04 17:14:32 +02:00
Ruben Fiszel
96bc7c5c5c nit fix metadatagen 2024-04-04 15:09:21 +02:00
Ruben Fiszel
948bbcb92a update /static_frontend builder dir 2024-04-04 14:55:09 +02:00
Ruben Fiszel
2e3b6f66e3 fix: improve chars splitting for logs with utf-8 chars 2024-04-04 13:38:19 +02:00
Ruben Fiszel
48227f9594 verify ee for every image 2024-04-04 04:55:21 +02:00
Ruben Fiszel
89f757c592 chore(main): release 1.303.0 (#3507)
* chore(main): release 1.303.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-04 04:20:33 +02:00
HugoCasa
1d7bab075b feat: private hub (#3491)
* feat: private hub v0

* feat: add UI setting

* Update ee.rs

* Update ee.rs

* fix: remove ee symlink

* fix: add back CE ee.rs

* feat: disable s3 embedding loading when private hub

* feat: reload embeddings on hub url change

* fix: only reload embeddings db on server mode

* patch: set default hub url const

* fix: nit
2024-04-04 04:16:53 +02:00
Henri Courdent
92e8b07c17 While loop clarification (#3501) 2024-04-04 04:16:42 +02:00
Ruben Fiszel
74e0f21903 fix: update awscli & nodejs 2024-04-04 04:16:18 +02:00
Ruben Fiszel
04bda407d4 update awscli & nodejs 2024-04-04 03:58:23 +02:00
Ruben Fiszel
054cb709dc update awscli & nodejs 2024-04-04 03:55:29 +02:00
Ruben Fiszel
b65095f189 chore(main): release 1.302.0 (#3502)
* chore(main): release 1.302.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-04 03:42:30 +02:00
Ruben Fiszel
826757b33a fix: fix char excess size module for logs truncation 2024-04-04 03:25:11 +02:00
Ruben Fiszel
72f1d82b98 chore try docker scout 2024-04-04 03:01:56 +02:00
Ruben Fiszel
7d04940db0 chore try docker scout 2024-04-04 02:45:13 +02:00
Ruben Fiszel
faf8f5cbae chore verify image vulns 2024-04-04 02:30:05 +02:00
Ruben Fiszel
7561e77e34 chore verify image vulns 2024-04-04 02:16:53 +02:00
Ruben Fiszel
30ed34e2fc chore verify image vulns 2024-04-04 02:16:44 +02:00
Ruben Fiszel
60eab8e961 chore verify image vulns 2024-04-04 02:10:05 +02:00
Ruben Fiszel
373ea55512 chore verify image vulns 2024-04-04 02:08:11 +02:00
Ruben Fiszel
00dacb5b47 chore verify image vulns 2024-04-04 01:59:55 +02:00
Ruben Fiszel
4abafc668b chore verify image vulns 2024-04-04 01:55:20 +02:00
Ruben Fiszel
ea23548871 chore verify image vulns 2024-04-04 01:52:01 +02:00
Ruben Fiszel
66f0dff64a chore verify image vulns 2024-04-04 01:48:31 +02:00
Ruben Fiszel
00d7c4943e nit go caching in dockerfile 2024-04-04 01:15:10 +02:00
Ruben Fiszel
281cd7bc8b fix: improve locking 2024-04-04 01:10:38 +02:00
Ruben Fiszel
7e5493da5e snyk to sarif 2024-04-04 00:38:29 +02:00
Ruben Fiszel
4eca8d77ac snyk to sarif 2024-04-04 00:28:49 +02:00
Ruben Fiszel
088730fe5f snyk to sarif 2024-04-04 00:19:23 +02:00
Ruben Fiszel
653cc0f583 chore: split out nsjail from public images 2024-04-03 23:53:38 +02:00
Ruben Fiszel
182ec451f3 chore: split out nsjail from public images 2024-04-03 23:41:30 +02:00
Ruben Fiszel
ac6f8f31da chore: split out nsjail from public images 2024-04-03 23:32:06 +02:00
Ruben Fiszel
b31a2022ad move more deps to nsjail phase 2024-04-03 23:20:03 +02:00
Ruben Fiszel
0113dacf01 split out nsjail from public images 2024-04-03 23:16:25 +02:00
Ruben Fiszel
13424fd682 Revert "remove libprotobuf (#3505)" (#3506)
This reverts commit 6e1fb6e7f3.
2024-04-03 22:31:09 +02:00
Ruben Fiszel
6e1fb6e7f3 remove libprotobuf (#3505)
* remove pb

* remove pb

* dockerfile restart image

* dockerfile restart image
2024-04-03 21:24:26 +02:00
Ruben Fiszel
651e65d4cf dockerfile restart image 2024-04-03 19:25:07 +02:00
Ruben Fiszel
a55d6b0e25 update kubectl to 1.28.7 2024-04-03 19:22:55 +02:00
Ruben Fiszel
314dfcebec add snyk 2024-04-03 19:13:12 +02:00
HugoCasa
285aec4ffd fix: build (#3504) 2024-04-03 18:47:10 +02:00
HugoCasa
a8bf0750a4 feat: slack team connected to multiple workspaces (#3500)
* feat: slack team connected to multiple workspaces

* chore: update ee ref
2024-04-03 17:47:23 +02:00
Ruben Fiszel
9629d1e5a6 chore: try snyk 2024-04-03 17:39:44 +02:00
Ruben Fiszel
ea91c33d67 chore: add docker scout 2024-04-03 17:02:41 +02:00
Ruben Fiszel
c8ed76166c chore: add docker scout 2024-04-03 16:45:29 +02:00
Ruben Fiszel
cbb861fd78 chore: add docker scout 2024-04-03 16:40:19 +02:00
Ruben Fiszel
7120ef7564 add more debug logs around s3 log streaming 2024-04-03 14:26:07 +02:00
Ruben Fiszel
501c4d8ac4 allow_http by default for s3 2024-04-03 13:58:52 +02:00
Ruben Fiszel
72c61953f5 ux nits 2024-04-03 12:31:11 +02:00
Ruben Fiszel
0c0182edf3 chore(main): release 1.301.0 (#3499)
* chore(main): release 1.301.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-02 21:36:12 +02:00
HugoCasa
71d98b9025 fix: date-fns tooltip info again (#3498) 2024-04-02 21:32:51 +02:00
Ruben Fiszel
648accd268 fix: add access to the schedules page to operators 2024-04-02 21:27:40 +02:00
Ruben Fiszel
f4f56b8455 improve upload progress bar 2024-04-02 21:16:30 +02:00
Ruben Fiszel
5594afd0a2 add checksum log to s3 piptar pull 2024-04-02 20:55:31 +02:00
Ruben Fiszel
ff26c8e42d feat: while loop as new flow primitive 2024-04-02 17:38:11 +02:00
Ruben Fiszel
921f6a85ce chore(main): release 1.300.0 (#3494)
* chore(main): release 1.300.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-04-02 11:35:30 +02:00
Faton Ramadani
e4d8de80ef fix(frontend): Fix updateCellValue (#3497)
* fix(frontend): Fix updateCellValue

* fix(frontend): Fix updateCellValue
2024-04-02 11:23:07 +02:00
HugoCasa
e4bca00210 fix: date-fns tooltip format info (#3496)
* fix: date-fns tooltip

* fix: date-fns docs version
2024-04-02 10:41:09 +02:00
Ruben Fiszel
cc5d1b405e continue on error option for steps 2024-04-02 10:32:47 +02:00
Faton Ramadani
3afa975270 feat(frontend): Add an onRecompute callback to handle recompute side … (#3493)
* feat(frontend): Add an onRecompute callback to handle recompute side effects

* feat(frontend): use cb array

* feat(frontend): use cb array

* feat(frontend): clean up

* feat(frontend): clean up

* feat(frontend): code improvement
2024-04-02 09:44:53 +02:00
Ruben Fiszel
25379d0b62 update bun to 1.1.0 2024-04-01 21:02:03 +02:00
Ruben Fiszel
ba679c64b7 fix(typescript-client): improve setFlowUserState undefined value 2024-04-01 11:59:10 +02:00
Ruben Fiszel
fd0c87bd2e chore(main): release 1.299.1 (#3492)
* chore(main): release 1.299.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-03-31 14:56:50 +02:00
Ruben Fiszel
4ba1f6ccdf fix: fix audit issue with webhook triggered scripts 2024-03-31 14:52:06 +02:00
Ruben Fiszel
925aa13de6 chore(main): release 1.299.0 (#3478)
* chore(main): release 1.299.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-03-30 16:12:25 +01:00
Ruben Fiszel
a61b14cfd4 fix: tree view show more 2024-03-30 15:53:54 +01:00
Ruben Fiszel
951758ffb6 fix: make submit form order static 2024-03-30 15:00:52 +01:00
Ruben Fiszel
d8a9ee4945 increase max concurrent run demo workspace 2024-03-30 13:47:03 +01:00
Ruben Fiszel
bdf7b14c69 increase max concurrent run demo workspace 2024-03-30 13:45:41 +01:00
Ruben Fiszel
c0aaa920b9 improve runnable picker of app 2024-03-29 18:30:44 +01:00
Ruben Fiszel
f4daef389c display result nits 2024-03-29 17:08:13 +01:00
Ruben Fiszel
5b489d06e0 update bun to 1.36 and deno 1.43 2024-03-29 14:20:08 +01:00
Ruben Fiszel
44d812f95b exclude demo from per workspace restrictions 2024-03-29 13:38:36 +01:00
Ruben Fiszel
09844d630a fix recognize email in error handler 2024-03-29 12:50:12 +01:00
Faton Ramadani
d71356695f feat(frontend): add a refresh component control to the DB Studio (#3490)
* feat(frontend): add a refresh component control to the DB Studio

* feat(frontend): add a refresh component control to the DB Studio

* feat(frontend): clean up

* feat(frontend): improve recompute to handle sub runnable

* feat(frontend): clean up
2024-03-29 12:40:58 +01:00
HugoCasa
b4ffb500ba feat: add workspace free-tier usage (#3489)
* feat: separate workspace and user usage

* fix: sqlx build
2024-03-29 10:56:44 +01:00
Ruben Fiszel
0291f624e1 fix View Logs 2024-03-28 17:49:29 +01:00
HugoCasa
e3a636ab17 fix: show start to finish time for flows instead of cumulative (#3486)
* fix: show start to finish time for flows instead of cumulative

* fix: build
2024-03-28 15:50:18 +01:00
HugoCasa
3c384910c1 fix: show script path when schedule summary is empty (#3487) 2024-03-28 15:50:05 +01:00
Ruben Fiszel
d8f10b6b10 fix message when updating user 2024-03-28 12:24:49 +01:00
Ruben Fiszel
d6bf702984 nit markdown for scripts 2024-03-28 11:57:57 +01:00
Faton Ramadani
f9a5bcee4c feat(frontend): Add support for clearFiles in the file input component (#3483) 2024-03-28 11:44:10 +01:00
Faton Ramadani
7b3b96ea08 fix(frontend): Fix the pane delete button (#3482) 2024-03-28 11:43:45 +01:00
Ruben Fiszel
6f61d00e14 more ubicloud 2024-03-28 01:22:36 +01:00
HugoCasa
b3ed6782f6 fix: benchmark action single push (#3480)
* fix: benchmarks action only push once

* fix: benchmark artifacts

* fix: include past data

* fix: don't save dedicated warmup

* fix: fetch existing data directly from gh
2024-03-28 01:18:42 +01:00
HugoCasa
64896971bb fix: db studio multiple schemas support (#3479)
* fix: db studio multiple schemas support

* fix: frontend check (unused urlize flow)
2024-03-27 23:56:05 +01:00
Ruben Fiszel
8f9787fdc4 support gh markdown for script, flows, resource description 2024-03-27 23:04:19 +01:00
Ruben Fiszel
6cb2d20b42 feat: support gh markdown for script, flows, resource descriptions 2024-03-27 19:07:19 +01:00
Ruben Fiszel
dead13ba93 improve autosize + add markdown support for scripts and workflows 2024-03-27 18:19:37 +01:00
Ruben Fiszel
8e1bd8f957 chore(main): release 1.298.0 (#3475)
* chore(main): release 1.298.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-03-27 17:25:32 +01:00
Ruben Fiszel
1edf493e6d fix: fix clean cache deleting config 2024-03-27 17:15:29 +01:00
Ruben Fiszel
532cef999d update python to 3.11.8 2024-03-27 16:32:45 +01:00
HugoCasa
a83f286729 chore(benchmarks): merge workers graphs (#3477) 2024-03-27 14:54:34 +01:00
Ruben Fiszel
2dd68b7616 nits map 2024-03-27 14:53:47 +01:00
Henri Courdent
e2c681457f Template frontend script (#3476) 2024-03-27 14:25:52 +01:00
Ruben Fiszel
810136a4a4 feat: approval steps description 2024-03-27 14:04:14 +01:00
Ruben Fiszel
240ae93748 feat: add map support in renderer 2024-03-27 10:14:44 +01:00
Ruben Fiszel
57a0530434 fix: display approval step at top level regardless of depth 2024-03-27 09:46:09 +01:00
Ruben Fiszel
c265593099 fix powershell with nsjail 2024-03-26 23:11:26 +01:00
Henri Courdent
90726a5b53 Windmill AI handle multiple lines (#3469)
* Windmill AI handle multiple lines

* Fix npm_check

* Fix height

* Get rid of custom css

* fix: handle edge cases

* fix: edge edge case

* fix: adjust size on popup open

* fix: cancel request on leave

---------

Co-authored-by: HugoCasa <hugo@casademont.ch>
2024-03-26 23:04:42 +01:00
Ruben Fiszel
7c679dd7db chore(main): release 1.297.1 (#3474)
* chore(main): release 1.297.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-03-26 22:26:31 +01:00
Ruben Fiszel
3388ab41dd fix: fix approval steps handling of default args 2024-03-26 22:16:19 +01:00
Ruben Fiszel
641b706fb1 chore(main): release 1.297.0 (#3473)
* chore(main): release 1.297.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-03-26 19:15:03 +01:00
Ruben Fiszel
5d6238de11 fix python client set_user_state 2024-03-26 19:09:56 +01:00
HugoCasa
14a86bf59c feat: add visible to runner only default value (#3472) 2024-03-26 19:07:21 +01:00
659 changed files with 99862 additions and 23948 deletions

View File

@@ -16,6 +16,7 @@ sed -i '' -e "/\"version\": /s/: .*,/: \"$VERSION\",/" ${root_dirpath}/frontend/
sed -i '' -e "/^version =/s/= .*/= \"$VERSION\"/" ${root_dirpath}/python-client/wmill/pyproject.toml
sed -i '' -e "/^windmill-api =/s/= .*/= \"\\^$VERSION\"/" ${root_dirpath}/python-client/wmill/pyproject.toml
sed -i '' -e "/^version =/s/= .*/= \"$VERSION\"/" ${root_dirpath}/python-client/wmill_pg/pyproject.toml
sed -i '' -e "/^ModuleVersion =/s/= .*/= '$VERSION'/" ${root_dirpath}/powershell-client/WindmillClient/WindmillClient.psd1
# sed -i '' -e "/^wmill =/s/= .*/= \"\\^$VERSION\"/" python-client/wmill_pg/pyproject.toml
sed -i '' -e "/^wmill =/s/= .*/= \">=$VERSION\"/" ${root_dirpath}/lsp/Pipfile
sed -i '' -e "/^wmill_pg =/s/= .*/= \">=$VERSION\"/" ${root_dirpath}/lsp/Pipfile

View File

@@ -12,10 +12,12 @@ sed -i -e "/^export const VERSION =/s/= .*/= \"v$VERSION\";/" ${root_dirpath}/be
sed -i -e "/version: /s/: .*/: $VERSION/" ${root_dirpath}/backend/windmill-api/openapi.yaml
sed -i -e "/version: /s/: .*/: $VERSION/" ${root_dirpath}/openflow.openapi.yaml
sed -i -e "/\"version\": /s/: .*,/: \"$VERSION\",/" ${root_dirpath}/typescript-client/package.json
sed -i -e "/\"version\": /s/: .*,/: \"$VERSION\",/" ${root_dirpath}/typescript-client/jsr.json
sed -i -e "/\"version\": /s/: .*,/: \"$VERSION\",/" ${root_dirpath}/frontend/package.json
sed -i -e "/^version =/s/= .*/= \"$VERSION\"/" ${root_dirpath}/python-client/wmill/pyproject.toml
sed -i -e "/^windmill-api =/s/= .*/= \"\\^$VERSION\"/" ${root_dirpath}/python-client/wmill/pyproject.toml
sed -i -e "/^version =/s/= .*/= \"$VERSION\"/" ${root_dirpath}/python-client/wmill_pg/pyproject.toml
sed -i -e "/^ModuleVersion =/s/= .*/= '$VERSION'/" ${root_dirpath}/powershell-client/WindmillClient/WindmillClient.psd1
# sed -i -e "/^wmill =/s/= .*/= \"\\^$VERSION\"/" ${root_dirpath}/python-client/wmill_pg/pyproject.toml
sed -i -e "/^wmill =/s/= .*/= \">=$VERSION\"/" ${root_dirpath}/lsp/Pipfile
sed -i -e "/^wmill_pg =/s/= .*/= \">=$VERSION\"/" ${root_dirpath}/lsp/Pipfile

View File

@@ -34,27 +34,20 @@ jobs:
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: actions/checkout@v4
with:
ref: benchmarks
- name: benchmark
timeout-minutes: 20
run: deno run --unstable -A -r
https://raw.githubusercontent.com/windmill-labs/windmill/${GITHUB_REF##ref/head/}/benchmarks/benchmark_suite.ts
-c
https://raw.githubusercontent.com/windmill-labs/windmill/${GITHUB_REF##ref/head/}/benchmarks/suite_config.json
- name: Push changes
run: |
pwd
git pull origin benchmarks
git add .
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Update benchmarks"
git push
- name: Save benchmark results
uses: actions/upload-artifact@v4
with:
name: benchmark_single
path: |
*.json
benchmark_dedicated:
needs: benchmark_single
runs-on: ubicloud-standard-8
services:
postgres:
@@ -82,24 +75,18 @@ jobs:
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: actions/checkout@v4
with:
ref: benchmarks
- name: benchmark
timeout-minutes: 20
run: deno run --unstable -A -r
https://raw.githubusercontent.com/windmill-labs/windmill/${GITHUB_REF##ref/head/}/benchmarks/benchmark_suite.ts
--no-warm-up -c
https://raw.githubusercontent.com/windmill-labs/windmill/${GITHUB_REF##ref/head/}/benchmarks/suite_dedicated.json
- name: Push changes
run: |
pwd
git pull origin benchmarks
git add .
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Update benchmarks"
git push
- name: Save benchmark results
uses: actions/upload-artifact@v4
with:
name: benchmark_dedicated
path: |
*.json
benchmark_4workers:
runs-on: ubicloud-standard-8
@@ -162,9 +149,6 @@ jobs:
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: actions/checkout@v4
with:
ref: benchmarks
- name: benchmark
timeout-minutes: 20
run: deno run --unstable -A -r
@@ -172,15 +156,12 @@ jobs:
-c
https://raw.githubusercontent.com/windmill-labs/windmill/${GITHUB_REF##ref/head/}/benchmarks/suite_config.json
--workers 4
- name: Push changes
run: |
pwd
git pull origin benchmarks
git add .
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Update benchmarks"
git push
- name: Save benchmark results
uses: actions/upload-artifact@v4
with:
name: benchmark_4workers
path: |
*.json
benchmark_8workers:
runs-on: ubicloud-standard-8
@@ -286,9 +267,6 @@ jobs:
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: actions/checkout@v4
with:
ref: benchmarks
- name: benchmark
timeout-minutes: 20
run: deno run --unstable -A -r
@@ -296,10 +274,40 @@ jobs:
-c
https://raw.githubusercontent.com/windmill-labs/windmill/${GITHUB_REF##ref/head/}/benchmarks/suite_config.json
--workers 8
- name: Save benchmark results
uses: actions/upload-artifact@v4
with:
name: benchmark_8workers
path: |
*.json
benchmark_graphs:
runs-on: ubicloud
needs:
- benchmark_single
- benchmark_dedicated
- benchmark_4workers
- benchmark_8workers
steps:
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: actions/checkout@v4
with:
ref: benchmarks
- name: Download benchmark results
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: graphs
run: deno run --unstable -A -r
https://raw.githubusercontent.com/windmill-labs/windmill/${GITHUB_REF##ref/head/}/benchmarks/benchmark_graphs.ts
-c
https://raw.githubusercontent.com/windmill-labs/windmill/${GITHUB_REF##ref/head/}/benchmarks/graphs_config.json
- name: Push changes
run: |
ls -la
pwd
git pull origin benchmarks
git add .
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"

View File

@@ -7,15 +7,14 @@ name: Publish websocket multiplayer server
on:
workflow_dispatch:
permissions:
contents: read
id-token: write
packages: write
jobs:
publish_multiplayer:
runs-on: ubuntu-latest
runs-on: ubicloud-standard-8
steps:
- uses: actions/checkout@v3
with:
@@ -56,7 +55,7 @@ jobs:
publish_privately:
needs: [publish_multiplayer]
runs-on: ubuntu-latest
runs-on: ubicloud-standard-8
steps:
- uses: actions/checkout@v3
with:
@@ -71,9 +70,8 @@ jobs:
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Push image to ECR
run: |
docker buildx imagetools create \
--tag ${{ env.ECR_REGISTRY }}/${{ env.IMAGE_NAME }}:latest \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

View File

@@ -8,15 +8,16 @@ on:
push:
branches: [main]
tags: ["*"]
pull_request:
types: [opened, synchronize, reopened]
paths:
- "Dockerfile"
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
id-token: write
packages: write
permissions: write-all
jobs:
build:
@@ -135,8 +136,7 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
build-args: |
features=enterprise,enterprise_saml,stripe,embedding,parquet,prometheus,openidconnect
nsjail=true
features=enterprise,enterprise_saml,stripe,embedding,parquet,prometheus,openidconnect,cloud,jemalloc
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:dev
${{ steps.meta-ee-public.outputs.tags }}
@@ -144,52 +144,130 @@ jobs:
${{ steps.meta-ee-public.outputs.labels }}
org.opencontainers.image.licenses=Windmill-Enterprise-License
build_ee_reports_privately:
needs: [build_ee]
build_ee_312:
runs-on: ubicloud
if: ${{ startsWith(github.ref, 'refs/tags/') }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Read EE repo commit hash
run: |
echo "ee_repo_ref=$(cat ./backend/ee-repo-ref.txt)" >> "$GITHUB_ENV"
- uses: actions/checkout@v3
with:
repository: windmill-labs/windmill-ee-private
path: ./windmill-ee-private
ref: ${{ env.ee_repo_ref }}
token: ${{ secrets.WINDMILL_EE_PRIVATE_ACCESS }}
fetch-depth: 0
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
- uses: depot/setup-action@v1
- name: Docker meta
id: meta-ee-public
id: meta-ee-public-py312
uses: docker/metadata-action@v4
with:
images: |
${{ env.ECR_REGISTRY }}/${{ env.IMAGE_NAME }}-ee-reports
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee-py312
flavor: |
latest=false
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,enable=true,priority=100,prefix=,suffix=,format=short
- name: Login to ECR
if: github.event_name != 'pull_request'
- name: Login to registry
uses: docker/login-action@v2
with:
registry: ${{ env.ECR_REGISTRY }}
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push publicly ee reports
- name: Substitute EE code
run: |
./backend/substitute_ee_code.sh --copy --dir ./windmill-ee-private
- name: Build and push publicly ee
uses: depot/build-push-action@v1
with:
context: .
platforms: linux/amd64
push: true
file: "./docker/DockerfileReports"
build-args: |
features=enterprise,enterprise_saml,stripe,embedding,parquet,prometheus,openidconnect,cloud
PYTHON_IMAGE=python:3.12.2-slim-bookworm
tags: |
${{ steps.meta-ee-public.outputs.tags }}
${{ steps.meta-ee-public-py312.outputs.tags }}
labels: |
${{ steps.meta-ee-public.outputs.labels }}
${{ steps.meta-ee-public-py312.outputs.labels }}
org.opencontainers.image.licenses=Windmill-Enterprise-License
build_ee_jemalloc:
runs-on: ubicloud
if: ${{ startsWith(github.ref, 'refs/tags/') }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Read EE repo commit hash
run: |
echo "ee_repo_ref=$(cat ./backend/ee-repo-ref.txt)" >> "$GITHUB_ENV"
- uses: actions/checkout@v3
with:
repository: windmill-labs/windmill-ee-private
path: ./windmill-ee-private
ref: ${{ env.ee_repo_ref }}
token: ${{ secrets.WINDMILL_EE_PRIVATE_ACCESS }}
fetch-depth: 0
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
- uses: depot/setup-action@v1
- name: Docker meta
id: meta-ee-public-jemalloc
uses: docker/metadata-action@v4
with:
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee-jemalloc
flavor: |
latest=false
tags: |
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Login to registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Substitute EE code
run: |
./backend/substitute_ee_code.sh --copy --dir ./windmill-ee-private
- name: Build and push publicly ee
uses: depot/build-push-action@v1
with:
context: .
platforms: linux/amd64
push: true
build-args: |
features=enterprise,enterprise_saml,stripe,embedding,parquet,prometheus,openidconnect,cloud,jemalloc
tags: |
${{ steps.meta-ee-public-jemalloc.outputs.tags }}
labels: |
${{ steps.meta-ee-public-jemalloc.outputs.labels }}
org.opencontainers.image.licenses=Windmill-Enterprise-License
# disabled until we make it 100% reliable and add more meaningful tests
# playwright:
# runs-on: [self-hosted, new]
@@ -311,8 +389,204 @@ jobs:
# ${{ steps.extract.outputs.destination }}/*
# ${{ steps.extract-ee.outputs.destination }}/*
publish_ecr_s3:
run_integration_test:
runs-on: ubicloud
needs: [build_ee]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Prepare test run
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
run: cd integration_tests && ./build.sh
- name: Test run
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
timeout-minutes: 15
env:
LICENSE_KEY: ${{ secrets.WM_LICENSE_KEY_CI }}
run: cd integration_tests && ./run.sh
- name: Archive logs
uses: actions/upload-artifact@v3
if: always()
with:
name: Windmill Integration Tests Logs
path: |
integration_tests/logs
tag_latest:
runs-on: ubicloud
needs: [run_integration_test, build]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag main and latest
run: |
docker buildx imagetools create ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
docker buildx imagetools create ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main
tag_latest_ee:
runs-on: ubicloud
needs: [run_integration_test, build_ee]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag main and latest for ee
run: |
docker buildx imagetools create ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:dev --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:latest
docker buildx imagetools create ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:dev --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:main
verify_ee_image_vulnerabilities:
runs-on: ubicloud
needs: [tag_latest_ee]
# if: ${{ startsWith(github.ref, 'refs/tags/') }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Analyze for critical and high CVEs
id: docker-scout-cves
if: ${{ github.event_name != 'pull_request_target' }}
uses: docker/scout-action@v1
with:
command: cves
only-severities: critical,high
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:main
sarif-file: sarif.output.json
summary: true
dockerhub-user: windmilllabs
dockerhub-password: ${{ secrets.DOCKER_PAT }}
- name: Upload SARIF result
id: upload-sarif
if: ${{ github.event_name != 'pull_request_target' }}
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: sarif.output.json
# docker_scout_ee:
# runs-on: ubicloud
# needs: [tag_latest_ee]
# steps:
# - name: Docker Scout
# id: docker-scout
# uses: docker/scout-action@v1
# with:
# dockerhub-
# command: cves,recommendations,compare
# to-latest: true
# ignore-base: true
# ignore-unchanged: true
# only-fixed: true
build_ee_nsjail:
needs: [build_ee]
runs-on: ubicloud
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
- uses: depot/setup-action@v1
- name: Docker meta
id: meta-ee-public
uses: docker/metadata-action@v4
with:
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee-nsjail
flavor: |
latest=false
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,enable=true,priority=100,prefix=,suffix=,format=short
- name: Login to registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push publicly ee
uses: depot/build-push-action@v1
with:
context: .
platforms: linux/amd64
push: true
file: "./docker/DockerfileNsjail"
tags: |
${{ steps.meta-ee-public.outputs.tags }}
labels: |
${{ steps.meta-ee-public.outputs.labels }}
org.opencontainers.image.licenses=Windmill-Enterprise-License
build_ee_reports_privately:
needs: [build_ee_nsjail]
runs-on: ubicloud
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
- uses: depot/setup-action@v1
- name: Docker meta
id: meta-ee-public
uses: docker/metadata-action@v4
with:
images: |
${{ env.ECR_REGISTRY }}/${{ env.IMAGE_NAME }}-ee-reports
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,enable=true,priority=100,prefix=,suffix=,format=short
- name: Login to ECR
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ${{ env.ECR_REGISTRY }}
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Build and push publicly ee reports
uses: depot/build-push-action@v1
with:
context: .
platforms: linux/amd64
push: true
file: "./docker/DockerfileReports"
tags: |
${{ steps.meta-ee-public.outputs.tags }}
labels: |
${{ steps.meta-ee-public.outputs.labels }}
org.opencontainers.image.licenses=Windmill-Enterprise-License
publish_ecr_s3:
needs: [build_ee_nsjail]
runs-on: ubicloud
if: github.event_name != 'pull_request'
env:
@@ -341,7 +615,7 @@ jobs:
git_hash=$(git rev-parse --short "$GITHUB_SHA")
docker buildx imagetools create \
--tag ${{ env.ECR_REGISTRY }}/${{ env.IMAGE_NAME }}-ee:${git_hash:0:7} \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:dev
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee-nsjail:main
echo "GIT_HASH=${git_hash:0:7}" >> "$GITHUB_OUTPUT"
- uses: shrink/actions-docker-extract@v3
@@ -359,66 +633,6 @@ jobs:
bucket: windmill-frontend
bucket-region: us-east-1
run_integration_test:
runs-on: ubicloud
needs: [build_ee]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Prepare test run
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
run: cd integration_tests && ./build.sh
- name: Test run
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
timeout-minutes: 15
env:
LICENSE_KEY: ${{ secrets.WM_LICENSE_KEY_CI }}
run: cd integration_tests && ./run.sh
- name: Archive logs
uses: actions/upload-artifact@v3
if: always()
with:
name: Windmill Integration Tests Logs
path: |
integration_tests/logs
tag_latest:
runs-on: ubicloud
needs: [run_integration_test]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag main and latest
run: |
docker buildx imagetools create ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
docker buildx imagetools create ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main
tag_latest_ee:
runs-on: ubicloud
needs: [run_integration_test]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag main and latest for ee
run: |
docker buildx imagetools create ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:dev --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:latest
docker buildx imagetools create ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:dev --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:main
build_ee_cuda:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: [build_ee]

View File

@@ -0,0 +1,16 @@
name: Publish powershell-client
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
publish_gallery:
runs-on: ubicloud-standard-8
steps:
- uses: actions/checkout@v4
- run: . ./powershell-client/publish.ps1
shell: pwsh
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

16
.github/workflows/jsr_on_release.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: Publish typescript-client on JSR
on:
push:
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- run: cd typescript-client && ./publish.jsr.sh

View File

@@ -6,7 +6,7 @@ name: release-please
jobs:
release-please:
name: "Release please"
runs-on: ubicloud-standard-8
runs-on: ubicloud
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
with:

View File

@@ -7,10 +7,13 @@ on:
jobs:
CLAssistant:
runs-on: ubuntu-latest
runs-on: ubicloud
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
if:
(github.event.comment.body == 'recheck' || github.event.comment.body
== 'I have read the CLA Document and I hereby sign the CLA') ||
github.event_name == 'pull_request_target'
# Beta Release
uses: cla-assistant/github-action@v2.3.1
env:

File diff suppressed because it is too large Load Diff

View File

@@ -1,30 +1,6 @@
ARG DEBIAN_IMAGE=debian:bookworm-slim
ARG RUST_IMAGE=rust:1.76-slim-bookworm
ARG PYTHON_IMAGE=python:3.11.4-slim-bookworm
FROM ${DEBIAN_IMAGE} as nsjail
WORKDIR /nsjail
ARG nsjail=""
RUN if [ "$nsjail" = "true" ]; then apt-get -y update \
&& apt-get install -y \
bison=2:3.8.* \
flex=2.6.* \
g++=4:12.2.* \
gcc=4:12.2.* \
git=1:2.39.* \
libprotobuf-dev=3.21.* \
libnl-route-3-dev=3.7.* \
make=4.3-4.1 \
pkg-config=1.8.* \
protobuf-compiler=3.21.*; fi
RUN if [ "$nsjail" = "true" ]; then git clone -b master --single-branch https://github.com/google/nsjail.git . \
&& git checkout dccf911fd2659e7b08ce9507c25b2b38ec2c5800; fi
RUN if [ "$nsjail" = "true" ]; then make; else touch nsjail; fi
ARG PYTHON_IMAGE=python:3.11.8-slim-bookworm
FROM ${RUST_IMAGE} AS rust_base
@@ -36,12 +12,14 @@ RUN apt-get -y update \
RUN rustup component add rustfmt
RUN CARGO_NET_GIT_FETCH_WITH_CLI=true cargo install cargo-chef
RUN CARGO_NET_GIT_FETCH_WITH_CLI=true cargo install cargo-chef --version ^0.1
RUN cargo install sccache --version ^0.8
ENV RUSTC_WRAPPER=sccache SCCACHE_DIR=/backend/sccache
WORKDIR /windmill
ENV SQLX_OFFLINE=true
ENV CARGO_INCREMENTAL=1
# ENV CARGO_INCREMENTAL=1
FROM node:20-alpine as frontend
@@ -70,7 +48,9 @@ FROM rust_base AS planner
COPY ./openflow.openapi.yaml /openflow.openapi.yaml
COPY ./backend ./
RUN CARGO_NET_GIT_FETCH_WITH_CLI=true cargo chef prepare --recipe-path recipe.json
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=$SCCACHE_DIR,sharing=locked \
CARGO_NET_GIT_FETCH_WITH_CLI=true cargo chef prepare --recipe-path recipe.json
FROM rust_base AS builder
ARG features=""
@@ -79,7 +59,9 @@ COPY --from=planner /windmill/recipe.json recipe.json
RUN apt-get update && apt-get install -y libxml2-dev libxmlsec1-dev clang libclang-dev cmake
RUN CARGO_NET_GIT_FETCH_WITH_CLI=true RUST_BACKTRACE=1 cargo chef cook --release --features "$features" --recipe-path recipe.json
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=$SCCACHE_DIR,sharing=locked \
CARGO_NET_GIT_FETCH_WITH_CLI=true RUST_BACKTRACE=1 cargo chef cook --release --features "$features" --recipe-path recipe.json
COPY ./openflow.openapi.yaml /openflow.openapi.yaml
COPY ./backend ./
@@ -88,7 +70,9 @@ COPY --from=frontend /frontend /frontend
COPY --from=frontend /backend/windmill-api/openapi-deref.yaml ./windmill-api/openapi-deref.yaml
COPY .git/ .git/
RUN CARGO_NET_GIT_FETCH_WITH_CLI=true cargo build --release --features "$features"
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=$SCCACHE_DIR,sharing=locked \
CARGO_NET_GIT_FETCH_WITH_CLI=true cargo build --release --features "$features"
FROM ${DEBIAN_IMAGE} as downloader
@@ -100,8 +84,8 @@ SHELL ["/bin/bash", "-c"]
RUN apt update -y
RUN apt install -y unzip curl
RUN [ "$TARGETPLATFORM" == "linux/amd64" ] && curl -Lsf https://github.com/denoland/deno/releases/download/v1.41.0/deno-x86_64-unknown-linux-gnu.zip -o deno.zip || true
RUN [ "$TARGETPLATFORM" == "linux/arm64" ] && curl -Lsf https://github.com/denoland/deno/releases/download/v1.41.0/deno-aarch64-unknown-linux-gnu.zip -o deno.zip || true
RUN [ "$TARGETPLATFORM" == "linux/amd64" ] && curl -Lsf https://github.com/denoland/deno/releases/download/v1.42.0/deno-x86_64-unknown-linux-gnu.zip -o deno.zip || true
RUN [ "$TARGETPLATFORM" == "linux/arm64" ] && curl -Lsf https://github.com/denoland/deno/releases/download/v1.42.0/deno-aarch64-unknown-linux-gnu.zip -o deno.zip || true
RUN unzip deno.zip && rm deno.zip
@@ -111,8 +95,8 @@ FROM ${PYTHON_IMAGE}
ARG TARGETPLATFORM
ARG POWERSHELL_VERSION=7.3.5
ARG POWERSHELL_DEB_VERSION=7.3.5-1
ARG KUBECTL_VERSION=1.27.2
ARG HELM_VERSION=3.12.0
ARG KUBECTL_VERSION=1.28.7
ARG HELM_VERSION=3.14.3
ARG APP=/usr/src/app
ARG WITH_POWERSHELL=true
ARG WITH_KUBECTL=true
@@ -120,9 +104,10 @@ ARG WITH_HELM=true
RUN apt-get update \
&& apt-get install -y ca-certificates wget curl git jq libprotobuf-dev libnl-route-3-dev unzip build-essential unixodbc xmlsec1 \
&& apt-get install -y ca-certificates wget curl git jq unzip build-essential unixodbc xmlsec1 software-properties-common \
&& rm -rf /var/lib/apt/lists/*
RUN if [ "$WITH_POWERSHELL" = "true" ]; then \
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then apt-get update -y && apt install libicu-dev -y && wget -O 'pwsh.deb' "https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell_${POWERSHELL_DEB_VERSION}.deb_amd64.deb" && \
dpkg --install 'pwsh.deb' && \
@@ -150,22 +135,6 @@ RUN if [ "$WITH_KUBECTL" = "true" ]; then \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl; \
else echo 'Building the image without kubectl'; fi
RUN set -eux; \
arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; \
case "$arch" in \
'amd64') \
zip='awscli-exe-linux-x86_64.zip'; \
;; \
'arm64') \
zip='awscli-exe-linux-aarch64.zip'; \
;; \
*) echo >&2 "error: unsupported architecture '$arch' (likely packaging update needed)"; exit 1 ;; \
esac; \
apt-get update && apt install unzip && curl "https://awscli.amazonaws.com/$zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && rm awscliv2.zip
RUN set -eux; \
arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; \
@@ -186,14 +155,11 @@ RUN set -eux; \
ENV PATH="${PATH}:/usr/local/go/bin"
ENV GO_PATH=/usr/local/go/bin/go
ARG nsjail=""
RUN if [ "$nsjail" = "true" ]; then apt-get -y update \
&& apt-get install -y \
curl nodejs npm; fi
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get -y update && apt-get install -y curl nodejs awscli
# go build is slower the first time it is ran, so we prewarm it in the build
RUN mkdir -p /tmp/gobuildwarm && cd /tmp/gobuildwarm && go mod init gobuildwarm && printf "package foo\nimport (\"fmt\"\nwmill \"github.com/windmill-labs/windmill-go-client\")\nfunc main() { v := wmill.GetStatePath()\n fmt.Println(v) }" > warm.go && go mod tidy && go build -x && rm -rf /tmp/gobuildwarm
RUN mkdir -p /tmp/gobuildwarm && cd /tmp/gobuildwarm && go mod init gobuildwarm && printf "package foo\nimport (\"fmt\")\nfunc main() { fmt.Println(42) }" > warm.go && go mod tidy && go build -x && rm -rf /tmp/gobuildwarm
ENV TZ=Etc/UTC
@@ -205,9 +171,10 @@ COPY --from=builder /windmill/target/release/windmill ${APP}/windmill
COPY --from=downloader --chmod=755 /deno /usr/bin/deno
COPY --from=nsjail /nsjail/nsjail /bin/nsjail
COPY --from=oven/bun:1.1.7 /usr/local/bin/bun /usr/bin/bun
COPY --from=oven/bun:1.0.29 /usr/local/bin/bun /usr/bin/bun
COPY --from=php:8.3.7-cli /usr/local/bin/php /usr/bin/php
COPY --from=composer:2.7.6 /usr/bin/composer /usr/bin/composer
# add the docker client to call docker from a worker if enabled
COPY --from=docker:dind /usr/local/bin/docker /usr/local/bin/

View File

@@ -13,7 +13,7 @@ any snippets of code that require a positive license check to be activated.
Those snippets and files are under a proprietary and commercial license. Private
and public forks MUST not include any of the above proprietary and commercial
code. Windmill Labs, Inc. provide tools to clean the codebase from those
snippets upon demand. The files under python-client/ deno-client/ go-client/ are
snippets upon demand. The files under python-client/ deno-client/ go-client/ powershell-client/ are
Apache 2.0 Licensed.
The openapi files, including the OpenFlow spec is Apache 2.0 Licensed.

View File

@@ -352,6 +352,44 @@ you to have it being synced automatically everyday.
| TIMEOUT_WAIT_RESULT | 20 | The number of seconds to wait before timeout on the 'run_wait_result' endpoint | Worker |
| QUEUE_LIMIT_WAIT_RESULT | None | The number of max jobs in the queue before rejecting immediately the request in 'run_wait_result' endpoint. Takes precedence on the query arg. If none is specified, there are no limit. | Worker |
| DENO_AUTH_TOKENS | None | Custom DENO_AUTH_TOKENS to pass to worker to allow the use of private modules | Worker |
| DISABLE_RESPONSE_LOGS | false | Disable response logs | Server |
## Run a local dev setup
### only Frontend
This will use the backend of <https://app.windmill.dev> but your own frontend
with hot-code reloading.
1. Install [caddy](https://caddyserver.com)
2. Go to `frontend/`:
1. `npm install`, `npm run generate-backend-client` then `npm run dev`
2. In another shell `sudo caddy run --config CaddyfileRemote`
3. Et voilà, windmill should be available at `http://localhost/`
### Backend + Frontend
See the [./frontend/README_DEV.md](./frontend/README_DEV.md) file for all
running options.
1. Create a Postgres Database for Windmill and create an admin role inside your
Postgres setup.
The easiest way to get a working db is to run
```
cargo install sqlx-cli
env DATABASE_URL=<YOUR_DATABASE_URL> sqlx migrate run
```
This will also avoid compile time issue with sqlx's `query!` macro
2. Install [nsjail](https://github.com/google/nsjail) and have it accessible in
your PATH
3. Install deno and python3, have the bins at `/usr/bin/deno` and
`/usr/local/bin/python3`
4. Install [caddy](https://caddyserver.com)
5. Install the [lld linker](https://lld.llvm.org/)
6. Go to `frontend/`:
1. `npm install`, `npm run generate-backend-client` then `npm run dev`
2. You might need to set some extra heap space for the node runtime `export NODE_OPTIONS="--max-old-space-size=4096"`
3. In another shell `npm run build` otherwise the backend will not find the `frontend/build` folder and will not compile.
4. In another shell `sudo caddy run --config Caddyfile`
7. Go to `backend/`:
`env DATABASE_URL=<DATABASE_URL_TO_YOUR_WINDMILL_DB> RUST_LOG=info cargo run`
8. Et voilà, windmill should be available at `http://localhost/`
## Contributors

3
backend/.gitignore vendored
View File

@@ -3,4 +3,5 @@ target/
oauth.json
oauth2.json
windmill-api/openapi-deref.yaml
tracing.folded
tracing.folded
heaptrack*

View File

@@ -0,0 +1,20 @@
{
"db_name": "PostgreSQL",
"query": "SELECT created_at FROM metrics WHERE id = 'author_count' ORDER BY created_at DESC LIMIT 1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "created_at",
"type_info": "Timestamptz"
}
],
"parameters": {
"Left": []
},
"nullable": [
false
]
},
"hash": "021be0f26ea87e587e656b24a9a94538efbf54a1447a3898e19773789cfc9063"
}

View File

@@ -1,70 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT app.id, app.path, app.summary, app.versions, app.policy,\n app.extra_perms, app_version.value, \n app_version.created_at, app_version.created_by from app, app_version \n WHERE app.workspace_id = $1 AND app_version.id = app.versions[array_upper(app.versions, 1)]",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "path",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "summary",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "versions",
"type_info": "Int8Array"
},
{
"ordinal": 4,
"name": "policy",
"type_info": "Jsonb"
},
{
"ordinal": 5,
"name": "extra_perms",
"type_info": "Jsonb"
},
{
"ordinal": 6,
"name": "value",
"type_info": "Json"
},
{
"ordinal": 7,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 8,
"name": "created_by",
"type_info": "Varchar"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
false,
false
]
},
"hash": "023fffd0a042a28b5be991169a506aff92f64f84e49b4c041cd369b045c31e73"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "SELECT tag, count(*) as count FROM queue WHERE\n scheduled_for <= now() - ('3 seconds')::interval AND running = false\n GROUP BY tag",
"query": "SELECT tag, count(*) as count FROM queue WHERE\n scheduled_for <= now() - ('3 seconds')::interval AND running = false\n GROUP BY tag",
"describe": {
"columns": [
{
@@ -22,5 +22,5 @@
null
]
},
"hash": "3e0e5e0076ae0f7771abd64f8c5bb7e003e3f85351c946a012037e0c874acf1a"
"hash": "02b516dac764662194db1bc33e365c01f40bae70af3683f1f09748f6020f0d49"
}

View File

@@ -0,0 +1,15 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO concurrency_key(key, job_id) VALUES ($1, $2)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar",
"Uuid"
]
},
"nullable": []
},
"hash": "0a1c95c4376b944661bab13271091cf3ea0afe68fb8e08e7aea239dc735c625c"
}

View File

@@ -54,7 +54,8 @@
"snowflake",
"graphql",
"powershell",
"mssql"
"mssql",
"php"
]
}
}

View File

@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE queue SET suspend = suspend - 1 WHERE id = $1 AND suspend > 0",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Uuid"
]
},
"nullable": []
},
"hash": "0c349ac832cbf055fce755c8e2081eacf2b836b0396ec48a6cc2405fb7aa76de"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM folder WHERE name = $1 AND workspace_id = $2",
"query": "DELETE FROM workspace_invite WHERE workspace_id = $1 AND email = $2",
"describe": {
"columns": [],
"parameters": {
@@ -11,5 +11,5 @@
},
"nullable": []
},
"hash": "26e4ec75366d1e46a98710f29066b40e66a802f98eeabbb3ae5bebe3aeb6b3f8"
"hash": "0d7ba88a9810e434aa00fd63bbf416cbe222f2c67ccc8aa92e651c2bea4c2d7b"
}

View File

@@ -27,11 +27,6 @@
"ordinal": 4,
"name": "premium",
"type_info": "Bool"
},
{
"ordinal": 5,
"name": "is_overquota",
"type_info": "Bool"
}
],
"parameters": {
@@ -45,7 +40,6 @@
false,
false,
false,
false,
false
]
},

View File

@@ -0,0 +1,22 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(id) FROM queue WHERE running = true AND workspace_id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count",
"type_info": "Int8"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
null
]
},
"hash": "12a0fd7d8d99fb73b01bc24774fe9a8da57b5204bb6b1207aed47143c17a20bc"
}

View File

@@ -1,16 +1,16 @@
{
"db_name": "PostgreSQL",
"query": "select path, tag, concurrent_limit, concurrency_time_window_s, cache_ttl, language as \"language: ScriptLang\", dedicated_worker, priority, delete_after_use, timeout from script where hash = $1 AND workspace_id = $2",
"query": "select tag, concurrency_key, concurrent_limit, concurrency_time_window_s, cache_ttl, language as \"language: ScriptLang\", dedicated_worker, priority, delete_after_use, timeout from script where hash = $1 AND workspace_id = $2",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "path",
"name": "tag",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "tag",
"name": "concurrency_key",
"type_info": "Varchar"
},
{
@@ -48,7 +48,8 @@
"snowflake",
"graphql",
"powershell",
"mssql"
"mssql",
"php"
]
}
}
@@ -82,7 +83,7 @@
]
},
"nullable": [
false,
true,
true,
true,
true,
@@ -94,5 +95,5 @@
true
]
},
"hash": "b69891c25dd029b1a54e97ace292433e1485324ff7dc802fe75d21c8c6db1d42"
"hash": "1a612eb0b64eddd2c5657ef73598c47886545796424f8612135b711e2b9ddb6c"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE queue SET suspend = suspend - 1 WHERE parent_job = $1",
"query": "UPDATE concurrency_key SET ended_at = now() WHERE job_id = $1",
"describe": {
"columns": [],
"parameters": {
@@ -10,5 +10,5 @@
},
"nullable": []
},
"hash": "a4ae245dcf7e4b930cd45701db0b7c45f2a5797e8b6724bade5b964d4334c098"
"hash": "2352e293e172304a10ab3500b17848e8199b690b1834c382fa9d5c6ae163ec2c"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM custom_concurrency_key_ended WHERE key = $1",
"query": "DELETE FROM concurrency_key WHERE key = $1",
"describe": {
"columns": [],
"parameters": {
@@ -10,5 +10,5 @@
},
"nullable": []
},
"hash": "2946aa519633291de986978d245dc615a0ee10ce6e6a98bd4906e86225b387b3"
"hash": "2bbcc383ed79afa3392af417b0cabb32d14a0a26dc36085fb2eaa62e769aca8e"
}

View File

@@ -0,0 +1,22 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO usage (id, is_workspace, month_, usage)\n VALUES ($1, FALSE, EXTRACT(YEAR FROM current_date) * 12 + EXTRACT(MONTH FROM current_date), 1)\n ON CONFLICT (id, is_workspace, month_) DO UPDATE SET usage = usage.usage + 1 \n RETURNING usage.usage",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "usage",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Varchar"
]
},
"nullable": [
false
]
},
"hash": "2e9b3e718440f3c5269e9217a13076c565f3add98b6768b5476bd3afed11ea31"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO flow (workspace_id, path, summary, description, value, edited_by, edited_at, schema, dependency_job, draft_only, tag, dedicated_worker) VALUES ($1, $2, $3, $4, $5, $6, now(), $7::text::json, NULL, $8, $9, $10)",
"query": "INSERT INTO flow (workspace_id, path, summary, description, value, edited_by, edited_at, schema, dependency_job, draft_only, tag, dedicated_worker, visible_to_runner_only) VALUES ($1, $2, $3, $4, $5, $6, now(), $7::text::json, NULL, $8, $9, $10, $11)",
"describe": {
"columns": [],
"parameters": {
@@ -14,10 +14,11 @@
"Text",
"Bool",
"Varchar",
"Bool",
"Bool"
]
},
"nullable": []
},
"hash": "c3da506f47dfb42434debf6e005319147c7513193e853c38cfb7c071d61a3d2e"
"hash": "35e6af0b203e3e4fac9020b037a3c41af92537c0fd5683227767f6a1bd17339f"
}

View File

@@ -0,0 +1,12 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM metrics \n WHERE (id = 'author_count' OR id = 'operator_count' OR id = 'worker_usage') AND created_at < NOW() - INTERVAL '6 month'",
"describe": {
"columns": [],
"parameters": {
"Left": []
},
"nullable": []
},
"hash": "3667d72d23e8c35ab96d5e5d1fbfd94a8a9f74b6398e21f13c206c3f9427c6a9"
}

View File

@@ -1,11 +1,16 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COALESCE((SELECT MIN(started_at) as min_started_at\n FROM queue\n WHERE script_path = $1 AND job_kind != 'dependencies' AND running = true AND workspace_id = $2 AND canceled = false\n GROUP BY script_path), $3)",
"query": "SELECT COALESCE((SELECT MIN(started_at) as min_started_at\n FROM queue\n WHERE script_path = $1 AND job_kind != 'dependencies' AND running = true AND workspace_id = $2 AND canceled = false\n GROUP BY script_path), $3) as min_started_at, now() AS now",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "coalesce",
"name": "min_started_at",
"type_info": "Timestamptz"
},
{
"ordinal": 1,
"name": "now",
"type_info": "Timestamptz"
}
],
@@ -17,8 +22,9 @@
]
},
"nullable": [
null,
null
]
},
"hash": "abc7c72dfe9b01cde6f5b206300ed33e3d15b16bce2510160166a66fb7598e61"
"hash": "3901cce744c9b246b661c817e068bdb3b1ab504ff8070fcccf6c909ad75f1f6d"
}

View File

@@ -1,71 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT app.id, app.path, app.summary, app.versions, app.policy,\n app.extra_perms, app_version.value, \n app_version.created_at, app_version.created_by from app, app_version \n WHERE app_version.id = $1 AND app.id = app_version.app_id AND app.workspace_id = $2",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "path",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "summary",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "versions",
"type_info": "Int8Array"
},
{
"ordinal": 4,
"name": "policy",
"type_info": "Jsonb"
},
{
"ordinal": 5,
"name": "extra_perms",
"type_info": "Jsonb"
},
{
"ordinal": 6,
"name": "value",
"type_info": "Json"
},
{
"ordinal": 7,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 8,
"name": "created_by",
"type_info": "Varchar"
}
],
"parameters": {
"Left": [
"Int8",
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
false,
false
]
},
"hash": "438fb925ee90d5115bd3c3be8ae48b56ba86017af3ca519bd3a15829edaa7d1b"
}

View File

@@ -0,0 +1,17 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO workspace_settings\n (workspace_id, slack_team_id, slack_name, slack_email)\n VALUES ($1, $2, $3, $4) ON CONFLICT (workspace_id) DO UPDATE SET slack_team_id = $2, slack_name = $3, slack_email = $4",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar",
"Varchar",
"Varchar",
"Varchar"
]
},
"nullable": []
},
"hash": "43b376a2eff086a32cd76e54361ce3631feee1565935d2a6ddbecc17950758d1"
}

View File

@@ -1,17 +1,17 @@
{
"db_name": "PostgreSQL",
"query": "SELECT char_length(logs) FROM job_logs WHERE job_id = $1 AND workspace_id = $2",
"query": "SELECT 1 FROM schedule WHERE path = $1 AND workspace_id = $2",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "char_length",
"name": "?column?",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Uuid",
"Text",
"Text"
]
},
@@ -19,5 +19,5 @@
null
]
},
"hash": "9a5c7e8b60a260085b438bd300972ebf948ea26f313ee5a73b85574becdd7dc7"
"hash": "4613382f7b031a2b667f86d9af995065a99a63c407fd58aa293fb269e032121d"
}

View File

@@ -0,0 +1,38 @@
{
"db_name": "PostgreSQL",
"query": "SELECT worker, worker_instance, vcpus, memory FROM worker_ping WHERE ping_at > NOW() - INTERVAL '2 minutes'",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "worker",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "worker_instance",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "vcpus",
"type_info": "Int8"
},
{
"ordinal": 3,
"name": "memory",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
false,
false,
true,
true
]
},
"hash": "4887db074e9058bc0c1887428d6b2a897fe4b30c83f2aa5e9464c156f08f1c3a"
}

View File

@@ -0,0 +1,18 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO resource\n (workspace_id, path, value, description, resource_type)\n VALUES ($1, $2, $3, $4, $5) ON CONFLICT (workspace_id, path) DO UPDATE SET value = $3",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar",
"Varchar",
"Jsonb",
"Text",
"Varchar"
]
},
"nullable": []
},
"hash": "489a62b5943a7a21ce487aa7b72a63dfc6300dd93bc29f5ec4cb1bfc471ad0bf"
}

View File

@@ -1,38 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT success, result, started_at FROM completed_job WHERE workspace_id = $1 AND schedule_path = $2 AND script_path = $3 AND id != $4 ORDER BY created_at DESC LIMIT $5",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "success",
"type_info": "Bool"
},
{
"ordinal": 1,
"name": "result",
"type_info": "Jsonb"
},
{
"ordinal": 2,
"name": "started_at",
"type_info": "Timestamptz"
}
],
"parameters": {
"Left": [
"Text",
"Text",
"Text",
"Uuid",
"Int8"
]
},
"nullable": [
false,
true,
false
]
},
"hash": "4a3917318d967d96c4b6e70786a034302f04da9d1e9eec59b1eb6052c2d947be"
}

View File

@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO variable\n (workspace_id, path, value, is_secret, description, account, is_oauth)\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n ON CONFLICT (workspace_id, path) DO UPDATE SET value = $3",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar",
"Varchar",
"Varchar",
"Bool",
"Varchar",
"Int4",
"Bool"
]
},
"nullable": []
},
"hash": "52c8b4350235bdaab4df79e517d5e42a61a4e1e209d120b2c8bb31ebb7ce1e56"
}

View File

@@ -1,16 +1,17 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE worker_ping SET ping_at = now(), jobs_executed = $1, custom_tags = $2 WHERE worker = $3",
"query": "UPDATE worker_ping SET ping_at = now(), jobs_executed = $1, custom_tags = $2, occupancy_rate = $3, current_job_id = NULL, current_job_workspace_id = NULL WHERE worker = $4",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int4",
"TextArray",
"Float4",
"Text"
]
},
"nullable": []
},
"hash": "47beea5cd6324b53bfb349665fb215280f32b70a617fde87f70ea53ca9ade39f"
"hash": "54fef88cc6b9e8db7c07fccbaa845edfefa339153a32e468faad9f063008863d"
}

View File

@@ -0,0 +1,20 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO variable\n (workspace_id, path, value, is_secret, description, account, is_oauth)\n VALUES ($1, $2, $3, $4, $5, $6, $7)\n ON CONFLICT (workspace_id, path) DO UPDATE SET value = $3",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar",
"Varchar",
"Varchar",
"Bool",
"Varchar",
"Int4",
"Bool"
]
},
"nullable": []
},
"hash": "55a2f170823f1d1abce76287d8817a6cf34de92b9b4079c00b75423a9ff835b9"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "SELECT * FROM workspace_settings WHERE slack_team_id = $1",
"query": "SELECT * FROM workspace_settings WHERE slack_team_id = $1 AND slack_command_script IS NOT NULL",
"describe": {
"columns": [
{
@@ -144,5 +144,5 @@
true
]
},
"hash": "5445083864b2b092b012e894bff7630a1d7b9deb8d33e9f909061f351f96844e"
"hash": "55cb03040bc2a8c53dd7fbb42bbdcc40f463cbc52d94ed9315cf9a547d4c89f2"
}

View File

@@ -1,187 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO schedule (workspace_id, path, schedule, timezone, edited_by, script_path, is_flow, args, enabled, email, on_failure, on_failure_times, on_failure_exact, on_failure_extra_args, on_recovery, on_recovery_times, on_recovery_extra_args, ws_error_handler_muted, retry, summary, no_flow_overlap, tag ) VALUES ( $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22 ) RETURNING *",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "workspace_id",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "path",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "edited_by",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "edited_at",
"type_info": "Timestamptz"
},
{
"ordinal": 4,
"name": "schedule",
"type_info": "Varchar"
},
{
"ordinal": 5,
"name": "enabled",
"type_info": "Bool"
},
{
"ordinal": 6,
"name": "script_path",
"type_info": "Varchar"
},
{
"ordinal": 7,
"name": "args",
"type_info": "Jsonb"
},
{
"ordinal": 8,
"name": "extra_perms",
"type_info": "Jsonb"
},
{
"ordinal": 9,
"name": "is_flow",
"type_info": "Bool"
},
{
"ordinal": 10,
"name": "email",
"type_info": "Varchar"
},
{
"ordinal": 11,
"name": "error",
"type_info": "Text"
},
{
"ordinal": 12,
"name": "timezone",
"type_info": "Varchar"
},
{
"ordinal": 13,
"name": "on_failure",
"type_info": "Varchar"
},
{
"ordinal": 14,
"name": "on_recovery",
"type_info": "Varchar"
},
{
"ordinal": 15,
"name": "on_failure_times",
"type_info": "Int4"
},
{
"ordinal": 16,
"name": "on_failure_exact",
"type_info": "Bool"
},
{
"ordinal": 17,
"name": "on_failure_extra_args",
"type_info": "Json"
},
{
"ordinal": 18,
"name": "on_recovery_times",
"type_info": "Int4"
},
{
"ordinal": 19,
"name": "on_recovery_extra_args",
"type_info": "Json"
},
{
"ordinal": 20,
"name": "ws_error_handler_muted",
"type_info": "Bool"
},
{
"ordinal": 21,
"name": "retry",
"type_info": "Jsonb"
},
{
"ordinal": 22,
"name": "summary",
"type_info": "Varchar"
},
{
"ordinal": 23,
"name": "no_flow_overlap",
"type_info": "Bool"
},
{
"ordinal": 24,
"name": "tag",
"type_info": "Varchar"
}
],
"parameters": {
"Left": [
"Varchar",
"Varchar",
"Varchar",
"Varchar",
"Varchar",
"Varchar",
"Bool",
"Jsonb",
"Bool",
"Varchar",
"Varchar",
"Int4",
"Bool",
"Json",
"Varchar",
"Int4",
"Json",
"Bool",
"Jsonb",
"Varchar",
"Bool",
"Varchar"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
true,
false,
false,
false,
true,
false,
true,
true,
true,
true,
true,
true,
true,
false,
true,
true,
false,
true
]
},
"hash": "597335a4a1eda7799303e0d930b5468af2364f5d2075aab48787b93e5774336d"
}

View File

@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO metrics (id, value) VALUES ('worker_usage', $1)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Jsonb"
]
},
"nullable": []
},
"hash": "5ce9a9e0669b299b998bc9080d24f8d6f56eb049bec2e0745d27ca3a4fc0c296"
}

View File

@@ -0,0 +1,22 @@
{
"db_name": "PostgreSQL",
"query": "SELECT key FROM concurrency_key WHERE job_id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "key",
"type_info": "Varchar"
}
],
"parameters": {
"Left": [
"Uuid"
]
},
"nullable": [
false
]
},
"hash": "5eff32a37ad4e8b499a82c1874061f6456ded4aca6b33964e138b935cb016eff"
}

View File

@@ -1,15 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM schedule WHERE path = $1 AND workspace_id = $2",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Text",
"Text"
]
},
"nullable": []
},
"hash": "61e9662fe42506131222412ab3de48cf6485dea10aa3a2f97c0fd6322a0cb17f"
}

View File

@@ -68,7 +68,8 @@
"snowflake",
"graphql",
"powershell",
"mssql"
"mssql",
"php"
]
}
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO usage (id, is_workspace, month_, usage) \n VALUES ($1, $2, EXTRACT(YEAR FROM current_date) * 12 + EXTRACT(MONTH FROM current_date), 0) \n ON CONFLICT (id, is_workspace, month_) DO UPDATE SET usage = usage.usage + 1 \n RETURNING usage.usage",
"query": "INSERT INTO usage (id, is_workspace, month_, usage)\n VALUES ($1, TRUE, EXTRACT(YEAR FROM current_date) * 12 + EXTRACT(MONTH FROM current_date), 1)\n ON CONFLICT (id, is_workspace, month_) DO UPDATE SET usage = usage.usage + 1 \n RETURNING usage.usage",
"describe": {
"columns": [
{
@@ -11,13 +11,12 @@
],
"parameters": {
"Left": [
"Varchar",
"Bool"
"Varchar"
]
},
"nullable": [
false
]
},
"hash": "bd086c56ad3a58163619122641b93b941ef75880eeeab0756d40f68f87760d5b"
"hash": "621e9a2a53187dac3ebed62f0d645b692815f1594bf302dbebd5f80d5d22b98e"
}

View File

@@ -1,14 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM custom_concurrency_key_ended WHERE ended_at <= now() - ($1::bigint::text || ' s')::interval ",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": []
},
"hash": "636db0b9d5963ed540f18ab732a8b29a3308f973cc04fd10979c44ae19169abf"
}

View File

@@ -1,29 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT path, app_version.value from app LEFT JOIN app_version ON app_version.id = versions[array_upper(versions, 1)] WHERE workspace_id = $1 LIMIT $2",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "path",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "value",
"type_info": "Json"
}
],
"parameters": {
"Left": [
"Text",
"Int8"
]
},
"nullable": [
false,
false
]
},
"hash": "644335d376b6554ab222d25dfa8722234661f2456b469f21b175e8607584614e"
}

View File

@@ -0,0 +1,22 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO worker_ping (worker_instance, worker, ip, custom_tags, worker_group, dedicated_worker, wm_version, vcpus, memory) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) ON CONFLICT (worker) DO UPDATE set ip = $3, custom_tags = $4, worker_group = $5",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar",
"Varchar",
"Varchar",
"TextArray",
"Varchar",
"Varchar",
"Varchar",
"Int8",
"Int8"
]
},
"nullable": []
},
"hash": "6afc5c7cbb3abe11ade0cedf1f7328005ce4de3165cdd998e5a0d27e044c7153"
}

View File

@@ -1,28 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT premium, is_overquota FROM workspace WHERE id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "premium",
"type_info": "Bool"
},
{
"ordinal": 1,
"name": "is_overquota",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
false,
false
]
},
"hash": "6e816fdba0d281d5147ddc5d4d438a3209b811324dba4ac661938e0523210682"
}

View File

@@ -0,0 +1,12 @@
{
"db_name": "PostgreSQL",
"query": "DROP INDEX CONCURRENTLY IF EXISTS labeled_jobs_on_jobs",
"describe": {
"columns": [],
"parameters": {
"Left": []
},
"nullable": []
},
"hash": "6f12be65a4fe3eb39292164363f557de9cef7017dcfbcd40370b849a288c52e3"
}

View File

@@ -0,0 +1,23 @@
{
"db_name": "PostgreSQL",
"query": "SELECT EXISTS (SELECT 1 FROM usr WHERE workspace_id = $1 AND email = $2)",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "exists",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Text",
"Text"
]
},
"nullable": [
null
]
},
"hash": "7142222bee1f60bc56752e377b96ac6e4e981ea219c173146088faf1ad9f3822"
}

View File

@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE workspace_settings\n SET slack_team_id = null, slack_name = null WHERE workspace_id = $1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Text"
]
},
"nullable": []
},
"hash": "73ca6ea13b362b2569ea115d28e4e255cd5e9b990ffa89998ef24871d3a9717c"
}

View File

@@ -0,0 +1,23 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM folder WHERE name = $1 AND workspace_id = $2 RETURNING 1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "?column?",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Text",
"Text"
]
},
"nullable": [
null
]
},
"hash": "748904c35cdbb6c7b8a8e0024b341278bf2bb727f2fe0427847565fb9c774abc"
}

View File

@@ -1,20 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO worker_ping (worker_instance, worker, ip, custom_tags, worker_group, dedicated_worker, wm_version) VALUES ($1, $2, $3, $4, $5, $6, $7) ON CONFLICT (worker) DO UPDATE set ip = $3, custom_tags = $4, worker_group = $5",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar",
"Varchar",
"Varchar",
"TextArray",
"Varchar",
"Varchar",
"Varchar"
]
},
"nullable": []
},
"hash": "7b609ed87f974dfe887778746230b40b485658a75a1186c6ebb4c2de1b52a2fa"
}

View File

@@ -0,0 +1,26 @@
{
"db_name": "PostgreSQL",
"query": "WITH queue_metrics as (\n SELECT id, value, created_at\n FROM metrics\n WHERE id LIKE 'queue_%'\n AND created_at > now() - interval '14 day'\n ORDER BY created_at ASC\n )\n SELECT id, array_agg(json_build_object('value', value, 'created_at', created_at)) as \"values!\"\n FROM queue_metrics\n GROUP BY id\n ORDER BY id ASC",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "values!",
"type_info": "JsonArray"
}
],
"parameters": {
"Left": []
},
"nullable": [
false,
null
]
},
"hash": "7c95f3652de4561b18c1a340db3e0113a4777d38de4468fc41b22ce5b6fd1db7"
}

View File

@@ -0,0 +1,12 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM metrics WHERE id LIKE 'queue_%' AND created_at < NOW() - INTERVAL '14 day'",
"describe": {
"columns": [],
"parameters": {
"Left": []
},
"nullable": []
},
"hash": "7c9a464ac807051b99fe37f2078f1b17f824e6d9b1124db618855a15a98e31f6"
}

View File

@@ -0,0 +1,22 @@
{
"db_name": "PostgreSQL",
"query": "\n SELECT usage.usage FROM usage \n WHERE is_workspace = true \n AND month_ = EXTRACT(YEAR FROM current_date) * 12 + EXTRACT(MONTH FROM current_date)\n AND id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "usage",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
false
]
},
"hash": "82b16e771b6e21c4587b5ebf059e312f43b3e5a48f7599133831dbd65886f5d8"
}

View File

@@ -0,0 +1,20 @@
{
"db_name": "PostgreSQL",
"query": "SELECT created_at FROM metrics WHERE id LIKE 'queue_count_%' ORDER BY created_at DESC LIMIT 1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "created_at",
"type_info": "Timestamptz"
}
],
"parameters": {
"Left": []
},
"nullable": [
false
]
},
"hash": "82f6674f19e8ad51a992505a46f46fc4a48172f104e9e849f755ac041c3eef92"
}

View File

@@ -0,0 +1,15 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO metrics (id, value) VALUES ($1, $2)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar",
"Jsonb"
]
},
"nullable": []
},
"hash": "8824b382c4e98dfa17b4aa656af3a6c1ff99973e778d71bd598a50d022da8f15"
}

View File

@@ -0,0 +1,12 @@
{
"db_name": "PostgreSQL",
"query": "CREATE INDEX CONCURRENTLY labeled_jobs_on_jobs ON completed_job USING GIN ((result -> 'wm_labels')) WHERE result ? 'wm_label';",
"describe": {
"columns": [],
"parameters": {
"Left": []
},
"nullable": []
},
"hash": "89e72f997e27b9298bd923e7f2b546c5ff061bd9ed63798024306456ca148aec"
}

View File

@@ -1,30 +1,40 @@
{
"db_name": "PostgreSQL",
"query": "select tag, concurrent_limit, concurrency_time_window_s, cache_ttl, language as \"language: ScriptLang\", dedicated_worker, priority, delete_after_use, timeout from script where hash = $1 AND workspace_id = $2",
"query": "select path, tag, concurrency_key, concurrent_limit, concurrency_time_window_s, cache_ttl, language as \"language: ScriptLang\", dedicated_worker, priority, delete_after_use, timeout from script where hash = $1 AND workspace_id = $2",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "tag",
"name": "path",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "tag",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "concurrency_key",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "concurrent_limit",
"type_info": "Int4"
},
{
"ordinal": 2,
"ordinal": 4,
"name": "concurrency_time_window_s",
"type_info": "Int4"
},
{
"ordinal": 3,
"ordinal": 5,
"name": "cache_ttl",
"type_info": "Int4"
},
{
"ordinal": 4,
"ordinal": 6,
"name": "language: ScriptLang",
"type_info": {
"Custom": {
@@ -43,29 +53,30 @@
"snowflake",
"graphql",
"powershell",
"mssql"
"mssql",
"php"
]
}
}
}
},
{
"ordinal": 5,
"ordinal": 7,
"name": "dedicated_worker",
"type_info": "Bool"
},
{
"ordinal": 6,
"ordinal": 8,
"name": "priority",
"type_info": "Int2"
},
{
"ordinal": 7,
"ordinal": 9,
"name": "delete_after_use",
"type_info": "Bool"
},
{
"ordinal": 8,
"ordinal": 10,
"name": "timeout",
"type_info": "Int4"
}
@@ -77,6 +88,8 @@
]
},
"nullable": [
false,
true,
true,
true,
true,
@@ -88,5 +101,5 @@
true
]
},
"hash": "6b313cc9a57ae3c943bda4a3213f7f6231a44b6ef5a52754074d136007f4f72a"
"hash": "8b10c9ade85c0307e300224e87962ceba8e7ccbe53b56c4670a1634bb9d0e89c"
}

View File

@@ -0,0 +1,16 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE worker_ping SET ping_at = now(), current_job_id = $1, current_job_workspace_id = $2 WHERE worker = $3",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Uuid",
"Varchar",
"Text"
]
},
"nullable": []
},
"hash": "8c62e3bb264c7336b3b3a68677993ba3b729c7358cc3da14513d8b447ce65aaf"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM queue WHERE schedule_path = $1 AND running = false AND workspace_id = $2",
"query": "DELETE FROM queue WHERE schedule_path = $1 AND running = false AND workspace_id = $2 AND is_flow_step = false",
"describe": {
"columns": [],
"parameters": {
@@ -11,5 +11,5 @@
},
"nullable": []
},
"hash": "ade89de6e8527c543b182229f1febeb2513ad58b03ab526df148582264fb3a44"
"hash": "8d4235984f27d8b939ffd5c660d5b57dc38dd3b2643361ed3b7cdcd1534d2e21"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO script (workspace_id, hash, path, parent_hashes, summary, description, content, created_by, schema, is_template, extra_perms, lock, language, kind, tag, draft_only, envs, concurrent_limit, concurrency_time_window_s, cache_ttl, dedicated_worker, ws_error_handler_muted, priority, restart_unless_cancelled, delete_after_use, timeout, concurrency_key) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9::text::json, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27)",
"query": "INSERT INTO script (workspace_id, hash, path, parent_hashes, summary, description, content, created_by, schema, is_template, extra_perms, lock, language, kind, tag, draft_only, envs, concurrent_limit, concurrency_time_window_s, cache_ttl, dedicated_worker, ws_error_handler_muted, priority, restart_unless_cancelled, delete_after_use, timeout, concurrency_key, visible_to_runner_only, no_main_func, codebase) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9::text::json, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30)",
"describe": {
"columns": [],
"parameters": {
@@ -34,7 +34,8 @@
"snowflake",
"graphql",
"powershell",
"mssql"
"mssql",
"php"
]
}
}
@@ -65,10 +66,13 @@
"Bool",
"Bool",
"Int4",
"Varchar",
"Bool",
"Bool",
"Varchar"
]
},
"nullable": []
},
"hash": "260feb784bb0b223bd9276d6a82bd26be90efb17a4323b9673e93ff88513942a"
"hash": "8e7ff45c5378c3a3406ba94dc0653afa5d28c072203617c598caefaaf1bafcfb"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO workspace SELECT $1, $2, owner, deleted, premium, is_overquota FROM workspace WHERE id = $3",
"query": "INSERT INTO workspace SELECT $1, $2, owner, deleted, premium FROM workspace WHERE id = $3",
"describe": {
"columns": [],
"parameters": {
@@ -12,5 +12,5 @@
},
"nullable": []
},
"hash": "6d89ac43c4ae3a17167a44c802df72bc506803b79fe93ab3b203fb0690b1bef1"
"hash": "8f0031533f1bf407bd5d8af4d364eaf00d4c38ee7ba75141b40fc9fcd2ffc0b8"
}

View File

@@ -1,182 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE schedule SET schedule = $1, timezone = $2, args = $3, on_failure = $4, on_failure_times = $5, on_failure_exact = $6, on_failure_extra_args = $7, on_recovery = $8, on_recovery_times = $9, on_recovery_extra_args = $10, ws_error_handler_muted = $11, retry = $12, summary = $13, no_flow_overlap = $14, tag = $15\n WHERE path = $16 AND workspace_id = $17 RETURNING *",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "workspace_id",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "path",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "edited_by",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "edited_at",
"type_info": "Timestamptz"
},
{
"ordinal": 4,
"name": "schedule",
"type_info": "Varchar"
},
{
"ordinal": 5,
"name": "enabled",
"type_info": "Bool"
},
{
"ordinal": 6,
"name": "script_path",
"type_info": "Varchar"
},
{
"ordinal": 7,
"name": "args",
"type_info": "Jsonb"
},
{
"ordinal": 8,
"name": "extra_perms",
"type_info": "Jsonb"
},
{
"ordinal": 9,
"name": "is_flow",
"type_info": "Bool"
},
{
"ordinal": 10,
"name": "email",
"type_info": "Varchar"
},
{
"ordinal": 11,
"name": "error",
"type_info": "Text"
},
{
"ordinal": 12,
"name": "timezone",
"type_info": "Varchar"
},
{
"ordinal": 13,
"name": "on_failure",
"type_info": "Varchar"
},
{
"ordinal": 14,
"name": "on_recovery",
"type_info": "Varchar"
},
{
"ordinal": 15,
"name": "on_failure_times",
"type_info": "Int4"
},
{
"ordinal": 16,
"name": "on_failure_exact",
"type_info": "Bool"
},
{
"ordinal": 17,
"name": "on_failure_extra_args",
"type_info": "Json"
},
{
"ordinal": 18,
"name": "on_recovery_times",
"type_info": "Int4"
},
{
"ordinal": 19,
"name": "on_recovery_extra_args",
"type_info": "Json"
},
{
"ordinal": 20,
"name": "ws_error_handler_muted",
"type_info": "Bool"
},
{
"ordinal": 21,
"name": "retry",
"type_info": "Jsonb"
},
{
"ordinal": 22,
"name": "summary",
"type_info": "Varchar"
},
{
"ordinal": 23,
"name": "no_flow_overlap",
"type_info": "Bool"
},
{
"ordinal": 24,
"name": "tag",
"type_info": "Varchar"
}
],
"parameters": {
"Left": [
"Varchar",
"Varchar",
"Jsonb",
"Varchar",
"Int4",
"Bool",
"Json",
"Varchar",
"Int4",
"Json",
"Bool",
"Jsonb",
"Varchar",
"Bool",
"Varchar",
"Text",
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
true,
false,
false,
false,
true,
false,
true,
true,
true,
true,
true,
true,
true,
false,
true,
true,
false,
true
]
},
"hash": "90435687152ccd37db7e0a6a5baeb558db50f5f96b1e8eff0b10e4398566f325"
}

View File

@@ -1,168 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE schedule SET path = $1, script_path = $1 WHERE path = $2 AND workspace_id = $3 AND is_flow IS true RETURNING *",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "workspace_id",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "path",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "edited_by",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "edited_at",
"type_info": "Timestamptz"
},
{
"ordinal": 4,
"name": "schedule",
"type_info": "Varchar"
},
{
"ordinal": 5,
"name": "enabled",
"type_info": "Bool"
},
{
"ordinal": 6,
"name": "script_path",
"type_info": "Varchar"
},
{
"ordinal": 7,
"name": "args",
"type_info": "Jsonb"
},
{
"ordinal": 8,
"name": "extra_perms",
"type_info": "Jsonb"
},
{
"ordinal": 9,
"name": "is_flow",
"type_info": "Bool"
},
{
"ordinal": 10,
"name": "email",
"type_info": "Varchar"
},
{
"ordinal": 11,
"name": "error",
"type_info": "Text"
},
{
"ordinal": 12,
"name": "timezone",
"type_info": "Varchar"
},
{
"ordinal": 13,
"name": "on_failure",
"type_info": "Varchar"
},
{
"ordinal": 14,
"name": "on_recovery",
"type_info": "Varchar"
},
{
"ordinal": 15,
"name": "on_failure_times",
"type_info": "Int4"
},
{
"ordinal": 16,
"name": "on_failure_exact",
"type_info": "Bool"
},
{
"ordinal": 17,
"name": "on_failure_extra_args",
"type_info": "Json"
},
{
"ordinal": 18,
"name": "on_recovery_times",
"type_info": "Int4"
},
{
"ordinal": 19,
"name": "on_recovery_extra_args",
"type_info": "Json"
},
{
"ordinal": 20,
"name": "ws_error_handler_muted",
"type_info": "Bool"
},
{
"ordinal": 21,
"name": "retry",
"type_info": "Jsonb"
},
{
"ordinal": 22,
"name": "summary",
"type_info": "Varchar"
},
{
"ordinal": 23,
"name": "no_flow_overlap",
"type_info": "Bool"
},
{
"ordinal": 24,
"name": "tag",
"type_info": "Varchar"
}
],
"parameters": {
"Left": [
"Varchar",
"Text",
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
true,
false,
false,
false,
true,
false,
true,
true,
true,
true,
true,
true,
true,
false,
true,
true,
false,
true
]
},
"hash": "911b1e1f2a5ba6d5159916e5598020e680c45043b0736ad0153ee261a151dd90"
}

View File

@@ -0,0 +1,22 @@
{
"db_name": "PostgreSQL",
"query": "SELECT usage.usage + 1 FROM usage \n WHERE is_workspace IS FALSE AND\n month_ = EXTRACT(YEAR FROM current_date) * 12 + EXTRACT(MONTH FROM current_date)\n AND id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "?column?",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
null
]
},
"hash": "94ff696b4d3904e3823ef637fa8f1f0d0bdac01040c81b31514326417eb58cee"
}

View File

@@ -1,18 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO folder\n (workspace_id, name, display_name, owners, extra_perms)\n VALUES ($1, $2, $3, $4, $5) ON CONFLICT DO NOTHING",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar",
"Varchar",
"Varchar",
"VarcharArray",
"Jsonb"
]
},
"nullable": []
},
"hash": "95ebdfaf0510b9cad861568cd25d479759d4ea3c3ff4e136aad13a3521525372"
}

View File

@@ -1,169 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE schedule SET enabled = $1, email = $2 WHERE path = $3 AND workspace_id = $4 RETURNING *",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "workspace_id",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "path",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "edited_by",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "edited_at",
"type_info": "Timestamptz"
},
{
"ordinal": 4,
"name": "schedule",
"type_info": "Varchar"
},
{
"ordinal": 5,
"name": "enabled",
"type_info": "Bool"
},
{
"ordinal": 6,
"name": "script_path",
"type_info": "Varchar"
},
{
"ordinal": 7,
"name": "args",
"type_info": "Jsonb"
},
{
"ordinal": 8,
"name": "extra_perms",
"type_info": "Jsonb"
},
{
"ordinal": 9,
"name": "is_flow",
"type_info": "Bool"
},
{
"ordinal": 10,
"name": "email",
"type_info": "Varchar"
},
{
"ordinal": 11,
"name": "error",
"type_info": "Text"
},
{
"ordinal": 12,
"name": "timezone",
"type_info": "Varchar"
},
{
"ordinal": 13,
"name": "on_failure",
"type_info": "Varchar"
},
{
"ordinal": 14,
"name": "on_recovery",
"type_info": "Varchar"
},
{
"ordinal": 15,
"name": "on_failure_times",
"type_info": "Int4"
},
{
"ordinal": 16,
"name": "on_failure_exact",
"type_info": "Bool"
},
{
"ordinal": 17,
"name": "on_failure_extra_args",
"type_info": "Json"
},
{
"ordinal": 18,
"name": "on_recovery_times",
"type_info": "Int4"
},
{
"ordinal": 19,
"name": "on_recovery_extra_args",
"type_info": "Json"
},
{
"ordinal": 20,
"name": "ws_error_handler_muted",
"type_info": "Bool"
},
{
"ordinal": 21,
"name": "retry",
"type_info": "Jsonb"
},
{
"ordinal": 22,
"name": "summary",
"type_info": "Varchar"
},
{
"ordinal": 23,
"name": "no_flow_overlap",
"type_info": "Bool"
},
{
"ordinal": 24,
"name": "tag",
"type_info": "Varchar"
}
],
"parameters": {
"Left": [
"Bool",
"Varchar",
"Text",
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
true,
false,
false,
false,
true,
false,
true,
true,
true,
true,
true,
true,
true,
false,
true,
true,
false,
true
]
},
"hash": "96dc1cd308f3c21cfb50b88048054dc03f93e261d25969d66aa48e9d0502960f"
}

View File

@@ -1,14 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO custom_concurrency_key_ended VALUES ($1)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar"
]
},
"nullable": []
},
"hash": "973933b021d2167edff3a48ec4d4abc53ada670155921a4a4c2f05f229ae560a"
}

View File

@@ -1,71 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT app.id, app.path, app.summary, app.versions, app.policy,\n app.extra_perms, app_version.value, \n app_version.created_at, app_version.created_by from app, app_version \n WHERE app.id = $1 AND app.workspace_id = $2 AND app_version.id = app.versions[array_upper(app.versions, 1)]",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "path",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "summary",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "versions",
"type_info": "Int8Array"
},
{
"ordinal": 4,
"name": "policy",
"type_info": "Jsonb"
},
{
"ordinal": 5,
"name": "extra_perms",
"type_info": "Jsonb"
},
{
"ordinal": 6,
"name": "value",
"type_info": "Json"
},
{
"ordinal": 7,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 8,
"name": "created_by",
"type_info": "Varchar"
}
],
"parameters": {
"Left": [
"Int8",
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
false,
false
]
},
"hash": "9ae98fbcea508dfc7113621c00b856f98f38dfb701a4660ea1a4058a6d7564f2"
}

View File

@@ -0,0 +1,15 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO metrics (id, value)\n VALUES ($1, to_jsonb((SELECT EXTRACT(EPOCH FROM now() - scheduled_for)\n FROM queue WHERE tag = $2 AND running = false AND scheduled_for <= now() - ('3 seconds')::interval\n ORDER BY priority DESC NULLS LAST, scheduled_for, created_at LIMIT 1)))",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar",
"Text"
]
},
"nullable": []
},
"hash": "9bf41c3161a02b7d0731c4e1d79519cef5255f5df1b759af3aa4985bb64313e5"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "select hash, tag, concurrent_limit, concurrency_time_window_s, cache_ttl, language as \"language: ScriptLang\", dedicated_worker, priority, delete_after_use, timeout from script where path = $1 AND workspace_id = $2 AND\n created_at = (SELECT max(created_at) FROM script WHERE path = $1 AND workspace_id = $2 AND\n deleted = false AND lock IS not NULL AND lock_error_logs IS NULL)",
"query": "select hash, tag, concurrency_key, concurrent_limit, concurrency_time_window_s, cache_ttl, language as \"language: ScriptLang\", dedicated_worker, priority, timeout FROM script where path = $1 AND workspace_id = $2 AND\n created_at = (SELECT max(created_at) FROM script WHERE path = $1 AND workspace_id = $2 AND\n deleted = false AND archived = false)",
"describe": {
"columns": [
{
@@ -15,21 +15,26 @@
},
{
"ordinal": 2,
"name": "concurrency_key",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "concurrent_limit",
"type_info": "Int4"
},
{
"ordinal": 3,
"ordinal": 4,
"name": "concurrency_time_window_s",
"type_info": "Int4"
},
{
"ordinal": 4,
"ordinal": 5,
"name": "cache_ttl",
"type_info": "Int4"
},
{
"ordinal": 5,
"ordinal": 6,
"name": "language: ScriptLang",
"type_info": {
"Custom": {
@@ -48,27 +53,23 @@
"snowflake",
"graphql",
"powershell",
"mssql"
"mssql",
"php"
]
}
}
}
},
{
"ordinal": 6,
"ordinal": 7,
"name": "dedicated_worker",
"type_info": "Bool"
},
{
"ordinal": 7,
"ordinal": 8,
"name": "priority",
"type_info": "Int2"
},
{
"ordinal": 8,
"name": "delete_after_use",
"type_info": "Bool"
},
{
"ordinal": 9,
"name": "timeout",
@@ -87,12 +88,12 @@
true,
true,
true,
false,
true,
false,
true,
true,
true
]
},
"hash": "ef132ac8d79579b08d7359789b6f22991f51e1c945efc2924df6253d62b83bba"
"hash": "9d25fbd21a63e6e9ccfdbf0460c8b3ca6d7fa05600067f379659b59b6f2bf418"
}

View File

@@ -48,7 +48,8 @@
"snowflake",
"graphql",
"powershell",
"mssql"
"mssql",
"php"
]
}
}

View File

@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM concurrency_key WHERE ended_at <= now() - ($1::bigint::text || ' s')::interval ",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int8"
]
},
"nullable": []
},
"hash": "9da0cea2a5d0464ca78cfeccf6cedf2b1c0e6e6cb3c9183a937a68465debdb06"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "SELECT concurrency_key FROM script WHERE hash = $1",
"query": "SELECT concurrency_key FROM script WHERE hash = $1 AND workspace_id = $2",
"describe": {
"columns": [
{
@@ -11,12 +11,13 @@
],
"parameters": {
"Left": [
"Int8"
"Int8",
"Text"
]
},
"nullable": [
true
]
},
"hash": "2719f910142b32476a16025bb9836b0cab019ba0a436b330ea3a53fba4725f73"
"hash": "a3ccf362b4f6df400b3c7a084795dbf541eb14c5c374656ffb96da7283a2a6f1"
}

View File

@@ -0,0 +1,22 @@
{
"db_name": "PostgreSQL",
"query": "SELECT usage.usage + 1 FROM usage \n WHERE is_workspace IS TRUE AND\n month_ = EXTRACT(YEAR FROM current_date) * 12 + EXTRACT(MONTH FROM current_date)\n AND id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "?column?",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
null
]
},
"hash": "a405e637f5f3b3203de6d65dfcb0ba1be406ee5167f7b8aa90213ef52c97441f"
}

View File

@@ -0,0 +1,23 @@
{
"db_name": "PostgreSQL",
"query": "SELECT value->>'concurrency_key' FROM flow WHERE path = $1 AND workspace_id = $2",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "?column?",
"type_info": "Text"
}
],
"parameters": {
"Left": [
"Text",
"Text"
]
},
"nullable": [
null
]
},
"hash": "a875cb56485b812e9d4739afd0915067f7e5abe0ca0adf264b792fccf21e005b"
}

View File

@@ -1,167 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT * FROM schedule WHERE path = $1 AND workspace_id = $2",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "workspace_id",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "path",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "edited_by",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "edited_at",
"type_info": "Timestamptz"
},
{
"ordinal": 4,
"name": "schedule",
"type_info": "Varchar"
},
{
"ordinal": 5,
"name": "enabled",
"type_info": "Bool"
},
{
"ordinal": 6,
"name": "script_path",
"type_info": "Varchar"
},
{
"ordinal": 7,
"name": "args",
"type_info": "Jsonb"
},
{
"ordinal": 8,
"name": "extra_perms",
"type_info": "Jsonb"
},
{
"ordinal": 9,
"name": "is_flow",
"type_info": "Bool"
},
{
"ordinal": 10,
"name": "email",
"type_info": "Varchar"
},
{
"ordinal": 11,
"name": "error",
"type_info": "Text"
},
{
"ordinal": 12,
"name": "timezone",
"type_info": "Varchar"
},
{
"ordinal": 13,
"name": "on_failure",
"type_info": "Varchar"
},
{
"ordinal": 14,
"name": "on_recovery",
"type_info": "Varchar"
},
{
"ordinal": 15,
"name": "on_failure_times",
"type_info": "Int4"
},
{
"ordinal": 16,
"name": "on_failure_exact",
"type_info": "Bool"
},
{
"ordinal": 17,
"name": "on_failure_extra_args",
"type_info": "Json"
},
{
"ordinal": 18,
"name": "on_recovery_times",
"type_info": "Int4"
},
{
"ordinal": 19,
"name": "on_recovery_extra_args",
"type_info": "Json"
},
{
"ordinal": 20,
"name": "ws_error_handler_muted",
"type_info": "Bool"
},
{
"ordinal": 21,
"name": "retry",
"type_info": "Jsonb"
},
{
"ordinal": 22,
"name": "summary",
"type_info": "Varchar"
},
{
"ordinal": 23,
"name": "no_flow_overlap",
"type_info": "Bool"
},
{
"ordinal": 24,
"name": "tag",
"type_info": "Varchar"
}
],
"parameters": {
"Left": [
"Text",
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
true,
false,
false,
false,
true,
false,
true,
true,
true,
true,
true,
true,
true,
false,
true,
true,
false,
true
]
},
"hash": "aa2800113a8a8805f47cdc1dd0f29d94c546fe531e7edd3e91da4978af5442fb"
}

View File

@@ -0,0 +1,23 @@
{
"db_name": "PostgreSQL",
"query": "SELECT raw_flow->'modules'->$2::int->'retry' FROM queue WHERE id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "?column?",
"type_info": "Jsonb"
}
],
"parameters": {
"Left": [
"Uuid",
"Int4"
]
},
"nullable": [
null
]
},
"hash": "ae2f005af8ab4b035a907e0c8fc9a9d035f3eb1d9d833041969fce967daa91a4"
}

View File

@@ -1,83 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT app.id, app.path, app.summary, app.versions, app.policy,\n app.extra_perms, app_version.value, \n app_version.created_at, app_version.created_by,\n app.draft_only, draft.value as \"draft?\"\n from app\n INNER JOIN app_version ON\n app_version.id = app.versions[array_upper(app.versions, 1)]\n LEFT JOIN draft ON \n app.path = draft.path AND draft.workspace_id = $2 AND draft.typ = 'app' \n WHERE app.path = $1 AND app.workspace_id = $2",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "path",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "summary",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "versions",
"type_info": "Int8Array"
},
{
"ordinal": 4,
"name": "policy",
"type_info": "Jsonb"
},
{
"ordinal": 5,
"name": "extra_perms",
"type_info": "Jsonb"
},
{
"ordinal": 6,
"name": "value",
"type_info": "Json"
},
{
"ordinal": 7,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 8,
"name": "created_by",
"type_info": "Varchar"
},
{
"ordinal": 9,
"name": "draft_only",
"type_info": "Bool"
},
{
"ordinal": 10,
"name": "draft?",
"type_info": "Json"
}
],
"parameters": {
"Left": [
"Text",
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
true,
false
]
},
"hash": "aedba9cff117a7069dfd56602110b7f66903d6afb4f87fbffe0175982ea8741f"
}

View File

@@ -0,0 +1,22 @@
{
"db_name": "PostgreSQL",
"query": "SELECT id FROM queue WHERE parent_job = $1 AND suspend > 0 ORDER by suspend",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
}
],
"parameters": {
"Left": [
"Uuid"
]
},
"nullable": [
false
]
},
"hash": "b8d97d300ffe6fae99f2396ae07cef03903752d17ce3fdadca47d86da75139aa"
}

View File

@@ -0,0 +1,23 @@
{
"db_name": "PostgreSQL",
"query": "SELECT args FROM completed_job WHERE id = $1 AND workspace_id = $2 UNION ALL SELECT args FROM input WHERE id = $1 AND workspace_id = $2",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "args",
"type_info": "Jsonb"
}
],
"parameters": {
"Left": [
"Uuid",
"Text"
]
},
"nullable": [
null
]
},
"hash": "bbd5f968d7b62a55a7ebf7b98cfd411678ce544fdb9472d8d223235fb2818aaf"
}

View File

@@ -1,14 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE workspace_settings\n SET slack_team_id = null, slack_name = null WHERE workspace_id = $1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Text"
]
},
"nullable": []
},
"hash": "bf1d8e043338867e1da1ed236ff6c85a566d5fd58d4b0d5c3a10454513811ba3"
}

View File

@@ -1,168 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE schedule SET script_path = $1 WHERE script_path = $2 AND path != $2 AND workspace_id = $3 AND is_flow IS false RETURNING *",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "workspace_id",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "path",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "edited_by",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "edited_at",
"type_info": "Timestamptz"
},
{
"ordinal": 4,
"name": "schedule",
"type_info": "Varchar"
},
{
"ordinal": 5,
"name": "enabled",
"type_info": "Bool"
},
{
"ordinal": 6,
"name": "script_path",
"type_info": "Varchar"
},
{
"ordinal": 7,
"name": "args",
"type_info": "Jsonb"
},
{
"ordinal": 8,
"name": "extra_perms",
"type_info": "Jsonb"
},
{
"ordinal": 9,
"name": "is_flow",
"type_info": "Bool"
},
{
"ordinal": 10,
"name": "email",
"type_info": "Varchar"
},
{
"ordinal": 11,
"name": "error",
"type_info": "Text"
},
{
"ordinal": 12,
"name": "timezone",
"type_info": "Varchar"
},
{
"ordinal": 13,
"name": "on_failure",
"type_info": "Varchar"
},
{
"ordinal": 14,
"name": "on_recovery",
"type_info": "Varchar"
},
{
"ordinal": 15,
"name": "on_failure_times",
"type_info": "Int4"
},
{
"ordinal": 16,
"name": "on_failure_exact",
"type_info": "Bool"
},
{
"ordinal": 17,
"name": "on_failure_extra_args",
"type_info": "Json"
},
{
"ordinal": 18,
"name": "on_recovery_times",
"type_info": "Int4"
},
{
"ordinal": 19,
"name": "on_recovery_extra_args",
"type_info": "Json"
},
{
"ordinal": 20,
"name": "ws_error_handler_muted",
"type_info": "Bool"
},
{
"ordinal": 21,
"name": "retry",
"type_info": "Jsonb"
},
{
"ordinal": 22,
"name": "summary",
"type_info": "Varchar"
},
{
"ordinal": 23,
"name": "no_flow_overlap",
"type_info": "Bool"
},
{
"ordinal": 24,
"name": "tag",
"type_info": "Varchar"
}
],
"parameters": {
"Left": [
"Varchar",
"Text",
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
true,
false,
false,
false,
true,
false,
true,
true,
true,
true,
true,
true,
true,
false,
true,
true,
false,
true
]
},
"hash": "c10348d26e3e3dc9e345d9044db35db9906617eb9c98aaf58a55d9681ffb85e3"
}

View File

@@ -0,0 +1,26 @@
{
"db_name": "PostgreSQL",
"query": "WITH all_users as (SELECT count(*)::INT as count FROM usr WHERE disabled IS false),\n authors as (SELECT count(distinct email)::INT as count FROM usr WHERE usr.operator IS false AND disabled IS false)\n SELECT authors.count as author_count, all_users.count - authors.count as operator_count FROM all_users, authors",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "author_count",
"type_info": "Int4"
},
{
"ordinal": 1,
"name": "operator_count",
"type_info": "Int4"
}
],
"parameters": {
"Left": []
},
"nullable": [
null,
null
]
},
"hash": "c584aeec21716f7405c355d5684ff3ac1be3f70849d67b8c2d4787e809b7ea2b"
}

View File

@@ -0,0 +1,15 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO metrics (id, value) VALUES ('author_count', $1), ('operator_count', $2)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Jsonb",
"Jsonb"
]
},
"nullable": []
},
"hash": "c6b2791dd109c7bf40a40b557d9d5a140e70c49718fcb3a776b77f8f2ab901d4"
}

View File

@@ -1,14 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE worker_ping SET ping_at = now() WHERE worker = $1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Text"
]
},
"nullable": []
},
"hash": "c9d97800eb0ec87df8e8959b283dacb2c6cce422365ed394375641488ceb6b65"
}

View File

@@ -0,0 +1,15 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO usage (id, is_workspace, month_, usage) \n VALUES ($1, TRUE, EXTRACT(YEAR FROM current_date) * 12 + EXTRACT(MONTH FROM current_date), $2) \n ON CONFLICT (id, is_workspace, month_) DO UPDATE SET usage = usage.usage + $2",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar",
"Int4"
]
},
"nullable": []
},
"hash": "ca3ba808e020c8c7a35eaef842b20cfeee64fd47ded72fce55cc75e0bbb291a8"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE queue SET canceled = true, canceled_by = $2, scheduled_for = now(), suspend = 0 WHERE scheduled_for < now() AND workspace_id = $1 AND schedule_path IS NULL RETURNING id, running, is_flow_step",
"query": "SELECT id, running, is_flow_step FROM queue WHERE scheduled_for < now() AND workspace_id = $1 AND schedule_path IS NULL",
"describe": {
"columns": [
{
@@ -21,8 +21,7 @@
],
"parameters": {
"Left": [
"Text",
"Varchar"
"Text"
]
},
"nullable": [
@@ -31,5 +30,5 @@
true
]
},
"hash": "18699cb0eca25b6bde05d81571dfdea8cafd0043634f61b0f652a93767c9c30a"
"hash": "caeb49629b8673c1f1c84a6e40c3e2d2c3bc3fdbde530a0a6b6fd68a22b867c3"
}

View File

@@ -1,71 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "SELECT app.id, app.path, app.summary, app.versions, app.policy,\n app.extra_perms, app_version.value, \n app_version.created_at, app_version.created_by from app, app_version \n WHERE app.path = $1 AND app.workspace_id = $2 AND app_version.id = app.versions[array_upper(app.versions, 1)]",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "path",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "summary",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "versions",
"type_info": "Int8Array"
},
{
"ordinal": 4,
"name": "policy",
"type_info": "Jsonb"
},
{
"ordinal": 5,
"name": "extra_perms",
"type_info": "Jsonb"
},
{
"ordinal": 6,
"name": "value",
"type_info": "Json"
},
{
"ordinal": 7,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 8,
"name": "created_by",
"type_info": "Varchar"
}
],
"parameters": {
"Left": [
"Text",
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
false,
false
]
},
"hash": "d07faf1c9501d1bc5f6fd9588bb3da7b7f4897fcfd26dcb3b8ce406b1f653077"
}

View File

@@ -0,0 +1,23 @@
{
"db_name": "PostgreSQL",
"query": "DELETE FROM schedule WHERE path = $1 AND workspace_id = $2 RETURNING 1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "?column?",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Text",
"Text"
]
},
"nullable": [
null
]
},
"hash": "d1ded8b38e50eb01fa5e5e122dae48ec21856a0041f4aeb244349ab7648d306f"
}

View File

@@ -0,0 +1,23 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE queue SET canceled = true, canceled_by = $1, scheduled_for = now(), suspend = 0 WHERE id = $2 RETURNING 1 as one",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "one",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Varchar",
"Uuid"
]
},
"nullable": [
null
]
},
"hash": "d4fb94ee8198592c24e85d29078feb5220ab367e339510ee0e83bb7b5abfd184"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO completed_job AS cj\n ( workspace_id\n , id\n , parent_job\n , created_by\n , created_at\n , started_at\n , duration_ms\n , success\n , script_hash\n , script_path\n , args\n , result\n , raw_code\n , raw_lock\n , canceled\n , canceled_by\n , canceled_reason\n , job_kind\n , schedule_path\n , permissioned_as\n , flow_status\n , raw_flow\n , is_flow_step\n , is_skipped\n , language\n , email\n , visible_to_owner\n , mem_peak\n , tag\n , priority\n )\n VALUES ($1, $2, $3, $4, $5, COALESCE($6, now()), COALESCE($25, (EXTRACT('epoch' FROM (now())) - EXTRACT('epoch' FROM (COALESCE($6, now()))))*1000), $7, $8, $9,$10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $26, $27, $28, $29, $30)\n ON CONFLICT (id) DO UPDATE SET success = $7, result = $11 RETURNING duration_ms",
"query": "INSERT INTO completed_job AS cj\n ( workspace_id\n , id\n , parent_job\n , created_by\n , created_at\n , started_at\n , duration_ms\n , success\n , script_hash\n , script_path\n , args\n , result\n , raw_code\n , raw_lock\n , canceled\n , canceled_by\n , canceled_reason\n , job_kind\n , schedule_path\n , permissioned_as\n , flow_status\n , raw_flow\n , is_flow_step\n , is_skipped\n , language\n , email\n , visible_to_owner\n , mem_peak\n , tag\n , priority\n )\n VALUES ($1, $2, $3, $4, $5, COALESCE($6, now()), (EXTRACT('epoch' FROM (now())) - EXTRACT('epoch' FROM (COALESCE($6, now()))))*1000, $7, $8, $9,$10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29)\n ON CONFLICT (id) DO UPDATE SET success = $7, result = $11 RETURNING duration_ms",
"describe": {
"columns": [
{
@@ -74,12 +74,12 @@
"snowflake",
"graphql",
"powershell",
"mssql"
"mssql",
"php"
]
}
}
},
"Numeric",
"Varchar",
"Bool",
"Int4",
@@ -91,5 +91,5 @@
false
]
},
"hash": "2ade671449393541fa565088b21268dad137314d250f7ded502defb9a6de0b2f"
"hash": "d5a8614286c170e0d175903cd1b53ff66b37ed8110a0b67aedb9f25e6a7383e1"
}

View File

@@ -1,22 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "\n SELECT usage.usage + 1 FROM usage \n WHERE is_workspace = false AND\n month_ = EXTRACT(YEAR FROM current_date) * 12 + EXTRACT(MONTH FROM current_date)\n AND id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "?column?",
"type_info": "Int4"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
null
]
},
"hash": "d918e1d3a1ccc36ca8b4b25aeeec1cb55aadaf1e6609a1aad09b0515c93a667a"
}

View File

@@ -1,168 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE schedule SET path = $1, script_path = $1 WHERE path = $2 AND workspace_id = $3 AND is_flow IS false RETURNING *",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "workspace_id",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "path",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "edited_by",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "edited_at",
"type_info": "Timestamptz"
},
{
"ordinal": 4,
"name": "schedule",
"type_info": "Varchar"
},
{
"ordinal": 5,
"name": "enabled",
"type_info": "Bool"
},
{
"ordinal": 6,
"name": "script_path",
"type_info": "Varchar"
},
{
"ordinal": 7,
"name": "args",
"type_info": "Jsonb"
},
{
"ordinal": 8,
"name": "extra_perms",
"type_info": "Jsonb"
},
{
"ordinal": 9,
"name": "is_flow",
"type_info": "Bool"
},
{
"ordinal": 10,
"name": "email",
"type_info": "Varchar"
},
{
"ordinal": 11,
"name": "error",
"type_info": "Text"
},
{
"ordinal": 12,
"name": "timezone",
"type_info": "Varchar"
},
{
"ordinal": 13,
"name": "on_failure",
"type_info": "Varchar"
},
{
"ordinal": 14,
"name": "on_recovery",
"type_info": "Varchar"
},
{
"ordinal": 15,
"name": "on_failure_times",
"type_info": "Int4"
},
{
"ordinal": 16,
"name": "on_failure_exact",
"type_info": "Bool"
},
{
"ordinal": 17,
"name": "on_failure_extra_args",
"type_info": "Json"
},
{
"ordinal": 18,
"name": "on_recovery_times",
"type_info": "Int4"
},
{
"ordinal": 19,
"name": "on_recovery_extra_args",
"type_info": "Json"
},
{
"ordinal": 20,
"name": "ws_error_handler_muted",
"type_info": "Bool"
},
{
"ordinal": 21,
"name": "retry",
"type_info": "Jsonb"
},
{
"ordinal": 22,
"name": "summary",
"type_info": "Varchar"
},
{
"ordinal": 23,
"name": "no_flow_overlap",
"type_info": "Bool"
},
{
"ordinal": 24,
"name": "tag",
"type_info": "Varchar"
}
],
"parameters": {
"Left": [
"Varchar",
"Text",
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
true,
false,
false,
false,
true,
false,
true,
true,
true,
true,
true,
true,
true,
false,
true,
true,
false,
true
]
},
"hash": "dd74fa9468b5fe8c8ad657ded06076c11a78d0206af2af20685c691d4d9520bb"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "SELECT worker, worker_instance, EXTRACT(EPOCH FROM (now() - ping_at))::integer as last_ping, started_at, ip, jobs_executed, custom_tags, worker_group, wm_version FROM worker_ping\n WHERE ($1::integer IS NULL AND ping_at > now() - interval '5 minute') OR (ping_at > now() - ($1 || ' seconds')::interval)\n ORDER BY ping_at desc LIMIT $2 OFFSET $3",
"query": "SELECT worker, worker_instance, EXTRACT(EPOCH FROM (now() - ping_at))::integer as last_ping, started_at, ip, jobs_executed, CASE WHEN $4 IS TRUE THEN current_job_id ELSE NULL END as current_job_id, CASE WHEN $4 IS TRUE THEN current_job_workspace_id ELSE NULL END as current_job_workspace_id, custom_tags, worker_group, wm_version, occupancy_rate\n FROM worker_ping\n WHERE ($1::integer IS NULL AND ping_at > now() - interval '5 minute') OR (ping_at > now() - ($1 || ' seconds')::interval)\n ORDER BY ping_at desc LIMIT $2 OFFSET $3",
"describe": {
"columns": [
{
@@ -35,25 +35,41 @@
},
{
"ordinal": 6,
"name": "custom_tags",
"type_info": "TextArray"
"name": "current_job_id",
"type_info": "Uuid"
},
{
"ordinal": 7,
"name": "worker_group",
"name": "current_job_workspace_id",
"type_info": "Varchar"
},
{
"ordinal": 8,
"name": "custom_tags",
"type_info": "TextArray"
},
{
"ordinal": 9,
"name": "worker_group",
"type_info": "Varchar"
},
{
"ordinal": 10,
"name": "wm_version",
"type_info": "Varchar"
},
{
"ordinal": 11,
"name": "occupancy_rate",
"type_info": "Float4"
}
],
"parameters": {
"Left": [
"Int4",
"Int8",
"Int8"
"Int8",
"Bool"
]
},
"nullable": [
@@ -63,10 +79,13 @@
false,
false,
false,
null,
null,
true,
false,
false
false,
true
]
},
"hash": "b38044d94e2ab03167c2f6fbb553ab3c19930ed11abf51763cd3ee378229443d"
"hash": "e00171cc3fc8f32922562d4fc4d3db56955fbc6ee9872d4b2e99157ebed131e0"
}

View File

@@ -1,6 +1,6 @@
{
"db_name": "PostgreSQL",
"query": "select hash, tag, concurrent_limit, concurrency_time_window_s, cache_ttl, language as \"language: ScriptLang\", dedicated_worker, priority, timeout FROM script where path = $1 AND workspace_id = $2 AND\n created_at = (SELECT max(created_at) FROM script WHERE path = $1 AND workspace_id = $2 AND\n deleted = false AND archived = false)",
"query": "select hash, tag, concurrency_key, concurrent_limit, concurrency_time_window_s, cache_ttl, language as \"language: ScriptLang\", dedicated_worker, priority, delete_after_use, timeout from script where path = $1 AND workspace_id = $2 AND\n created_at = (SELECT max(created_at) FROM script WHERE path = $1 AND workspace_id = $2 AND\n deleted = false AND lock IS not NULL AND lock_error_logs IS NULL)",
"describe": {
"columns": [
{
@@ -15,21 +15,26 @@
},
{
"ordinal": 2,
"name": "concurrency_key",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "concurrent_limit",
"type_info": "Int4"
},
{
"ordinal": 3,
"ordinal": 4,
"name": "concurrency_time_window_s",
"type_info": "Int4"
},
{
"ordinal": 4,
"ordinal": 5,
"name": "cache_ttl",
"type_info": "Int4"
},
{
"ordinal": 5,
"ordinal": 6,
"name": "language: ScriptLang",
"type_info": {
"Custom": {
@@ -48,24 +53,30 @@
"snowflake",
"graphql",
"powershell",
"mssql"
"mssql",
"php"
]
}
}
}
},
{
"ordinal": 6,
"ordinal": 7,
"name": "dedicated_worker",
"type_info": "Bool"
},
{
"ordinal": 7,
"ordinal": 8,
"name": "priority",
"type_info": "Int2"
},
{
"ordinal": 8,
"ordinal": 9,
"name": "delete_after_use",
"type_info": "Bool"
},
{
"ordinal": 10,
"name": "timeout",
"type_info": "Int4"
}
@@ -82,11 +93,13 @@
true,
true,
true,
true,
false,
true,
true,
true,
true
]
},
"hash": "2f42460fdd8aa125c8fd46b3cd02e47f57de0f073d3ce3bc7d21a7e404a83b5c"
"hash": "e1c715020f1efb00123171edfb6173bfeaaa95d4f870240e42b76e5df304ce99"
}

Some files were not shown because too many files have changed in this diff Show More