Commit Graph
69 Commits
Author SHA1 Message Date
Ruben Fiszel b15964b8a3 fix 2025-05-15 20:10:03 +02:00
Ruben Fiszel c6d512d054 add alerts by workspace index 2025-05-15 19:19:53 +02:00
HugoCasaandRuben Fiszel ddd18d22a6 perf: cache http trigger routers and auth (#5748)
* perf: cache http trigger routers and auth

* fix build

* fix

* fix build

* fix build

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2025-05-15 17:38:45 +02:00
Ruben Fiszel 0efba945ba fix: improve perf of job deletion 2025-05-15 15:44:55 +02:00
Ruben Fiszel c80c9c70ce remove hardcoded public schema 2025-05-08 15:24:21 +02:00
Ruben Fiszel 0068087b81 improve slightly index creation 2025-03-11 06:35:57 +01:00
Ruben Fiszel 90b00f5501 fix: do not depend on public schema anymore 2025-03-04 20:22:45 +01:00
Ruben Fiszel e1ff00117c fix: improve db loads by adding index on audit 2025-03-03 14:23:35 +01:00
Ruben Fiszel 3063001491 fix: migrations do not refer to public schema anymore (#5400) 2025-02-27 14:37:39 +01:00
Ruben Fiszel 1069ad3999 fix: improve v2 migration finalizer to avoid deadlocks 2025-02-18 13:17:10 +01:00
Ruben Fiszel 9234701f05 ensure index creation of root_job_by_path 2025-02-17 23:57:38 +01:00
Ruben Fiszel 85c56e9450 fix: improve que job indices for faster performances 2025-02-17 19:17:30 +01:00
Ruben Fiszel 5e22690bd9 fix: improve que job indices for faster performances 2025-02-17 17:56:28 +01:00
Ruben Fiszel 266f82046a fix: improve runs page load time 2025-02-14 13:30:07 +01:00
Ruben Fiszel 586044e077 v2 list jobs 2025-02-13 23:53:00 +01:00
Ruben Fiszel 86d45c61c9 fix extra_perms for schedule light 2025-02-13 21:34:53 +01:00
Ruben Fiszel a814024440 re-enable RLS on v2_job 2025-02-13 21:04:17 +01:00
Ruben Fiszel 1e45903d78 re-do the migration finalization but now with BYPASSRLS for v2_job_queue and v2_job_completed 2025-02-13 20:03:48 +01:00
Ruben Fiszel fad6dc4400 Revert "revert last commit"
This reverts commit b6a57207a2.
2025-02-13 19:45:52 +01:00
Ruben Fiszel b6a57207a2 revert last commit 2025-02-13 19:38:58 +01:00
Ruben Fiszel 9a5fe90bdd Revert "migration to remove unecessary triggers and fields after job v2"
This reverts commit 029e2c7537.
2025-02-13 19:37:45 +01:00
Ruben Fiszel 029e2c7537 migration to remove unecessary triggers and fields after job v2 2025-02-13 19:18:32 +01:00
Ruben Fiszel 4fa897fbb6 remove v5 migration 2025-02-13 17:51:03 +01:00
Lucas AbelandRuben Fiszel b1f358d4a2 backend: finalize v2 migration (v2 phase 4 - final) (#5155)
* backend: finalize v2 migration (v2 phase 4 - final)

* update migration

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2025-02-13 17:10:30 +01:00
Lucas AbelandRuben Fiszel bf206515e8 fix(backend): improve schedule queries plan to leverage indices better for performance (#5273)
* backend: fix schedule queries plan

* rework

* fix skipped as non success

* update sqlx

* update

* all

* fix npm run check

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2025-02-12 16:34:03 +01:00
Lucas Abel 4849af04de backend: fix workflow as code (#5239)
* backend: improve `/get_job_update` after v2

* backend: insert missing `workflow_as_code_status` on completion

also insert `flow_status` from so we can remove the query when `_duration` is above 500

* backend: fix workflow_as_code after v2

* backend: add `workflow_as_code` worker test
2025-02-07 12:27:43 +01:00
Ruben Fiszel f12d6e5d20 clarify migration lock message 2025-02-07 09:02:38 +01:00
Lucas Abel 2478df52a5 backend: un-queue zombies left by missing row in v2_job_runtime (#5232) 2025-02-06 16:46:32 +01:00
Lucas Abel 3e8e0c653e backend: migrate job tables to v2 schema (v2 phase 1) (#5084) 2025-02-06 12:37:11 +01:00
pyranotaandRuben Fiszel 99b3308c56 Fix otel migration error (#5189)
* Fix otel migration error

    1: error returned from database: duplicate key value violates unique constraint "global_settings_pkey"
    0: while executing migration 20250131115248: error returned from database: duplicate key value violates unique constraint "global_settings_pkey"

* delete migration

* add .sqlx cache + move otel_global_settings to new location

* Fix compilation error

* Move before migrating

* Add error handler

* warn -> info

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2025-01-31 19:34:23 +01:00
Ruben Fiszel ab38215c86 fix(backend): in flows, workspace scripts should use their set tags instead of the default one 2024-10-29 07:29:39 +01:00
HugoCasaandRuben Fiszel 8841180b5f BYPASSRLS admin policy falllback (#4493)
* BYPASSRLS admin policy falllback

* use fixed list instead

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2024-10-08 20:08:29 +02:00
Ruben Fiszel 16692d5ff6 fix: fix new instance db setup 2024-10-01 16:03:58 +02:00
Ruben Fiszel f438d1adbe fix: skip one migration to avoid using md5 for azure support 2024-09-30 14:02:31 +02:00
HugoCasaandRuben Fiszel 41ff40f777 send stats when renewing key if last >24h (#4430)
* feat: send stats when renewing key if last >24h

* nits

* fix: sqlx

* nit

* renewal reason

* stats reason

* update ee ref

* Update ee-repo-ref.txt

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2024-09-30 12:23:07 +02:00
Ruben Fiszel 84e18c73c0 fix: improve wm_labels indices + UX nits 2024-09-04 11:40:23 +02:00
wendrul ccc86ca88b refactor windmill concurrent index migrations using a macro (#4275)
* Add macro to run migrations

* Factor windmill migrations into the new macro

* Run formatter
2024-08-21 17:15:08 +02:00
Ruben Fiszel 25434168d8 add global created_at index 2024-08-05 13:12:15 +02:00
Ruben Fiszel c956ecd1a8 feat: improve indices of completed_runs for faster load 2024-08-05 12:46:07 +02:00
Ruben Fiszel 69e400563c feat: variables created by password fields expire after 7 days 2024-08-01 16:05:03 +02:00
Ruben Fiszel 78c115c68c fix: improve index usage and runs page performance 2024-07-31 13:08:28 +02:00
Ruben Fiszel 135f57eb5a fix: improve runs page performance through pg indices 2024-07-27 12:16:13 +02:00
Ruben Fiszel be7e7ba05c fix: fix migration for instances starting from scratch 2024-07-11 02:12:51 +02:00
Ruben Fiszel 9e27ee8b57 improve try migration lock 2024-07-11 01:15:12 +02:00
Ruben Fiszel 33ca9bd101 fix: improve completed_job index 2024-07-10 23:43:02 +02:00
HugoCasa bbcaec9769 fix: improve flow version fix migration (#4050) 2024-07-09 11:02:53 +02:00
HugoCasa ff8d51a8db fix: always run flow versioning edge case fix migration (#4047) 2024-07-08 22:52:04 +02:00
HugoCasa 0a613b76c8 fix: flow versioning edge case (#4037) 2024-07-07 20:04:42 +02:00
Ruben Fiszel 6a332bc30f fix: make all error strings more verbose 2024-05-25 22:15:15 +02:00
HugoCasa 126459f972 feat: improve permissioned audit logs (#3799)
* fix: increase token label size in db

* Revert "Revert "feat:  improve premissioned audit logs (#3793)" (#3798)"

This reverts commit afae33f5f8.

* feat: add username to email function

* fix: nit

* fix: add docstring to global func
2024-05-23 17:23:50 +02:00