Compare commits

...

1085 Commits

Author SHA1 Message Date
Florian Hussonnois
6f1cd3d69e fix(core): fix search lookup for endDate field 2025-07-24 20:22:22 +02:00
Roman Acevedo
076434cc7c chore: remove frontend codecov in CI 2025-07-24 18:44:44 +02:00
Barthélémy Ledoux
69d2b97416 feat(flows): playground (#10042)
Co-authored-by: Loïc Mathieu <loikeseke@gmail.com>
2025-07-24 18:00:13 +02:00
Roman Acevedo
a7b07e5556 chore: update utility scripts still referencing old maven repo 2025-07-24 16:16:41 +02:00
Barthélémy Ledoux
ee6a2ae9a3 fix(flows): parse JSON when switching from string to object (#10255) 2025-07-24 15:48:52 +02:00
Florian Hussonnois
e36925c879 fix(system): fix and cleanup StorageInterface (kestra-io/kestra-ee#4488)
Allow tenantId to be null in storage for cluster-wide
operations on object storage

Related-to: kestra-io/kestra-ee#4488
2025-07-24 15:40:00 +02:00
Piyush Bhaskar
df63fc56fc fix(ai): shortcut to submit and for newline (#10325) 2025-07-24 19:01:18 +05:30
Loïc Mathieu
eb22d3f6ee feat(logs): allow purging log by execution ID
Part-of: https://github.com/kestra-io/kestra-ee/issues/4468
2025-07-24 15:12:27 +02:00
Roman Acevedo
150145692f fix(cli): tenantService was injected directly, this is not working in cli 2025-07-24 13:56:04 +02:00
Roman Acevedo
a900d8f5bb fix(cli): when picoli was throwing InitializationException the java process was not stopped 2025-07-24 13:56:04 +02:00
Loïc Mathieu
3e70aacb9c fix(executions): breakpoint on ForEach
We should be able to put a breakpoint without value, easier for the playground
2025-07-24 13:46:51 +02:00
Piyush Bhaskar
31658a1862 fix(core): prevent default if suggestion is active (#10320) 2025-07-24 16:18:25 +05:30
Miloš Paunović
694ee7ed86 chore(deps): regular dependency update (#10314)
Performing a weekly round of dependency updates in the NPM ecosystem to keep everything up to date.
2025-07-24 12:09:22 +02:00
Piyush Bhaskar
83fb225577 fix(executions): update query parameter for state filtering (#10315) 2025-07-24 14:40:24 +05:30
Miloš Paunović
1d89f53526 chore(flows): show small execution charts on flow listing (#10054)
Co-authored-by: YannC. <ycoornaert@kestra.io>
2025-07-24 10:18:27 +02:00
Roman Acevedo
6d72804a54 fix(filters): left menu current page disabling was not working
- fixes https://github.com/kestra-io/kestra/issues/9476
2025-07-24 10:01:52 +02:00
Piyush Bhaskar
26bd7dab97 fix(core): check null uri (#10309) 2025-07-24 12:46:15 +05:30
dependabot[bot]
1925d7832c build(deps): bump axios in /ui in the npm_and_yarn group (#10305)
Bumps the npm_and_yarn group in /ui with 1 update: [axios](https://github.com/axios/axios).


Updates `axios` from 1.10.0 to 1.11.0
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.10.0...v1.11.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.11.0
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-24 08:42:03 +02:00
Piyush Bhaskar
379649785d fix(secrets): show namespace column (#10222)
* fix(secrets): show namespace column

* fix(secrets): update condition
2025-07-24 11:02:41 +05:30
Roman Acevedo
302ec94bee feat(tests): testsuite run persistence 2025-07-23 20:16:03 +02:00
Malaydewangan09
02f97dfd88 feat(*): add new plugins 2025-07-23 19:52:51 +05:30
dependabot[bot]
ac9f44b766 build(deps): bump flyingSaucerVersion from 9.13.0 to 9.13.1
---
updated-dependencies:
- dependency-name: org.xhtmlrenderer:flying-saucer-core
  dependency-version: 9.13.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.xhtmlrenderer:flying-saucer-pdf
  dependency-version: 9.13.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-23 16:18:32 +02:00
dependabot[bot]
c287304264 build(deps): bump com.google.cloud:libraries-bom from 26.63.0 to 26.64.0
---
updated-dependencies:
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.64.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-23 16:17:37 +02:00
Loïc Mathieu
6510cdfbdc fix(core): revert unwanted changes
These changes should not have been added to https://github.com/kestra-io/kestra/pull/10230.

They have not been properly tested even if they seem to be meaningful
2025-07-23 16:16:39 +02:00
dependabot[bot]
298e9f3ab7 build(deps): bump com.microsoft.playwright:playwright
---
updated-dependencies:
- dependency-name: com.microsoft.playwright:playwright
  dependency-version: 1.54.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-23 15:37:11 +02:00
Nicolas K.
45291eb2c4 fix(cli): #10062 add tenant to load flows properly at the startup (#10290)
* fix(cli): #10062 add tenant to load flows properly at the startup

* fix(cli): #10062 add fallback tenant to ee service

* fix(cli): #10062 use tenant id in all cli

---------

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-23 15:36:10 +02:00
dependabot[bot]
ebd47b31b1 build(deps): bump software.amazon.awssdk:bom from 2.32.1 to 2.32.6
Bumps software.amazon.awssdk:bom from 2.32.1 to 2.32.6.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.32.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-23 15:35:36 +02:00
dependabot[bot]
48a3a3cbbf build(deps): bump jacksonVersion from 2.19.1 to 2.19.2
Bumps `jacksonVersion` from 2.19.1 to 2.19.2.

Updates `com.fasterxml.jackson:jackson-bom` from 2.19.1 to 2.19.2
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.19.1...jackson-bom-2.19.2)

Updates `com.fasterxml.jackson.core:jackson-core` from 2.19.1 to 2.19.2
- [Commits](https://github.com/FasterXML/jackson-core/compare/jackson-core-2.19.1...jackson-core-2.19.2)

Updates `com.fasterxml.jackson.core:jackson-databind` from 2.19.1 to 2.19.2
- [Commits](https://github.com/FasterXML/jackson/commits)

Updates `com.fasterxml.jackson.core:jackson-annotations` from 2.19.1 to 2.19.2
- [Commits](https://github.com/FasterXML/jackson/commits)

Updates `com.fasterxml.jackson.module:jackson-module-parameter-names` from 2.19.1 to 2.19.2
- [Commits](https://github.com/FasterXML/jackson-modules-java8/compare/jackson-modules-java8-2.19.1...jackson-modules-java8-2.19.2)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-yaml` from 2.19.1 to 2.19.2
- [Commits](https://github.com/FasterXML/jackson-dataformats-text/compare/jackson-dataformats-text-2.19.1...jackson-dataformats-text-2.19.2)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-smile` from 2.19.1 to 2.19.2
- [Commits](https://github.com/FasterXML/jackson-dataformats-binary/compare/jackson-dataformats-binary-2.19.1...jackson-dataformats-binary-2.19.2)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-cbor` from 2.19.1 to 2.19.2
- [Commits](https://github.com/FasterXML/jackson-dataformats-binary/compare/jackson-dataformats-binary-2.19.1...jackson-dataformats-binary-2.19.2)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-ion` from 2.19.1 to 2.19.2
- [Commits](https://github.com/FasterXML/jackson-dataformat-ion/commits)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-xml` from 2.19.1 to 2.19.2
- [Commits](https://github.com/FasterXML/jackson-dataformat-xml/compare/jackson-dataformat-xml-2.19.1...jackson-dataformat-xml-2.19.2)

Updates `com.fasterxml.jackson.datatype:jackson-datatype-guava` from 2.19.1 to 2.19.2
- [Commits](https://github.com/FasterXML/jackson-datatypes-collections/compare/jackson-datatypes-collections-2.19.1...jackson-datatypes-collections-2.19.2)

Updates `com.fasterxml.jackson.datatype:jackson-datatype-jsr310` from 2.19.1 to 2.19.2

Updates `com.fasterxml.jackson.datatype:jackson-datatype-jdk8` from 2.19.1 to 2.19.2

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.core:jackson-core
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.core:jackson-databind
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.core:jackson-annotations
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.module:jackson-module-parameter-names
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-smile
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-cbor
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-ion
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-xml
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-guava
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-jsr310
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-jdk8
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-23 15:34:08 +02:00
dependabot[bot]
fc7b7738bd build(deps): bump com.mysql:mysql-connector-j from 8.0.33 to 9.3.0
Bumps [com.mysql:mysql-connector-j](https://github.com/mysql/mysql-connector-j) from 8.0.33 to 9.3.0.
- [Changelog](https://github.com/mysql/mysql-connector-j/blob/release/9.x/CHANGES)
- [Commits](https://github.com/mysql/mysql-connector-j/compare/8.0.33...9.3.0)

---
updated-dependencies:
- dependency-name: com.mysql:mysql-connector-j
  dependency-version: 9.3.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-23 15:33:48 +02:00
dependabot[bot]
06ffa6602b build(deps): bump commons-io:commons-io from 2.19.0 to 2.20.0
---
updated-dependencies:
- dependency-name: commons-io:commons-io
  dependency-version: 2.20.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-23 15:33:10 +02:00
Piyush Bhaskar
1336cca81a refactor(template): migrate template module to pinia (#10226) 2025-07-23 18:33:38 +05:30
Loïc Mathieu
f0ab8a3067 fix(system)*: don't mix constructor injection with field injection
Field injection are resolved after constructor injection so setting threadCount was never used.
2025-07-23 13:31:06 +02:00
github-actions[bot]
3cfd5ebe4d chore(core): localize to languages other than english (#10291)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-07-23 16:39:21 +05:30
Piyush Bhaskar
f97ad45cef feat(execution): "Debug Expression" for Trigger Variables (#10242)
* feat(execution): "Debug Expression" for Trigger Variables

* fix(ui): improve layout and text.

---------

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-07-23 16:00:33 +05:30
Piyush Bhaskar
2a9a0c7484 fix(executions): fixes file preview (#10252)
* fix(executions): fixes file preview

* fix: remove stored file preview

---------

Co-authored-by: Bart Ledoux <bledoux@kestra.io>
2025-07-23 15:49:17 +05:30
Piyush Bhaskar
9eeffa089c chore(version): bump ui-libs to version 0.0.222 (#10285) 2025-07-23 12:46:03 +05:30
YannC
19df58c6da feat: hide community button on EE edition (#10251) 2025-07-23 08:57:19 +02:00
Piyush Bhaskar
d190522bfd fix(executions): fixes execution selection action button (#10257) 2025-07-23 12:00:17 +05:30
Loïc Mathieu
cbd48b0075 chore(plugins): rename Langchain4j plugin to AI 2025-07-22 16:07:27 +02:00
YannC
ea1603f051 feat(pebble): create a in expression to look for a string in a list (#9817)
* feat(pebble): create a in expression to look for a string in a list

close #9813
2025-07-22 15:43:25 +02:00
YannC
d24f6059d9 chore(test): Improved TestsUtils and added more tests for coverage in… (#9776)
* chore(test): Improved TestsUtils and added more tests for coverage in ExecutionControllerRunnerTest

* fix: revert testUtils + reduce sleep time

* fix: replace 2s sleep to 250ms
2025-07-22 15:08:49 +02:00
YannC.
12c8db40ae feat: action to check if tag is latest in github release 2025-07-22 14:45:38 +02:00
Piyush Bhaskar
3660e1a990 fix(logs): update query filter to show logs ns and flowwise (#10248) 2025-07-22 17:54:20 +05:30
Miloš Paunović
ca96c7b5dc fix(namespaces)*: prevent overwriting namespace file content with undefined string (#10247) 2025-07-22 14:23:44 +02:00
bishalbera
d9bdcc5b20 feat(cli): added skip-deprecated flag in plugindoc command 2025-07-22 13:38:48 +02:00
Piyush Bhaskar
c31fae4cc9 fix(triggers): ensure clearing the selection. (#10245) 2025-07-22 15:58:49 +05:30
Miloš Paunović
87480d81b8 chore(core): add missing translation key/value pairs (#10243) 2025-07-22 11:44:53 +02:00
Nicolas K.
251a821322 fix(repositories): make filter service protected (#10241)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-22 11:36:57 +02:00
dependabot[bot]
3d0b2b7f01 build(deps): bump the npm_and_yarn group in /ui with 3 updates (#10236)
---
updated-dependencies:
- dependency-name: vue-i18n
  dependency-version: 11.1.10
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: "@intlify/core-base"
  dependency-version: 11.1.10
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: form-data
  dependency-version: 4.0.4
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-22 10:37:07 +02:00
Miloš Paunović
0811258d2e fix(executions): make sure outputs do not overflow over right drawer (#10238)
Closes https://github.com/kestra-io/kestra/issues/10232.
2025-07-22 10:12:02 +02:00
Loïc Mathieu
aecd4cc5dd fix(tests): strengthen awaitExecution predicate
In some test situation, awaitExecution may receive old messages so we strenghten the predicate to be sure to wait for the correct execution: the one that ends successfully
2025-07-22 10:08:00 +02:00
YannC.
b1d41f6f47 fix: handle label filter with and instead or for flow
close #4390
2025-07-22 09:42:45 +02:00
Piyush Bhaskar
a9d215996b fix(core): do not show release notes button for ee specific plugins (#10235)
* fix(core): do not show button for ee specific plugins

* fix(core): refactor for improved readability
2025-07-22 12:16:49 +05:30
Emil Shakirov
812c8b5718 feat(core): add a Pebble function to generate KSUID 2025-07-21 18:17:58 +02:00
Nicolas K.
bc3d534ba6 fix(pebble): #8953 add more flexible day number conversion method (#10205)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-21 15:25:09 +02:00
Roman Acevedo
ef4f1bdd1f fix(flows): remove flows date filters UI, they do not exist
- fixes https://github.com/kestra-io/kestra/issues/10201
2025-07-21 12:46:35 +02:00
Loïc Mathieu
6bc1e3ec4d fix(executions)*: restart with finally or afterExecution
When a flow fail and is restarted and contains either a finally or an afterExecution block, those are not resetted so the restart will skip all task and terminate the flow.
The fix will reset the status of those tasks so they are restarted.

Fixes #10155
2025-07-21 12:21:25 +02:00
skayliu
80d394fd6a fix(pebble): fix typo 2025-07-21 12:17:18 +02:00
skayliu
30c4f11b8a fix(pebble): fix typo 2025-07-21 12:17:18 +02:00
skayliu
7bd21887d1 feat(pebble): add millisecond date time format 2025-07-21 12:17:18 +02:00
Roman Acevedo
770438eb66 feat(tests): use Flow YAML autocompletion
- fixes https://github.com/kestra-io/kestra-ee/issues/3900
2025-07-21 11:50:42 +02:00
github-actions[bot]
a8838102ec chore(core): localize to languages other than english (#10221)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-07-21 11:15:10 +02:00
Piyush Bhaskar
19161cc078 feat(core): update titles , add button slot for license (#10218) 2025-07-21 13:31:45 +05:30
Piyush Bhaskar
6c48571101 feat(core): implement backend validation for login for configs and also fixes PH event (#10196)
* feat(core): implement backend validation for login for configs

* fix(auth): simplify authentication check  and api route

* fix: access auth properly

Co-authored-by: Barthélémy Ledoux <bledoux@kestra.io>

* fix(ui): improve  auth validation handling and routing

* fix(core): fixes PH event  and initialization for setup process.

---------

Co-authored-by: Barthélémy Ledoux <bledoux@kestra.io>
2025-07-21 13:21:17 +05:30
Loïc Mathieu
c09dafca01 fix(executions): support unicode file name inside the internal storage
Fixes #9550
2025-07-21 09:51:07 +02:00
yuri1969
3a3dadd8e9 fix(tests): timezone issue
Test failed at certain moments when runnin in a non-`Europe/Lisbon` TZ.
2025-07-21 09:03:21 +02:00
skayliu
68c1abb6f2 chore(deps): relocate mysql driver 2025-07-18 12:29:43 +02:00
skayliu
cfea378104 refactor(pebble): Stronger the uuid function from v4 to v7 2025-07-18 12:29:43 +02:00
Barthélémy Ledoux
d1badab05b fix(core): check if logged in before requesting usages (#10194)
* fix(core): check if logged in before requesting usages

* fix: avoid calls to get resources when auth not initialized yet
2025-07-18 15:37:49 +05:30
Nicolas K.
581442c427 feat(security) #10180 open basic auth validation endpoint (#10190)
* feat(security) #10180 open basic auth validation endpoint

* feat(security) #10180 add unit test

---------

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-18 11:23:30 +02:00
MilosPaunovic
02430a00b5 feat: introduce ui changes for keeping filename on file input 2025-07-18 11:16:25 +02:00
Loïc Mathieu
f7c5fd3984 feat(executions): use the uploaded file name for inputs of type FILE
Use the part name for the input ID, this is a BC.
Use the filename attribute of the part for creating the file inside the internal storage.
Detect previous usage of part name and filename and emit a deprecation warning.
2025-07-18 11:16:25 +02:00
Piyush Bhaskar
3f4b39ec4f feat(core): add troubleshooting button and doc (#10191)
* feat(core): add troubleshooting button and doc

* fix: add ?

* fix: type warn

* chore(core): localize to languages other than english (#10193)

Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <actions@github.com>
2025-07-18 14:42:28 +05:30
Piyush Bhaskar
ddfe637828 fix(core): adjust word wrap and prevent newlines in input (#10176)
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-07-18 13:58:16 +05:30
Piyush Bhaskar
e09a89ac03 fix(core): update text from user to account. (#10187)
* fix(core): update text from user to account.

* chore(core): localize to languages other than english (#10188)

Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <actions@github.com>
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-07-18 13:47:37 +05:30
github-actions[bot]
bbb5c2a6e0 chore(core): localize to languages other than english (#10189)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-07-18 10:07:50 +02:00
Piyush Bhaskar
bbf22d8813 fix(ai): show prompt window only if ai is enabled in configs (#10172) 2025-07-18 13:19:47 +05:30
Piyush Bhaskar
243522372d refactor(ai): migrate ai store from Vuex to Pinia (#10174) 2025-07-18 13:14:15 +05:30
Roman Acevedo
2a24e29bd9 feat(filters): prevent saving a search with duplicated label
- fixes https://github.com/kestra-io/kestra/issues/9026
2025-07-18 09:19:55 +02:00
Miloš Paunović
d7d52cba5a chore(core): move expand all buttons to the left side (#10186)
Closes https://github.com/kestra-io/kestra-ee/issues/4394.
2025-07-18 08:46:44 +02:00
MilosPaunovic
8319ad7439 feat(executions): work on the ui for execution dependencies 2025-07-17 17:45:15 +02:00
Loïc Mathieu
4996ccdefd feat(system): add a between-items timeout on all our SSE connections
This avoid potential connection leak by closing them if nothing happen inside it.
These is very unlickly to happen but as some follow endpoint may have races, for ex an execution ends between the time we fetch it and start listening to its event, this is better to add this as a safety net.
2025-07-17 17:45:15 +02:00
Loïc Mathieu
66889a3d92 feat(executions): execution dependencies
Part-of: https://github.com/kestra-io/kestra-ee/issues/4230
2025-07-17 17:45:15 +02:00
Loïc Mathieu
fc0b52dbd0 feat(executions): add execution outputs inside the expression context
Closes https://github.com/kestra-io/kestra-ee/issues/3999
2025-07-17 17:44:55 +02:00
Piyush Bhaskar
c7b9e1846e fix(core): improve handling of setup completion and display values (#10141) 2025-07-17 16:30:39 +02:00
Nicolas K.
fe485243f7 fix(security) #10133 add password validation and save error in database for the front to use (#10177)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-17 16:29:57 +02:00
Anna Geller
8637bb847f fix(docker-compose): add info about password policy to docker compose example 2025-07-17 16:12:08 +02:00
Nicolas K.
c8d89dbdd4 fix(security) #10133 server error when no basic auth configuration persisted (#10175)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-17 15:28:15 +02:00
Miloš Paunović
71e3b19f02 chore(core): add back the missing translation keys (#10170) 2025-07-17 13:04:33 +02:00
Miloš Paunović
5457c216c8 chore(core): remove non-matching translation keys (#10169) 2025-07-17 13:01:10 +02:00
github-actions[bot]
aa2d88fcbb chore(core): localize to languages other than english (#10160)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-07-17 12:31:16 +02:00
Piyush Bhaskar
393faed512 fix(plugins): adjust font sizes for collapsible body (#10164) 2025-07-17 15:29:20 +05:30
Barthélémy Ledoux
0e8e65af7c feat(flows): add setting to disable hovers in editor (#10159) 2025-07-17 10:54:04 +02:00
Piyush Bhaskar
133151377f fix(triggers): only updates the trigger that matches both flow and trigger Id (#10158) 2025-07-17 14:19:21 +05:30
Loïc Mathieu
fa2bf8fc5c feat(execution): allow to wait for execution completion into a Webhook
Closes #10147
2025-07-17 10:47:53 +02:00
Piyush Bhaskar
614c7b2226 fix(core): fixes some design tweaks for Ai Agent (#9875)
* fix(core): fixes some design tweaks for Ai Agent

* minor tweaks

* fix: show prompt only  when AI is enabled.

* fix: dark button

* remove

* fix(core): repair GlobalSearch

* fix(ai): swap shortcut to CTRL + ALT + SHIFT + K to avoid collisions

* fix: add key shortcuts in dropdown

* fix(ui): update AI width , toggle shortcut and editor top spacing

* fix: en.json

---------

Co-authored-by: brian.mulier <bmmulier@hotmail.fr>
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-07-17 12:48:45 +05:30
Loïc Mathieu
05cb79f4b6 feat(executions): provide a task run caching mechanism
Closes https://github.com/kestra-io/kestra-ee/issues/3580
2025-07-17 09:16:55 +02:00
Nicolas K.
278dbd8b82 fix(security) #10133 ignore enable=true flag from basic auth config (#10148)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-16 17:28:48 +02:00
Loïc Mathieu
98d1ab57cc feat(execution): add execution ID to the latest execution
Needed for the new playground functionality.
2025-07-16 16:54:45 +02:00
Nicolas K.
f2fd9f398d fix(security) #10133 basic auth config always takes priority (#10145)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-16 15:27:34 +02:00
Piyush Bhaskar
b72381e2cb fix(ai): refine card styles; add button disabled state colors across UI. (#10142) 2025-07-16 18:40:20 +05:30
Piyush Bhaskar
14e853ce40 refactor(store): remove unused graph store module (#10144) 2025-07-16 18:39:21 +05:30
Loïc Mathieu
7ebf5989a5 feat(flows): add an API endpoint for listing flow properties
Closes #9524

The new endpoint allow for properties only JSON schema for all base types.
2025-07-16 14:36:19 +02:00
Barthélémy Ledoux
b70faea505 refactor: migrate executions store from vuex to pinia (#10093)
Co-authored-by: Piyush-r-bhaskar <impiyush0012@gmail.com>
2025-07-16 14:14:38 +02:00
dependabot[bot]
f54ed8a488 build(deps): bump io.micrometer:micrometer-core from 1.15.1 to 1.15.2
Bumps [io.micrometer:micrometer-core](https://github.com/micrometer-metrics/micrometer) from 1.15.1 to 1.15.2.
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- [Commits](https://github.com/micrometer-metrics/micrometer/compare/v1.15.1...v1.15.2)

---
updated-dependencies:
- dependency-name: io.micrometer:micrometer-core
  dependency-version: 1.15.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-16 12:48:13 +02:00
dependabot[bot]
6a796b0a25 build(deps): bump com.gorylenko.gradle-git-properties
Bumps com.gorylenko.gradle-git-properties from 2.5.0 to 2.5.2.

---
updated-dependencies:
- dependency-name: com.gorylenko.gradle-git-properties
  dependency-version: 2.5.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-16 12:14:00 +02:00
Loïc Mathieu
ec7e65d794 fix(system): possible NPE when computing flowable task outputs 2025-07-16 11:22:38 +02:00
Piyush Bhaskar
0c5e190350 fix(ui): reorder collapse items and refine connection properties to show only non required in collapsed (#9673) 2025-07-16 14:49:13 +05:30
Piyush Bhaskar
1014cdefeb refactor(service): migrate service.js to pinia (#9760)
* refactor(service): migrate service.js to pinia

* fix scope of i18n

Co-authored-by: Barthélémy Ledoux <bledoux@kestra.io>

---------

Co-authored-by: Barthélémy Ledoux <bledoux@kestra.io>
2025-07-16 14:48:51 +05:30
Loïc Mathieu
efdc29f30a feat(executions): add preview for local files and namespace fles
Closes #9740
2025-07-16 11:05:13 +02:00
dependabot[bot]
a44b7f78fb build(deps): bump org.opensearch.client:opensearch-java
---
updated-dependencies:
- dependency-name: org.opensearch.client:opensearch-java
  dependency-version: 3.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-16 10:57:57 +02:00
Bart Ledoux
90eb0ffa4f fix: basePath is now a function 2025-07-16 10:27:33 +02:00
dependabot[bot]
85b5002acf build(deps): bump org.apache.logging.log4j:log4j-to-slf4j
Bumps org.apache.logging.log4j:log4j-to-slf4j from 2.25.0 to 2.25.1.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-to-slf4j
  dependency-version: 2.25.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-16 09:54:02 +02:00
dependabot[bot]
4fd66d7781 build(deps): bump com.vanniktech.maven.publish from 0.33.0 to 0.34.0
Bumps [com.vanniktech.maven.publish](https://github.com/vanniktech/gradle-maven-publish-plugin) from 0.33.0 to 0.34.0.
- [Release notes](https://github.com/vanniktech/gradle-maven-publish-plugin/releases)
- [Changelog](https://github.com/vanniktech/gradle-maven-publish-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vanniktech/gradle-maven-publish-plugin/compare/0.33.0...0.34.0)

---
updated-dependencies:
- dependency-name: com.vanniktech.maven.publish
  dependency-version: 0.34.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-16 09:53:25 +02:00
dependabot[bot]
362858e4d7 build(deps): bump org.apache.commons:commons-lang3 from 3.17.0 to 3.18.0
Bumps org.apache.commons:commons-lang3 from 3.17.0 to 3.18.0.

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-lang3
  dependency-version: 3.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-16 09:52:56 +02:00
dependabot[bot]
06e4c9f110 build(deps): bump software.amazon.awssdk:bom from 2.31.77 to 2.32.1
Bumps software.amazon.awssdk:bom from 2.31.77 to 2.32.1.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.32.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-16 09:52:09 +02:00
dependabot[bot]
a71e46169f build(deps): bump software.amazon.awssdk.crt:aws-crt
---
updated-dependencies:
- dependency-name: software.amazon.awssdk.crt:aws-crt
  dependency-version: 0.38.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-16 09:51:23 +02:00
Barthélémy Ledoux
4e1c4b7708 fix: curl feature needs baseUrl as a function (#10092) 2025-07-15 18:43:12 +02:00
Barthélémy Ledoux
75f5348db1 fix(executions): restore taskruns store (#10090) 2025-07-15 15:37:34 +02:00
Piyush Bhaskar
5b5b616def fix(secrets): circle masked input to replace squarefont. (#10088) 2025-07-15 19:05:24 +05:30
Miloš Paunović
ec360bd658 fix(core): remove icons from no code input selector (#10080)
Closes https://github.com/kestra-io/kestra/issues/10075.

Co-authored-by: Bart Ledoux <bledoux@kestra.io>
2025-07-15 15:05:48 +02:00
Piyush Bhaskar
4f2a37c31f fix(core): fixes user with no rights is able to access the dashboard route (#9361)
* fix(core): allow custom logo slot in sidebar.

* fix: use boolean prop instead of slot
2025-07-15 18:11:35 +05:30
Barthélémy Ledoux
90d572ef33 fix(flow): autocomplete output values in pebble editor (#10083) 2025-07-15 14:25:56 +02:00
Biplab Bera
ceecab1811 chore(executions): improve the file input dialog (#9894)
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-07-15 13:35:25 +02:00
Miloš Paunović
25592ec203 refactor(dashboards): minor improvements of dashboard components code (#10085) 2025-07-15 13:24:35 +02:00
github-actions[bot]
d935333c5b chore(core): localize to languages other than english (#10086)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-07-15 13:11:07 +02:00
Malay Dewangan
e2571ba523 feat(executions): Allow unqueuing to states other than RUNNING #5939 (#8381)
* feat(executions): added the ui part for being able to unqueue exeution to different state

---------

Co-authored-by: MilosPaunovic <paun992@hotmail.com>
2025-07-15 16:18:35 +05:30
Loïc Mathieu
94dc1cea25 feat(tenants): provide an endpoint that list all tenants dependencies
Part-of: https://github.com/kestra-io/kestra-ee/issues/3515
2025-07-15 12:39:17 +02:00
Piyush Bhaskar
87bb87bbbc fix(ai): update styling for Accept/Decline (#10082) 2025-07-15 16:04:30 +05:30
Miloš Paunović
47955fc3c3 fix(core): remove deprecated properties from no code task selector (#10079)
Closes https://github.com/kestra-io/kestra/issues/10077.
Closes https://github.com/kestra-io/kestra-ee/issues/4355.
2025-07-15 11:33:14 +02:00
Anusha G H
be23ac591c chore(executions): remove cancel button from resume dialog (#10051)
Co-authored-by: Anusha G H <anushah@sahaj.ai>
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-07-15 10:56:36 +02:00
Miloš Paunović
578e34ee17 chore(deps): update the element-plus package and remove patch file for it (#10069) 2025-07-15 10:41:06 +02:00
skayliu
05959ee28c feat(pebble): add a timestampMilli pebble function (#10064)
* feat(pebble): add a timestampMilli pebble function

* feat(test): add a timestampMilli pebble function test

* fix(docs): fix typo

* feat(docs): add a timestampMilli pebble function docs

---------

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-07-15 10:32:44 +02:00
Piyush Bhaskar
ae2ce394c9 fix(core): secrets as a tab. (#10072) 2025-07-15 13:30:44 +05:30
Miloš Paunović
a3fa2051ce fix(executions): add missing uuid property (#10078) 2025-07-15 08:50:46 +02:00
Anna Geller
6fb0858710 fix: basic auth commented out by default to load setup page first 2025-07-14 14:19:49 +02:00
Anna Geller
df94a248e2 fix(docker-compose): cut the removed enabled flag 2025-07-14 14:08:30 +02:00
Piyush Bhaskar
f826d9ac8e fix(ui): update label styles for better visual (#10070)
* fix(ui): update label styles for better visual

* fix: remove light color
2025-07-14 16:35:20 +05:30
Piyush Bhaskar
8d652d5185 fix(core): show plugin toc properly (#10068) 2025-07-14 12:13:01 +05:30
Piyush Bhaskar
c4680836a6 fix(ui): properly update theme switching (#10065) 2025-07-12 19:15:15 +05:30
brian-mulier-p
77f0f5bb87 fix(core): add an exception to avoid popping challenge in case of wrong credentials on login page (#10061) 2025-07-11 17:22:07 +02:00
brian-mulier-p
c68808582b fix(core): add proxy so that origin is the same as request url for workers (#10053) 2025-07-11 16:44:03 +02:00
brian-mulier-p
3a10a52320 feat(core): hide deprecated elements in doc, autocompletion (only types), nocode (#10020)
closes #7206
closes #8786
closes #9322
2025-07-11 16:41:45 +02:00
François Delbrayelle
0a6bfd1389 fix(gradle): be able to use publishToMavenLocal (#10047) 2025-07-11 16:20:20 +02:00
Piyush Bhaskar
b7201055a8 refactor(core): migrate misc store module to pinia (#10048) 2025-07-11 19:13:38 +05:30
Roman Acevedo
710f9a3373 test(e2e): include E2E tests in PR CI (#10036)
* test(e2e): include E2E tests in PR CI

* Update e2e.yml to fix report

* tests(e2e): video and trace on failure

* tests(e2e): unflaky assertion exec

* tests(e2e): slowMo 100ms
2025-07-11 14:31:10 +02:00
brian.mulier
0402362499 fix(core): strict samesite for basic auth cookie 2025-07-11 12:07:49 +02:00
brian-mulier-p
15d3caf62c fix(core): basic auth is now handled through cookies, header then challenge so that SSE sends it (#10043) 2025-07-11 10:56:12 +02:00
Loïc Mathieu
4dc1e52b08 chore(system): avoid calling allTaskWithChild when computing plugin defaults 2025-07-11 09:38:34 +02:00
Roman Acevedo
6f62988135 build: remove codecov for ui #10038
As discussed with Bart it is not helping us, it is often red and the conf is not right, and anyway he believes codecov on frontend is not easy and perfect

from Bart: Nuance: I believe that having code coverage on Frontend is a great tool to see where we should track more, but having it as a metric is very unproductive.

The only thing I care about being tested are:

if a component renders at all
what it looks like
... interactions
None of this is covered by code lines.

We could have a demand for 10% coverage of every patch and that's it.
2025-07-11 09:09:27 +02:00
Roman Acevedo
8080bbf964 test(storage): unflaky StorageTestSuite.filesByPrefix 2025-07-11 09:06:32 +02:00
Barthélémy Ledoux
565bee96c9 fix(core): login setup failures when baseUrl is empty (#10041)
Co-authored-by: Piyush-r-bhaskar <impiyush0012@gmail.com>
2025-07-10 16:29:45 +02:00
Piyush Bhaskar
44f93c0b13 fix(core): streamlining base URL creation (#10039)
* refactor(core): streamlining base URL creation

* fix: less changes

---------

Co-authored-by: Bart Ledoux <bledoux@kestra.io>
2025-07-10 19:50:04 +05:30
Loïc Mathieu
51f831586a chore(system): avoid calling TaskRun.toStringState() when not needed
This methods do a lot of potentialy big String concatenation so it's better to not call it unless necessary.
2025-07-10 16:06:39 +02:00
Loïc Mathieu
93b9932469 test(executions): improve reliability of the ExecutionControllerRunnerTest 2025-07-10 16:06:26 +02:00
Loïc Mathieu
d10b11ed1f fix(system): merge flowable outputs when terminated
A flowable may compute its outputs before it is terminated. In this case, they can be wiped out when we compute the outputs when terminated.
So we need to merge the maps.
2025-07-10 16:06:26 +02:00
Roman Acevedo
f57ab7a828 feat(tests): impl disabling testcase 2025-07-10 15:32:47 +02:00
Loïc Mathieu
b97f93f2f9 feat(system): use available processor count number of executor threads 2025-07-10 14:59:48 +02:00
Nicolas K.
8094756601 fix(security): use the login/pass of basicAuth for all api urls (#10027)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
Co-authored-by: Bart Ledoux <bledoux@kestra.io>
2025-07-10 13:51:27 +02:00
Loïc Mathieu
0de5236f8a fix(flows): possible NPE at flow validation 2025-07-10 12:40:45 +02:00
Piyush Bhaskar
1b7034d154 fix(ui): fixes color for icon and label in light theme (#10032) 2025-07-10 15:50:59 +05:30
Barthélémy Ledoux
732f1d95d7 fix: patch element plus for tabs (#10034) 2025-07-10 11:49:11 +02:00
Miloš Paunović
aa3b118cb5 feat(dashboards): implement the table data export functionality (#9911)
Co-authored-by: Roman Acevedo <roman.acevedo62@gmail.com>
2025-07-10 10:13:25 +02:00
Piyush Bhaskar
2543ad7216 fix(triggers): disable backfill execution based on yaml definition (#10026) 2025-07-10 13:35:33 +05:30
Nicolas K.
98463335aa fix(security): remove the authorization header (#10025)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-10 09:49:07 +02:00
Nicolas K.
d46ebe2b4a fix(security): add back www-authenticate header (#10018)
* fix(security): add back www-authenticate header

* fix basic auth again

* fix: if setup is not done go to setup

* fix(security): don't persist basic auth config if already persisted

---------

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
Co-authored-by: Bart Ledoux <bledoux@kestra.io>
2025-07-10 09:27:42 +02:00
Roman Acevedo
fb96fc2f05 chore(tests): add validation on assertions 2025-07-09 18:25:36 +02:00
Roman Acevedo
910bceb900 fix(webserver): server exceptions were not logged when no message
some libraries or even java code throw Exceptions with a 'null' message (but with a stacktrace), in this case our logger was not logging anything
2025-07-09 17:18:58 +02:00
Roman Acevedo
b6475d8552 feat(tests): allow disabling a TestSuite preventing it to run 2025-07-09 17:08:08 +02:00
brian-mulier-p
e136e1ca9a fix(core): trim expressions in select & multiselect to be able to use '|' instead of '>-' (#10017)
closes #10016
2025-07-09 16:36:24 +02:00
Piyush Bhaskar
0f6ae24b8e fix(ui): fixes basic auth handling (#10010)
Co-authored-by: Bart Ledoux <bledoux@kestra.io>
2025-07-09 15:18:39 +02:00
brian-mulier-p
cc7f1e25e3 feat(kv): add an optional description (#9886)
closes #9606
2025-07-09 15:08:12 +02:00
Miloš Paunović
63dbff1e7a chore(dashboards): improve chart data loading and uniform look on preview tab (#10014) 2025-07-09 14:53:23 +02:00
YannC
9c6b59c362 fix: bring back lastexecution endpoint (#9973) 2025-07-09 13:48:47 +02:00
Miloš Paunović
72341b8090 chore(core): allow displaying topology horizontally (#10012)
Closes https://github.com/kestra-io/kestra/issues/9980.
2025-07-09 13:11:17 +02:00
yuri
0c730843c6 docs(schedule): mention Sunday day-of-the-week alias (#9961) 2025-07-09 11:39:28 +02:00
Loïc Mathieu
05b50c22e3 feat(executions): allow suspending an execution at a breakpoint
- When creating an execution, you can pass a breakpoint of the form `taskId.value` and an execution kind.
- An execution with a breakpoint will be suspended in the `BREAKPOINT` state when arriving at the point where the breakpoint task should be executed
- You can resume an execution from a breakpoint, this would resume the execution and remove the existing breakpoint. At this time a new breakpoint can be passed.
- You can pass a breakpoint when replaying an execution.

Part-of: https://github.com/kestra-io/kestra-ee/issues/1547
2025-07-09 10:56:00 +02:00
dependabot[bot]
cf4f6554e6 build(deps): bump software.amazon.awssdk:bom from 2.31.75 to 2.31.77
Bumps software.amazon.awssdk:bom from 2.31.75 to 2.31.77.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.77
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-09 10:55:39 +02:00
Roman Acevedo
7ec1439bb7 chore: add useful scripts for RC 2025-07-09 10:19:05 +02:00
Miloš Paunović
d1b025253a chore(deps): regular dependency update (#10011)
Performing a weekly round of dependency updates in the NPM ecosystem to keep everything up to date.
2025-07-09 10:02:12 +02:00
dependabot[bot]
aa272418cf build(deps): bump com.github.docker-java:docker-java from 3.5.2 to 3.5.3
---
updated-dependencies:
- dependency-name: com.github.docker-java:docker-java
  dependency-version: 3.5.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-09 09:22:56 +02:00
dependabot[bot]
ef098c2489 build(deps): bump aquasecurity/trivy-action from 0.31.0 to 0.32.0
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.31.0 to 0.32.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](https://github.com/aquasecurity/trivy-action/compare/0.31.0...0.32.0)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-version: 0.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-09 09:21:47 +02:00
Devesh Kumar
c671414958 fix(flows): issue where flows with task IDs longer than the supported database column length would cause the application to shut down. 2025-07-08 17:28:06 +02:00
github-actions[bot]
6bb42641a1 chore(core): localize to languages other than english (#9975)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-07-08 16:24:28 +02:00
Loïc Mathieu
acca4ddd55 fix(system): EE compilation 2025-07-08 15:40:32 +02:00
Piyush Bhaskar
e75a4a7500 feat(ui): introducing OSS auth (#9972)
Co-authored-by: Barthélémy Ledoux <bledoux@kestra.io>
2025-07-08 15:29:58 +02:00
Nicolas K.
4afa7dc969 fix(security) #4311 filter only kestra endpoints (#9971)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-08 15:13:33 +02:00
github-actions[bot]
c953e24931 chore(core): localize to languages other than english (#9969)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-07-08 18:19:14 +05:30
nKwiatkowski
b70545967e Merge remote-tracking branch 'origin/develop' into develop 2025-07-08 14:15:31 +02:00
Barthélémy Ledoux
02302fa54c fix(flows): autocomplete nocode outputs in pebble (#9955) 2025-07-08 14:10:11 +02:00
Nicolas K.
ff8c224554 fix(security) #4311 add basic auth whitelist for config and add new c… (#9968)
* chore(core): localize to languages other than english (#9966)

Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>

* fix(security) #4311 add basic auth whitelist for config and add new config parameter for basic auth initialized

* fix(security) #4311 failing unit tests

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <actions@github.com>
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-08 14:02:17 +02:00
Piyush-r-bhaskar
f54c46e238 Revert "feat(core): introducing OSS authentication user creation and login logout (#9683)"
This reverts commit 97b01ab6a4.
2025-07-08 16:51:43 +05:30
github-actions[bot]
750fa4cc8c chore(core): localize to languages other than english (#9966)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-07-08 11:40:44 +02:00
Piyush Bhaskar
97b01ab6a4 feat(core): introducing OSS authentication user creation and login logout (#9683)
* feat(core): introducing OSS authentication

* use pinia

* fix: error message

* fix logo

* fix import

* fix: i18n

* feat: show dialog fter 30days and send to login page if basicauth is true

* fix: minor tweaks

* fix(ui): ensure email and password are required.
2025-07-08 14:12:32 +05:30
Nicolas K.
eafaf32938 feat(security)!: make basic auth required on OSS (#9688)
* feat(security)!: make basic auth required on OSS

* clean(security)!: put the auth filter code into a publisher

* clean(security)!: add unit tests

* fix(core): merge

---------

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-08 10:41:47 +02:00
Loïc Mathieu
6a4397fdfd fix(system): avoid creating multiple worker job queue
We created miltiple worker job queue because the bean was in the prototype scope.
This was needed only for tests as they are closing it.
Switching to singleton and rebuilding the context of the test that needs it fixes the issue.
2025-07-08 10:35:50 +02:00
YannC.
2109fa8116 fix(ci): Avoid retag latest docker image being true by default 2025-07-08 10:19:34 +02:00
Piyush Bhaskar
7de415e54f refactor(core): migrating doc store module to pinia (#9882) 2025-07-08 13:37:01 +05:30
Piyush Bhaskar
a7307b6a0c fix(ui): openGroup to directly open the first plugin element (#9964) 2025-07-08 13:36:19 +05:30
Barthélémy Ledoux
63613572a5 chore: update ui-libs for documentation collapsible warns (#9954) 2025-07-08 09:08:07 +02:00
Piyush Bhaskar
157e942499 refactor(core): migrate taskrun to Pinia (#9953)
* refactor(core): migrate taskrun to Pinia

* refactor(core): migrate taskrun to Pinia
2025-07-08 12:33:34 +05:30
Piyush Bhaskar
27d1069acd fix(ui): fixes merge snafu and warning lastExecutionByFlowReady (#9962) 2025-07-08 11:54:37 +05:30
brian-mulier-p
4a8b3d4d7d fix(plugins): plugin search is now searching in all element types (#9899) 2025-07-07 20:05:27 +02:00
Loïc Mathieu
475c8d3ce2 fix(webserver)*: bulk set labels remove existing labels
FIxes #9764
2025-07-07 15:21:47 +02:00
AJ Emerich
093ae3ae39 docs(dashboard-data): fix indentations for dashboard data plugins (#9918)
Closes https://github.com/kestra-io/kestra-ee/issues/3646
2025-07-07 15:10:17 +02:00
Piyush Bhaskar
6585d2446a fix(dashboards): include required prop to amend pages using dashboard sections component (#9949)
Co-authored-by: MilosPaunovic <paun992@hotmail.com>
2025-07-07 13:36:04 +02:00
Loïc Mathieu
2a53f55c3d fix(system): force running after execution tasks even if the execution is killed
Fixes #9852
2025-07-07 12:38:08 +02:00
Ludovic DEHON
f9b10407f0 chore(build): try to remove the noise for code coverage 2025-07-07 12:34:05 +02:00
Miloš Paunović
d63039f7f9 fix(core): introduce the missing translation key/value pairs for certain languages (#9943) 2025-07-07 12:23:31 +02:00
Miloš Paunović
3c4c1ed275 refactor(core): improve translation pull request description (#9938) 2025-07-07 12:05:09 +02:00
Miloš Paunović
ce1f8a5cc3 refactor(core): remove default reviewers on translation pull requests and add frontend team mention (#9935) 2025-07-07 12:00:17 +02:00
Miloš Paunović
c4581d1442 refactor(core): change default reviewers on translation pull requests to frontend team (#9931) 2025-07-07 11:47:32 +02:00
Miloš Paunović
5c9bb7a110 refactor(core): change default reviewers on translation pull requests (#9929) 2025-07-07 11:42:33 +02:00
Miloš Paunović
c145a0224b refactor(core): open translation pull request on the selected branch instead of develop (#9924) 2025-07-07 11:37:53 +02:00
Miloš Paunović
64121eb24d refactor(core): open translation pull request on the selected branch instead of develop (#9922) 2025-07-07 11:33:21 +02:00
Piyush Bhaskar
fdd7906412 fix(core): fix icon size and handle long title (#9916) 2025-07-07 14:58:27 +05:30
Miloš Paunović
ad87583939 refactor(dashboards): strengthen types for dashboard store module (#9917) 2025-07-07 11:24:21 +02:00
Miloš Paunović
250ada9689 refactor(core): open translation pull request on the selected branch instead of develop (#9919) 2025-07-07 11:22:58 +02:00
github-actions[bot]
e814c68703 chore(core): localize to languages other than english (#9915)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-07-07 10:58:44 +02:00
Miloš Paunović
932be71d47 chore(dashboards): improve the chart editing functionality (#9914) 2025-07-07 10:56:55 +02:00
Roman Acevedo
0c9b5222d6 fix(iam): tenant deletion raised error about mandatory tenantID in request context 2025-07-07 10:41:52 +02:00
github-actions[bot]
ad52c59f2e chore(core): localize to languages other than english (#9910)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-07-07 10:39:56 +02:00
Miloš Paunović
2e9a1478e8 chore(dashboards): add the button tooltip for dashboard edition link (#9909) 2025-07-07 10:38:06 +02:00
Florian Hussonnois
833fa56270 fix(webserver): fix reason in ErrorController (#9897)
The exception message is already included in the payload returned from the response, so we don't have to include it in the HTTP Reason phrase. This leads to a wrong error message format in the UI which is in the form {Reason}: {Error Message}. With the current code Reason=Error Message
2025-07-07 10:12:06 +02:00
Miloš Paunović
34af565257 feat(dashboards): introduce the edit icon on hover for each separate dashboard chart (#9908)
Closes https://github.com/kestra-io/kestra-ee/issues/3419.
2025-07-07 10:07:36 +02:00
Piyush Bhaskar
d61d697665 chore(flows): remove breadcrumbs (#9877)
* chore(core): remove Breadcrumbs

* chore(core): remove no code breadcrumbs related code and logic

---------

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-07-07 13:29:54 +05:30
yuri1969
d698ef56bf fix(cli): prevent NPE on commands defaulting to help 2025-07-07 09:22:47 +02:00
Nicolas K.
b544e257c3 feat(cicd): migrate fetching plugins to maven central (#9902)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-04 17:15:14 +02:00
brian.mulier
2b49c88eab fix(ai): move AI popup button to right + gray placeholder
closes #9890
2025-07-04 17:05:27 +02:00
Miloš Paunović
82a8a118c0 refactor(core): simlify code in plugin documentation (#9900) 2025-07-04 16:24:32 +02:00
yuri
6d9ef2bb38 fix(cli): enforce server command validator (#7418)
With addition of the eagerly initialized BasicAuth bean the validator's order needed to be enforced.
2025-07-04 16:20:56 +02:00
Daniel Rivas
2b3324797b test(processor): add edge-case tests for ServicesFiles utility (#8828) 2025-07-04 16:17:22 +02:00
github-actions[bot]
281e1ef979 chore(core): localize to languages other than english (#9901)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-07-04 16:09:40 +02:00
Barthélémy Ledoux
3637f4f646 perf(ui): only load the schemaType once per page (#9619) 2025-07-04 15:56:20 +02:00
Barthélémy Ledoux
dfc0bcbb45 fix(ui): fix types of axios (#9676) 2025-07-04 15:40:53 +02:00
Barthélémy Ledoux
c6e01a7ecd fix(flows): bring back clear selection (#9893) 2025-07-04 15:39:13 +02:00
Piyush Bhaskar
f60cc48230 refactor(core): migrates trigger module to pinia (#9896) 2025-07-04 17:17:59 +05:30
Miloš Paunović
abc4e16372 feat(dashboards): initial work on adding buttons to chart cards (#9892)
Relates to https://github.com/kestra-io/kestra/issues/9148.
Relates to https://github.com/kestra-io/kestra/issues/9368.
Relates to https://github.com/kestra-io/kestra-ee/issues/3419.
2025-07-04 09:43:22 +02:00
Miloš Paunović
0e2d5376b7 refactor(dashboards): move the dashboard selector to proper place and clean up the code (#9883)
Relates to https://github.com/kestra-io/kestra/issues/9149.
Closes https://github.com/kestra-io/kestra/issues/9872.
2025-07-04 08:29:47 +02:00
brian.mulier
eb8c5ec494 fix(tests): move back wiremock port due to hardcoded in application.yml 2025-07-03 17:52:41 +02:00
nKwiatkowski
5d92300849 feat(cicd): #4006 add javadoc and sources to cli release 2025-07-03 14:58:40 +02:00
brian.mulier
75df4be0ef fix(core): avoid crashing AI Agent when having multiple versions of same plugin
closes #9871
2025-07-03 14:55:24 +02:00
Barthélémy Ledoux
739a873cb2 fix(flows): make sure expression can accept null values (#9876) 2025-07-03 11:55:23 +02:00
Bart Ledoux
046dc6cac8 fix(core): update some broken translations 2025-07-03 11:26:36 +02:00
Barthélémy Ledoux
ae442632a9 tests: run all tests (#9868) 2025-07-03 10:30:00 +02:00
github-actions[bot]
70622ca176 chore(core): localize to languages other than english (#9645)
Co-authored-by: GitHub Action <actions@github.com>
2025-07-03 10:15:19 +02:00
Loïc Mathieu
0c90d6d548 feat(triggers): add failOnTriggerError to create a failed execution on trigger error
Closes #7856
2025-07-03 09:55:23 +02:00
MilosPaunovic
2d27386c77 feat(flows): allow expanding all flow dependencies at once 2025-07-03 09:54:22 +02:00
Loïc Mathieu
e2c629a0d7 feat(flows): allow expanding flow dependencies
Part-of: https://github.com/kestra-io/kestra-ee/issues/4229
2025-07-03 09:54:22 +02:00
Loïc Mathieu
96163d4e6f fix(flows): Kill on cascade on SLA violation
FIxes #9801
2025-07-03 09:16:36 +02:00
YannC
6ec08bd9c8 fix!: Remove stats controllers (#9861)
* fix: Remove stats controllers

* fix: clean frontend + tests
2025-07-02 17:02:22 +02:00
brian.mulier
8691c90c9c fix(ai): short-circuit cases where relevant plugin identifier fails to identify ones 2025-07-02 16:37:48 +02:00
brian.mulier
b57e9ae7a0 fix(core): typo 2025-07-02 15:25:39 +02:00
github-actions[bot]
a61853332d chore(core): localize to languages other than english (#9862)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-07-02 18:30:18 +05:30
Piyush Bhaskar
796be656fa fix(flows): include flow count in export success message. (#9860) 2025-07-02 18:22:49 +05:30
brian.mulier
6e7f3a681a fix(tests): avoid wiremock port collision 2025-07-02 14:06:58 +02:00
Barthélémy Ledoux
665a413d84 fix(flows): open subtask from topology (#9804) 2025-07-02 13:33:30 +02:00
Piyush Bhaskar
c8e61ba3e1 refactor(core): migrates core.js to pinia (#9858)
* refactor(core): migrates core.js to pinia

* fix: remove declaration

* fix: message in axios
2025-07-02 16:44:30 +05:30
Loïc Mathieu
bf8d47f19d feat(flows): remove worker grou validation
No longer invalidate a flow if a task or a trigger set a worker group.

Closes #9808
2025-07-02 13:02:49 +02:00
Roman Acevedo
dcc5c34493 docs(tests,flows): set loosely types fields like input and variable as additional properties
this make the generated openapi spec match batter the existing API
2025-07-02 12:31:15 +02:00
dependabot[bot]
882ac34768 build(deps): bump software.amazon.awssdk:bom from 2.31.70 to 2.31.75
Bumps software.amazon.awssdk:bom from 2.31.70 to 2.31.75.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.75
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-02 12:16:21 +02:00
dependabot[bot]
e236909e33 build(deps): bump com.azure:azure-sdk-bom from 1.2.35 to 1.2.36
Bumps [com.azure:azure-sdk-bom](https://github.com/azure/azure-sdk-for-java) from 1.2.35 to 1.2.36.
- [Release notes](https://github.com/azure/azure-sdk-for-java/releases)
- [Commits](https://github.com/azure/azure-sdk-for-java/compare/azure-sdk-bom_1.2.35...azure-sdk-bom_1.2.36)

---
updated-dependencies:
- dependency-name: com.azure:azure-sdk-bom
  dependency-version: 1.2.36
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-02 11:59:51 +02:00
dependabot[bot]
67518bc2cb build(deps): bump com.gradleup.shadow from 8.3.7 to 8.3.8
Bumps [com.gradleup.shadow](https://github.com/GradleUp/shadow) from 8.3.7 to 8.3.8.
- [Release notes](https://github.com/GradleUp/shadow/releases)
- [Commits](https://github.com/GradleUp/shadow/compare/8.3.7...8.3.8)

---
updated-dependencies:
- dependency-name: com.gradleup.shadow
  dependency-version: 8.3.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-02 11:58:27 +02:00
Miloš Paunović
05787efd90 fix(namespaces)*: take pagination into account when browsing namespace flows (#9849)
Closes https://github.com/kestra-io/kestra/issues/9805.
2025-07-02 11:47:48 +02:00
Miloš Paunović
90c74fceb2 chore(deps): regular dependency update (#9855)
Performing a weekly round of dependency updates in the NPM ecosystem to keep everything up to date.
2025-07-02 11:46:42 +02:00
dependabot[bot]
b1cad2fd93 build(deps): bump org.testcontainers:testcontainers
Bumps [org.testcontainers:testcontainers](https://github.com/testcontainers/testcontainers-java) from 1.21.2 to 1.21.3.
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testcontainers/testcontainers-java/compare/1.21.2...1.21.3)

---
updated-dependencies:
- dependency-name: org.testcontainers:testcontainers
  dependency-version: 1.21.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-02 11:44:30 +02:00
dependabot[bot]
0687808430 build(deps): bump com.google.cloud:libraries-bom from 26.62.0 to 26.63.0
---
updated-dependencies:
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.63.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-02 11:42:20 +02:00
dependabot[bot]
90d30bb920 build(deps): bump com.github.docker-java:docker-java from 3.5.1 to 3.5.2
Bumps [com.github.docker-java:docker-java](https://github.com/docker-java/docker-java) from 3.5.1 to 3.5.2.
- [Release notes](https://github.com/docker-java/docker-java/releases)
- [Changelog](https://github.com/docker-java/docker-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/docker-java/docker-java/compare/3.5.1...3.5.2)

---
updated-dependencies:
- dependency-name: com.github.docker-java:docker-java
  dependency-version: 3.5.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-02 11:41:39 +02:00
dependabot[bot]
fcf5215ccc build(deps): bump flyingSaucerVersion from 9.12.1 to 9.13.0
---
updated-dependencies:
- dependency-name: org.xhtmlrenderer:flying-saucer-core
  dependency-version: 9.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.xhtmlrenderer:flying-saucer-pdf
  dependency-version: 9.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-02 11:40:10 +02:00
dependabot[bot]
856db91609 build(deps): bump com.google.adk:google-adk from 0.1.0 to 0.2.0
---
updated-dependencies:
- dependency-name: com.google.adk:google-adk
  dependency-version: 0.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-02 11:39:44 +02:00
Nicolas K.
2b83fc7d4d feat(cicd): #4006 change signing method (#9854)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-02 11:13:23 +02:00
Loïc Mathieu
d22b7e9b98 fix(system): fix ExecutionControllerRunnerTest.resumeExecutionPaused() 2025-07-02 11:00:26 +02:00
brian-mulier-p
515dbdbf54 fix(core): remove prerendering + restrict only secret function in debug expression (#9816) 2025-07-02 10:52:14 +02:00
github-actions[bot]
2735986c57 chore(core): localize to languages other than english (#9812)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-07-01 18:25:58 +02:00
brian.mulier
deb2fdcd9e fix(core): add config from backend that sends whether the AI feature is configured or not 2025-07-01 16:30:08 +02:00
brian-mulier-p
5677a6bdbe feat(core): add Pebble HTTP function (#9786)
closes kestra-io/kestra-ee#4218
2025-07-01 16:27:13 +02:00
Nicolas K.
6a8225d2fb feat(cicd): #4006 migrate to maven central (#9807)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-01 16:17:08 +02:00
brian-mulier-p
f402aa7643 feat(core): introduce AI agent (#9733)
closes kestra-io/kestra-ee#3458
2025-07-01 15:43:54 +02:00
Miloš Paunović
65316da4e8 fix(dashboards): properly show default charts on logs page (#9800)
Closes https://github.com/kestra-io/kestra/issues/9612.
2025-07-01 15:28:43 +02:00
AJ Emerich
a152204f55 docs(dashboards): fix example indentations (#9802)
Closes https://github.com/kestra-io/kestra/issues/9790
2025-07-01 15:21:23 +02:00
Nicolas K.
c6e5cdfd93 feat(cicd): #4006 migrate sonatype to maven central (#9803)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-07-01 15:00:34 +02:00
Barthélémy Ledoux
7fcf94f12a fix(flows): finish YAML_UTILS refactoring (#9795) 2025-07-01 14:29:37 +02:00
YannC.
c4082dbc1b feat(triggers): avoid clearing selection when refreshing in triggers list 2025-07-01 14:20:55 +02:00
YannC.
1d7574b155 fix(triggers): correctly replace the update triggers when disabling 2025-07-01 14:18:13 +02:00
Miloš Paunović
436b770d21 chore(dashboards): move store module from vuex to pinia (#9796) 2025-07-01 14:07:23 +02:00
Piyush Bhaskar
0e382b2492 chore(logs): remove double scrollbar on the logs page (#9670)
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-07-01 13:21:41 +02:00
Loïc Mathieu
47b10b4a79 feat(system): repoll immediatly when a poll returns resutls in the queue 2025-07-01 12:11:52 +02:00
Loïc Mathieu
30792302aa chore(flows): rename retry maxAttempt to maxAttemps
Keep maxAttempt as deprecated to avoid any breaking changes.

Closes #9729
2025-07-01 11:25:46 +02:00
Barthélémy Ledoux
6bcfbaa1df fix(flows): restore dag open tabs after hard refresh (#9792) 2025-07-01 10:16:02 +02:00
Barthélémy Ledoux
8d6547865d fix(flow): avoid calling icons api more than once (#9784) 2025-07-01 10:15:49 +02:00
Piyush Bhaskar
7ba0780b4f feat(core): add useDataTableActions composable (#9777)
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-07-01 12:40:55 +05:30
Roman Acevedo
5493f53892 fix(system): revert Property type changed to string in openapi spec
this may cause issue with jsonSchema generation. So, to not take any risk I reverted it and will do a hack in SDK
2025-06-30 18:46:35 +02:00
Roman Acevedo
39e08abf26 fix(tests): deleted db serialization was broken in recent commit 2025-06-30 18:43:22 +02:00
François Delbrayelle
ff66471f37 feat(gemini): add the plugin to .plugins 2025-06-30 17:00:02 +02:00
Loïc Mathieu
8109493f19 feat(flows): add resumed information to the Pause task
Add who resume the Pause task and when.
Part-of: https://github.com/kestra-io/kestra-ee/issues/2806
2025-06-30 16:22:34 +02:00
Barthélémy Ledoux
2b59d9ec21 refactor(ui): migrate bookmarks store to pinia (#9685) 2025-06-30 16:15:10 +02:00
brian-mulier-p
0beac5e9f2 fix(core): increase max encode size to avoid icons fetch timeout (#9782) 2025-06-30 15:40:10 +02:00
Loïc Mathieu
5f7ecba4c7 feat(flows): allow setting worker group at the flow level
Part-of: https://github.com/kestra-io/kestra-ee/issues/4141
2025-06-30 14:58:45 +02:00
Loïc Mathieu
c56f377019 fix(system)*: mitigate possible deadlock for execution delay and SLA
In case multiple instances of the executor are started, the execution delay loop and the monitoring SLA loop have a risk of duplicate execution resume or execution SLA violation computation.
This could create some race conditions and duplicate execution update.
But this may also risk to create some deadlocks as two instances of the executor may try to lock the same exection to restart it (or fail it due to SLA).
2025-06-30 14:33:06 +02:00
Miloš Paunović
9530e820e8 chore(deps): regular dependency update (#9779)
Performing a weekly round of dependency updates in the NPM ecosystem to keep everything up to date.
2025-06-30 13:21:27 +02:00
Sjoerd Smink
09adee6017 Update Request.java multiline JSON example 2025-06-30 11:21:22 +02:00
yashmurthy98
12f3e2ea68 fix(guides): crawl into sub-folders 2025-06-30 11:05:21 +02:00
rajatsingh23
8c32ff74c9 chore(dashboards): always updating chart previews on dashboard creation (#9536)
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-06-30 10:23:06 +02:00
François Delbrayelle
023d005e63 fix(taskrunner): abstract task runner (#9769) 2025-06-30 09:19:32 +02:00
Piyush Bhaskar
9a86bb1125 feat(core): add button to copy all logs to clipboard (#9763) 2025-06-30 11:24:48 +05:30
Piyush Bhaskar
99fca84e31 fix(ui): adjust logo in collapsed state (#9761) 2025-06-30 11:22:51 +05:30
Roman Acevedo
bfe4d7b983 fix(tests): TestSuite fields were almost all required in openapi spec 2025-06-27 17:37:58 +02:00
Roman Acevedo
31d372df55 feat(system): make Property a string in openapi spec generation
we already return Serialize as a string, we need to indicated to openapi generator that it is in fact Serialized as such
2025-06-27 17:30:20 +02:00
Roman Acevedo
70b9ddee28 fix(tests): testcases were not fully validated 2025-06-27 15:52:40 +02:00
Loïc Mathieu
d44a203bed feat(flows): supports the nsfile:// protocol
Automatically fetch namespace files from URI with the 'nsfile' scheme.
The authority allow to fetch file from another namespace.

The following has been done:
- Supports using nsfile inside `from`
- Supports using nsfile inside input files
- Supports using nsfile as a FILE input defaults
- Supports using nsfile inside the Pebble files functions

Closes: #9741
2025-06-27 15:26:38 +02:00
Roman Acevedo
2cb361a7c6 build: lower codecev default targets to make it more pertinent 2025-06-27 11:07:52 +02:00
brian.mulier
b19737f20a fix(core): remove tenant from plugins URLs 2025-06-27 10:52:28 +02:00
Nicolas K.
7373f3ee5b feat(namespaces): #3568 add new folderPerNamespace attribute to namespaceFiles (#9752)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-06-27 10:46:14 +02:00
Nicolas K.
f8670ef216 feat(api): #4108 remove tenant id from trigger body and plugin URL (#9749)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-06-27 10:42:17 +02:00
Barthélémy Ledoux
c9debbd869 remove unused constant (#9751) 2025-06-27 10:32:03 +02:00
Loïc Mathieu
4149ef4f3e feat(flows): allow reading local files inside the file functions
Supports the 'file://' protocol inside the read(), isFileEmpty(), fileExists() and fileSize() Pebble functions.

Closes #9739
2025-06-27 09:45:34 +02:00
Piyush Bhaskar
8e50da83c3 refactor(stat): migrate stat store from Vuex to Pinia (#9750) 2025-06-26 16:39:40 +02:00
Barthélémy Ledoux
00b1e320b9 fix(plugins): finish pinia migration of plugins store (#9746) 2025-06-26 16:39:18 +02:00
Loïc Mathieu
c4e762506c feat(cluster): persist maintenance mode in the database
Part-of: https://github.com/kestra-io/kestra-ee/issues/3735
2025-06-26 14:31:05 +02:00
Barthélémy Ledoux
d7f6addb79 fix(flows): make autocomplete work in pebble (#9742) 2025-06-26 11:00:55 +02:00
Piyush Bhaskar
b2f8c89e02 refactor(layout): migrate layout.js from vuex to Pinia. (#9687)
* refactor(layout): migrate layout.js from vuex to Pinia.

* refactor(layout): replace getters with direct state access.
2025-06-26 13:37:43 +05:30
Piyush Bhaskar
83e1d77230 refactor(store): migrate Blueprints to Pinia (#9735)
* refactor(store): migrate Blueprints to Pinia

* fix: remove blueprints from declaration
2025-06-26 13:32:02 +05:30
Piyush Bhaskar
dafebc76a3 feat(tenant): all routes on /main tenant (#9664)
* feat(tenant): all  routes on /main tenant

* fix: remove params

* fix: setup tenant router in main
2025-06-26 11:35:44 +05:30
Malaydewangan09
a1e53443a5 feat(scripts): enable script/cli plugins to override final task state 2025-06-25 23:17:44 +05:30
brian.mulier
076ae2e933 fix(core): use namespace prefix instead of equals
On the namespace/flows, namespace/executions pages and when having a default namespace on Logs page

closes kestra-io/kestra-ee#4200
2025-06-25 17:48:21 +02:00
François Delbrayelle
bb7b9edaf2 feat(devtools): copy plugin jars to plugins dir (#9738) 2025-06-25 17:01:31 +02:00
Loïc Mathieu
5aa1b20138 chore(system): call the close runnable later 2025-06-25 14:34:14 +02:00
Loïc Mathieu
cf01f4f0e8 feat(flows): support local files as FILE input default value
Closes #9681
2025-06-25 13:55:49 +02:00
Loïc Mathieu
201912fa22 feat(flows): support local files in input files
Closes https://github.com/kestra-io/plugin-scripts/issues/268
2025-06-25 10:49:10 +02:00
dependabot[bot]
d4891d1c11 build(deps): bump opensearchRestVersion from 3.0.0 to 3.1.0
Bumps `opensearchRestVersion` from 3.0.0 to 3.1.0.

Updates `org.opensearch.client:opensearch-rest-client` from 3.0.0 to 3.1.0
- [Release notes](https://github.com/opensearch-project/OpenSearch/releases)
- [Changelog](https://github.com/opensearch-project/OpenSearch/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opensearch-project/OpenSearch/compare/3.0.0...3.1.0)

Updates `org.opensearch.client:opensearch-rest-high-level-client` from 3.0.0 to 3.1.0
- [Release notes](https://github.com/opensearch-project/OpenSearch/releases)
- [Changelog](https://github.com/opensearch-project/OpenSearch/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opensearch-project/OpenSearch/compare/3.0.0...3.1.0)

---
updated-dependencies:
- dependency-name: org.opensearch.client:opensearch-rest-client
  dependency-version: 3.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.opensearch.client:opensearch-rest-high-level-client
  dependency-version: 3.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-25 10:30:40 +02:00
dependabot[bot]
bff6865806 build(deps): bump software.amazon.awssdk:bom from 2.31.65 to 2.31.70
Bumps software.amazon.awssdk:bom from 2.31.65 to 2.31.70.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.70
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-25 10:30:25 +02:00
dependabot[bot]
ebc887908c build(deps): bump org.jsoup:jsoup from 1.20.1 to 1.21.1
Bumps [org.jsoup:jsoup](https://github.com/jhy/jsoup) from 1.20.1 to 1.21.1.
- [Release notes](https://github.com/jhy/jsoup/releases)
- [Changelog](https://github.com/jhy/jsoup/blob/master/CHANGES.md)
- [Commits](https://github.com/jhy/jsoup/compare/jsoup-1.20.1...jsoup-1.21.1)

---
updated-dependencies:
- dependency-name: org.jsoup:jsoup
  dependency-version: 1.21.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-25 10:30:07 +02:00
dependabot[bot]
710d2f6c2b build(deps): bump com.gradleup.shadow from 8.3.6 to 8.3.7
Bumps [com.gradleup.shadow](https://github.com/GradleUp/shadow) from 8.3.6 to 8.3.7.
- [Release notes](https://github.com/GradleUp/shadow/releases)
- [Commits](https://github.com/GradleUp/shadow/compare/8.3.6...8.3.7)

---
updated-dependencies:
- dependency-name: com.gradleup.shadow
  dependency-version: 8.3.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-25 10:29:48 +02:00
dependabot[bot]
48de33d04b build(deps): bump org.testcontainers:testcontainers
Bumps [org.testcontainers:testcontainers](https://github.com/testcontainers/testcontainers-java) from 1.21.1 to 1.21.2.
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testcontainers/testcontainers-java/compare/1.21.1...1.21.2)

---
updated-dependencies:
- dependency-name: org.testcontainers:testcontainers
  dependency-version: 1.21.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-25 10:29:24 +02:00
dependabot[bot]
59b837e873 build(deps): bump com.microsoft.playwright:playwright
Bumps [com.microsoft.playwright:playwright](https://github.com/microsoft/playwright-java) from 1.52.0 to 1.53.0.
- [Release notes](https://github.com/microsoft/playwright-java/releases)
- [Commits](https://github.com/microsoft/playwright-java/compare/v1.52.0...v1.53.0)

---
updated-dependencies:
- dependency-name: com.microsoft.playwright:playwright
  dependency-version: 1.53.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-25 10:29:02 +02:00
brian-mulier-p
7463be3496 fix(variables): put fixtures files with arbitrary key and extract it back as root level "files" variable (#9689) 2025-06-24 17:29:39 +02:00
Rishi Jat
aedfbdc46a fix(ui): remove Close Task button in NoCode editor (#9661)
Co-authored-by: Bart Ledoux <bledoux@kestra.io>
2025-06-24 15:22:02 +02:00
Anna Geller
9a8363ce69 fix(api-docs): tenant info in API docs (#9675)
* fix(api-docs): tenant info in API docs

* fix: descriptions
2025-06-23 19:26:16 +02:00
Ludovic DEHON
d08d345719 test(core): fix falling test on schedule 2025-06-23 18:52:51 +02:00
Loïc Mathieu
9813d60954 fix(system): possible NPE on trigger when computing variables 2025-06-23 18:12:09 +02:00
Barthélémy Ledoux
4257168818 fix(ui): deletion of namespace files depend on node not data (#9666) 2025-06-23 14:02:40 +02:00
Loïc Mathieu
d22aedaaa5 feat(flows): add a log into the Subflow task when a flow it fail (#9652) 2025-06-23 12:40:09 +02:00
brian-mulier-p
094ab828e7 fix: avoid failure to deserialize json objects that have unknown fields with http client (#9668)
closes #9667
2025-06-23 12:21:42 +02:00
Satvik Kushwaha
1d9b5d26ce Fix(UI) execution charts values (#9669)
* added steps in bar chart

* date issue fixed

* cohre: minor tweak

* added stepsize for Bar.ue as well

---------

Co-authored-by: MilosPaunovic <paun992@hotmail.com>
2025-06-23 11:47:12 +02:00
Barthélémy Ledoux
d9371c1fd2 refactor: integrate vuex & axios with pinia (#9626) 2025-06-23 10:56:07 +02:00
Loïc Mathieu
9fa5f6df56 feat(executions)*: add tasks to set and unset execution variables
Closes #9555
2025-06-23 10:43:03 +02:00
Loïc Mathieu
97b89d3a38 fix(core): retry flaky runner test restartForEachItem as it's flaky on CI but always pass locally 2025-06-23 10:27:49 +02:00
github-actions[bot]
ab286a1ec1 chore(core): localize to languages other than english (#9659)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-06-20 18:58:59 +02:00
Loïc Mathieu
9c702d3186 fix(execution): parent flow never ends when subflow fail due to SLA
This is because the executor didn't have the flow inside it so the execution is not correctly terminated.
It may fix other issues (like flow triggers, purge, ...)

Fixes #9618
2025-06-20 16:44:23 +02:00
Piyush-r-bhaskar
a2bbd53502 chore: update ui-libs 2025-06-20 19:25:09 +05:30
Piyush Bhaskar
fc2f89bb53 feat(ui): Add connection properties group sorting (#9644) 2025-06-20 18:35:51 +05:30
Loïc Mathieu
ebe1f3f189 fix(system): flow graph fail to be created while editting a flow
Fixes #9551

It is not the validation per se that fail, it's the graph dependency computation that is also done while editing a flow that fail.
2025-06-20 12:07:41 +02:00
Loïc Mathieu
a623b4c478 fix(system)*: runIf inside a WorkingDirectory can crash the Worker
Fixes #9639
2025-06-20 12:07:25 +02:00
Nicolas K.
1d66f7e1cc Fix/failing backup unit test (#9642)
* test(core): fix failing unit tests

* test(core): fix failing unit tests

---------

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-06-20 11:32:18 +02:00
Loïc Mathieu
b9f224ca91 fix(system): SettingRepository test 2025-06-20 11:31:04 +02:00
Tijn Koppert
1c3049a881 feat(ui): Add support for bulk-select and bulk-delete (#8281)
Co-authored-by: Barthélémy Ledoux <bledoux@kestra.io>
2025-06-20 11:18:01 +02:00
Barthélémy Ledoux
651fdc1322 fix(ui): default value for expression cannot be null (#9636) 2025-06-20 11:11:54 +02:00
Loïc Mathieu
bb6c480046 feat(flows): allow to pass a typed object in Data.from()
This would facilitate dev experience as he would be able to directly use a typed object not a Map.
This will not be used inside a Kestra instance as deserialization would always deserialize to a Map as the `from` attribute is an Object.
2025-06-20 10:43:54 +02:00
Nicolas K.
5b5cca33f0 fix(triggers): #4110 NPE when disable trigger with empty body (#9635)
* fix(triggers): #4110 NPE when disable trigger with empty body

* fix(triggers): #4110 unit tests

---------

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-06-20 10:27:33 +02:00
Piyush Bhaskar
bafc3047d9 feat(namespaces): show ns description (#9610)
* feat(namespaces): show ns description

* add slot and data for description
2025-06-20 13:55:20 +05:30
Barthélémy Ledoux
cbd0b8a74a style: fix font-size of label (#9634) 2025-06-20 09:32:01 +02:00
François Delbrayelle
76fc55bbd9 fix(plugin-versioning): replace current JAR if more recent (#9629) 2025-06-19 18:43:41 +02:00
Loïc Mathieu
d7c54809e9 chore(system): relax again some test on AbstractSettingRepositoryTest
Again because in ES there is the version settings and not in JDBC.
2025-06-19 17:53:29 +02:00
YannC.
e015a94c95 fix(ci): modify job id for end task 2025-06-19 17:19:54 +02:00
Loïc Mathieu
5e97e25658 chore(system): relax AbstractSettingRepositoryTest assertion
There is a discrepiancy between JDBC and ES, as it's not important and I dind't find a quik way to fix the test I relax the assertion.
2025-06-19 16:44:32 +02:00
Loïc Mathieu
c8aa678ef8 feat(executions): allow using local host files in tasks
Closes https://github.com/kestra-io/kestra-ee/issues/3469
2025-06-19 15:48:57 +02:00
Loïc Mathieu
695f684613 fix(system): support allowFailure and allowWarning for the Pause task
Fixes #9416
2025-06-19 14:56:42 +02:00
Florian Hussonnois
f59def2c7d chore(core): add top-level exception ConflictException 2025-06-19 14:35:49 +02:00
Barthélémy Ledoux
1139a16d17 tests: nocode editor (#9624) 2025-06-19 14:20:45 +02:00
Bart Ledoux
1e55003e3f Revert "refactor: start replacing vuex with pinia (#8430)"
This reverts commit 9c052c0a41.
2025-06-19 13:24:42 +02:00
Loïc Mathieu
c047e37c01 feat(system): store version in the settings 2025-06-19 12:22:08 +02:00
Barthélémy Ledoux
bc8c8d4ee1 perf(ui): load a sample schema while waiting (#9558) 2025-06-19 11:33:18 +02:00
YannC.
de8c3fd0b7 feat: trigger EE CI when OSS develop branch succeed 2025-06-19 10:55:58 +02:00
Nicolas K.
7fc274fe1a Fix/tutorial flows with migration (#9620)
* fix(core): #9609 delete tutorial flows and triggers before migrating the database

* fix(core): #9609 delete tutorial flows and triggers before migrating the database for EE version

---------

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-06-19 10:53:18 +02:00
Barthélémy Ledoux
9c052c0a41 refactor: start replacing vuex with pinia (#8430) 2025-06-19 10:52:55 +02:00
YannC
5682d12ee8 fix: correctly use default tenant when synchronizing file with local (#9605)
close #9568
2025-06-19 10:04:39 +02:00
YannC
b160361f9e feat(ui): Allows ContextInfoBar.vue to have dynamic buttons from props (#9613) 2025-06-19 09:46:19 +02:00
François Delbrayelle
a981a309d6 fix(podman): do not pass the tag directly to pullImageCmd (withTag) (#9607) 2025-06-18 18:05:16 +02:00
Nicolas K.
185fa80058 Feat/clean query filters (#9569)
* feat(repositories): clean and fix query filters

* fix(core): #4106 Clean and add unit tests to query filters

* clean(core): format string more cleanly

* fix(core): unit test failing on mysql flow repository

* feat(core): #4106 update ui filters

* fix(ui): add date filter on flows back

---------

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-06-18 17:40:56 +02:00
Florian Hussonnois
d6047fea96 chore(core): add top-level exception NotFoundException 2025-06-18 16:32:15 +02:00
dependabot[bot]
37bd6e16a1 build(deps): bump jacksonVersion from 2.19.0 to 2.19.1
Bumps `jacksonVersion` from 2.19.0 to 2.19.1.

Updates `com.fasterxml.jackson:jackson-bom` from 2.19.0 to 2.19.1
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.19.0...jackson-bom-2.19.1)

Updates `com.fasterxml.jackson.core:jackson-core` from 2.19.0 to 2.19.1
- [Commits](https://github.com/FasterXML/jackson-core/compare/jackson-core-2.19.0...jackson-core-2.19.1)

Updates `com.fasterxml.jackson.core:jackson-databind` from 2.19.0 to 2.19.1
- [Commits](https://github.com/FasterXML/jackson/commits)

Updates `com.fasterxml.jackson.core:jackson-annotations` from 2.19.0 to 2.19.1
- [Commits](https://github.com/FasterXML/jackson/commits)

Updates `com.fasterxml.jackson.module:jackson-module-parameter-names` from 2.19.0 to 2.19.1
- [Commits](https://github.com/FasterXML/jackson-modules-java8/compare/jackson-modules-java8-2.19.0...jackson-modules-java8-2.19.1)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-yaml` from 2.19.0 to 2.19.1
- [Commits](https://github.com/FasterXML/jackson-dataformats-text/compare/jackson-dataformats-text-2.19.0...jackson-dataformats-text-2.19.1)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-smile` from 2.19.0 to 2.19.1
- [Commits](https://github.com/FasterXML/jackson-dataformats-binary/compare/jackson-dataformats-binary-2.19.0...jackson-dataformats-binary-2.19.1)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-cbor` from 2.19.0 to 2.19.1
- [Commits](https://github.com/FasterXML/jackson-dataformats-binary/compare/jackson-dataformats-binary-2.19.0...jackson-dataformats-binary-2.19.1)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-ion` from 2.19.0 to 2.19.1
- [Commits](https://github.com/FasterXML/jackson-dataformat-ion/commits)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-xml` from 2.19.0 to 2.19.1
- [Commits](https://github.com/FasterXML/jackson-dataformat-xml/compare/jackson-dataformat-xml-2.19.0...jackson-dataformat-xml-2.19.1)

Updates `com.fasterxml.jackson.datatype:jackson-datatype-guava` from 2.19.0 to 2.19.1
- [Commits](https://github.com/FasterXML/jackson-datatypes-collections/compare/jackson-datatypes-collections-2.19.0...jackson-datatypes-collections-2.19.1)

Updates `com.fasterxml.jackson.datatype:jackson-datatype-jsr310` from 2.19.0 to 2.19.1

Updates `com.fasterxml.jackson.datatype:jackson-datatype-jdk8` from 2.19.0 to 2.19.1

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.core:jackson-core
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.core:jackson-databind
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.core:jackson-annotations
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.module:jackson-module-parameter-names
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-smile
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-cbor
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-ion
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-xml
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-guava
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-jsr310
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-jdk8
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-18 13:44:14 +02:00
dependabot[bot]
a514500244 build(deps): bump org.apache.logging.log4j:log4j-to-slf4j
Bumps org.apache.logging.log4j:log4j-to-slf4j from 2.24.3 to 2.25.0.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-to-slf4j
  dependency-version: 2.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-18 13:42:32 +02:00
François Delbrayelle
25adcc492a fix(plugin): FileSystems.newFileSystem caused a Path component should be / in plugins tests (#9570) 2025-06-18 13:07:56 +02:00
dependabot[bot]
39d31f4a1a build(deps): bump nl.basjes.gitignore:gitignore-reader
Bumps [nl.basjes.gitignore:gitignore-reader](https://github.com/nielsbasjes/codeowners) from 1.11.3 to 1.12.0.
- [Release notes](https://github.com/nielsbasjes/codeowners/releases)
- [Changelog](https://github.com/nielsbasjes/codeowners/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nielsbasjes/codeowners/compare/v1.11.3...v1.12.0)

---
updated-dependencies:
- dependency-name: nl.basjes.gitignore:gitignore-reader
  dependency-version: 1.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-18 10:44:14 +02:00
dependabot[bot]
35eef54d74 build(deps): bump software.amazon.awssdk:bom from 2.31.61 to 2.31.65
Bumps software.amazon.awssdk:bom from 2.31.61 to 2.31.65.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.65
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-18 10:07:02 +02:00
dependabot[bot]
f8aa9cc9dd build(deps): bump org.wiremock:wiremock-jetty12 from 3.13.0 to 3.13.1
Bumps [org.wiremock:wiremock-jetty12](https://github.com/wiremock/wiremock) from 3.13.0 to 3.13.1.
- [Release notes](https://github.com/wiremock/wiremock/releases)
- [Commits](https://github.com/wiremock/wiremock/compare/3.13.0...3.13.1)

---
updated-dependencies:
- dependency-name: org.wiremock:wiremock-jetty12
  dependency-version: 3.13.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-18 10:06:35 +02:00
dependabot[bot]
0218931596 build(deps): bump flyingSaucerVersion from 9.12.0 to 9.12.1
Bumps `flyingSaucerVersion` from 9.12.0 to 9.12.1.

Updates `org.xhtmlrenderer:flying-saucer-core` from 9.12.0 to 9.12.1
- [Release notes](https://github.com/flyingsaucerproject/flyingsaucer/releases)
- [Changelog](https://github.com/flyingsaucerproject/flyingsaucer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/flyingsaucerproject/flyingsaucer/compare/v9.12.0...v9.12.1)

Updates `org.xhtmlrenderer:flying-saucer-pdf` from 9.12.0 to 9.12.1
- [Release notes](https://github.com/flyingsaucerproject/flyingsaucer/releases)
- [Changelog](https://github.com/flyingsaucerproject/flyingsaucer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/flyingsaucerproject/flyingsaucer/compare/v9.12.0...v9.12.1)

---
updated-dependencies:
- dependency-name: org.xhtmlrenderer:flying-saucer-core
  dependency-version: 9.12.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.xhtmlrenderer:flying-saucer-pdf
  dependency-version: 9.12.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-18 10:05:33 +02:00
dependabot[bot]
369d4ba39f build(deps): bump org.jooq:jooq from 3.20.4 to 3.20.5
Bumps org.jooq:jooq from 3.20.4 to 3.20.5.

---
updated-dependencies:
- dependency-name: org.jooq:jooq
  dependency-version: 3.20.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-18 10:05:05 +02:00
François Delbrayelle
f009263035 Revert "fix(plugin): FileSystems.newFileSystem caused a Path component should be / in plugins tests (#9562)"
This reverts commit 8516557553.
2025-06-17 17:37:38 +02:00
Roman Acevedo
bd576d65f9 refactor: remove package lock json added by mistake 2025-06-17 16:40:07 +02:00
Roman Acevedo
4557bc8f40 tests(flows): add e2e create and execute Flow test
* tests: add e2e create and execute Flow test

* various fixes

---------

Co-authored-by: Barthélémy Ledoux <bledoux@kestra.io>
2025-06-17 16:26:54 +02:00
Piyush Bhaskar
f20f2e7a0e fix(core): save disabled , tab not dirty on save (#9560) 2025-06-17 18:13:01 +05:30
François Delbrayelle
8516557553 fix(plugin): FileSystems.newFileSystem caused a Path component should be / in plugins tests (#9562) 2025-06-17 14:22:47 +02:00
Bart Ledoux
13e1e49ebb chore: update ui-libs 2025-06-17 11:19:46 +02:00
github-actions[bot]
9d989115ad chore(core): localize to languages other than english (#9552)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-06-16 17:20:35 +02:00
Ludovic DEHON
289a26ba87 fix(tasks): sleep example are a full one 2025-06-16 15:01:42 +02:00
Barthélémy Ledoux
105b8ece17 fix(ui): make file panel appear beside main panel in namespace (#9546) 2025-06-16 14:44:40 +02:00
Sarthak Ladhwe
e2b2a1f19f feat(ui): repo star button on right menu (#9526)
Co-authored-by: Piyush Bhaskar <102078527+Piyush-r-bhaskar@users.noreply.github.com>
2025-06-16 18:07:04 +05:30
Bart Ledoux
aea8d6e52e tests: fix storybook tests 2025-06-16 13:31:10 +02:00
github-actions[bot]
33404bfa3b chore(core): localize to languages other than english (#9544)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-06-16 13:22:27 +02:00
Prayag
62fc839d64 Fix Sidebar Scrollbar and Version Text Wrapping, Minimize Panel Styles (#9528)
* fix(ui): hide sidebar scrollbar while enabling scrolling and fix version text wrapping

* minor tweak

---------

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
Co-authored-by: Piyush Bhaskar <102078527+Piyush-r-bhaskar@users.noreply.github.com>
2025-06-16 16:15:25 +05:30
Bart Ledoux
1fa1f0c3d6 fix(ui): make array and KV Pairs work in nocode 2025-06-16 12:19:05 +02:00
rkitamu
bb746e5dad fix(ui): avoid validation API call when Flow editor is empty (#5387) (#9538)
* fix(ui): avoid validation API call when editor is empty

* fix(ui): Replace hardcoded "No data" with translatable message for empty flow validation
2025-06-16 08:56:37 +02:00
Piyush Bhaskar
23db6c60f7 fix(core): route to namespaces' flow and execution (#9517) 2025-06-16 10:44:01 +05:30
Ludovic DEHON
e5b816d723 fix(core): robots.txt was not served
close kestra-io/kestra#9015
2025-06-13 23:00:40 +02:00
Florian Hussonnois
7b44569efc chore(system): remove dedicated JdbcServiceLivenessManager 2025-06-13 17:41:56 +02:00
brian.mulier
8e5c5c97fa fix(core): yaml utils migration 2025-06-13 17:10:02 +02:00
Barthélémy Ledoux
6953e9fa58 fix: cleanup empty metadata to fix variable creation (#9529) 2025-06-13 16:38:54 +02:00
Barthélémy Ledoux
007ace6360 fix(ui): nocode API calls on EE needs tenant (#9527) 2025-06-13 16:38:38 +02:00
Miloš Paunović
4d4f8220ca refactor(dashboards): improve process of dashboard creation (#9530)
Related to https://github.com/kestra-io/kestra/issues/9149.

Companion of https://github.com/kestra-io/kestra-ee/pull/4081.
2025-06-13 16:37:40 +02:00
Florian Hussonnois
d97879f813 fix(executor): delete WorkerJobRunning for any terminated task (#9493)
Make ExecutorService responsible for deleting WorkerJobRunning
when a terminated TaskRun is added to an execution.

Changes:
 - Remove unecessary read before delete on WorkerJobRunning table.

Close: #9493
2025-06-13 16:29:12 +02:00
brian.mulier
7bce99845c fix(core): filters was triggering endless refresh
closes #9508
2025-06-13 16:24:11 +02:00
Miloš Paunović
e8c6a4511b refactor(dashboards): further clean up of the ui code related to dashboards (#9521)
Related to https://github.com/kestra-io/kestra/issues/9149.

Companion of https://github.com/kestra-io/kestra-ee/pull/4079.
2025-06-13 14:32:45 +02:00
Satvik Kushwaha
3a027fef36 chore(dashboards): switch default time series chart scale to integer numbers (#9510)
Co-authored-by: MilosPaunovic <paun992@hotmail.com>
2025-06-13 13:57:10 +02:00
Barthélémy Ledoux
f15919ba2e fix: small tweaks on tabs (#9520) 2025-06-13 13:54:32 +02:00
Miloš Paunović
839836a9e9 refactor(dashboards): add missing translations related to dashboards (#9519) 2025-06-13 13:29:27 +02:00
Barthélémy Ledoux
f700b8a1c5 fix(ui): snafu on duplicate input pair (#9514) 2025-06-13 12:09:33 +02:00
Miloš Paunović
7456440de6 refactor(dashboards): clean up ui code related to dashboards (#9421)
Related to https://github.com/kestra-io/kestra/issues/9149.

Companion of https://github.com/kestra-io/kestra-ee/pull/4023.
2025-06-13 10:15:10 +02:00
Barthélémy Ledoux
576c5cfef9 fix(ui): [nocode] make dag tasks work (#9506) 2025-06-13 09:11:08 +02:00
Miloš Paunović
8678d2d49b fix(core)*: make sure tour always opens with code & topology tabs visible (#9513)
Closes https://github.com/kestra-io/kestra-ee/issues/4073.
2025-06-13 08:53:26 +02:00
Piyush Bhaskar
1149b8e8ac feat(core): variables tab under Multipanel (#9498)
* feat(core): variables tab under Multipanel

* add unstaged changes

---------

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-06-13 11:28:01 +05:30
Barthélémy Ledoux
18fe4e94a9 feat(ui): make version readonly on oss (#9486)
Co-authored-by: GitHub Action <actions@github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-12 16:14:05 +02:00
github-actions[bot]
6d0f6c15fe Translations from en.json (#9501)
* fix: move type back to left

* make version field always readonly

* fix: add final touches

* fix: prefill anyof with current value type

* chore(core): localize to languages other than english (#9488)

Co-authored-by: GitHub Action <actions@github.com>

* fix: title of string pebble

* fix translations

* chore(core): localize to languages other than english

Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

---------

Co-authored-by: Bart Ledoux <bledoux@kestra.io>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <actions@github.com>
2025-06-12 13:39:32 +02:00
YannC
26df3e98af fix(ui): Better duplicate key management in the pair component (#9431)
* fix(ui): Better duplicate key mananage in the pair component

close #9220

* fix(ui): add a have-error prop on inputText that show a red shadow

* refactor: simplify inputpair component (#9491)

* fix: only show lock if disabled

* alertState define order

---------

Co-authored-by: Barthélémy Ledoux <bledoux@kestra.io>
2025-06-12 13:27:49 +02:00
Roman Acevedo
01ccd0db7b fix(tests): test editor was showing previous shown plugin doc
fixes https://github.com/kestra-io/kestra-ee/issues/4066
2025-06-12 13:20:37 +02:00
brian-mulier-p
06c67f491b feat(core): introduce tasksWithState autocompletion (#9485)
part of #8350
2025-06-12 09:55:21 +02:00
Kelvin Yim
079874e4ca fix(ui): resolve filter display inconsistency between dark and light themes (#9487)
* fix: resolve filter display inconsistency between dark and light themes

Updates KestraFilter.vue styling to ensure search criteria display
consistently across both theme modes.

Fixes #9398

* fix: resolve filter display inconsistency between dark and light themes

Updates KestraFilter.vue styling to ensure search criteria display
consistently across both theme modes.

* fix: resolve filter display inconsistency between dark and light themes

Updates KestraFilter.vue styling to ensure search criteria display
consistently across both theme modes.

---------

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-06-12 13:16:18 +05:30
Barthélémy Ledoux
a5928fd016 fix(ui): nocode updating inputs from yaml (#9430) 2025-06-12 09:44:03 +02:00
Barthélémy Ledoux
efed3cb247 fix(ui): rename namespace field (#9492) 2025-06-12 09:38:41 +02:00
Barthélémy Ledoux
fab1bb0186 fix(ui): prevent cursor change in Editor component when modelValue is updated from outside (#9371) 2025-06-12 09:38:27 +02:00
Nicolas K.
cfa5ba5925 Feat/rework compatibility layer (#9490)
* feat(core): rework compatibility layer

* feat(core): #4062 rework compatibility layer

---------

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-06-12 09:20:37 +02:00
dependabot[bot]
74720231b8 build(deps-dev): bump brace-expansion in /ui in the npm_and_yarn group (#9496)
Bumps the npm_and_yarn group in /ui with 1 update: [brace-expansion](https://github.com/juliangruber/brace-expansion).


Updates `brace-expansion` from 1.1.11 to 1.1.12
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.12
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-12 08:23:20 +02:00
Tanvir Ahmed
5dafbeee06 build(core): Replaced Microsoft Java with Temurin distribution on dev container 2025-06-11 23:00:37 +02:00
brian.mulier
f76f02952d fix(core): avoid infinite load upon route redirect (#9480)
closes #9479
2025-06-11 17:02:33 +02:00
brian.mulier
527c549522 fix(core): properly map labels filters from query (#9480)
closes #9324
2025-06-11 17:02:33 +02:00
brian.mulier
b6ad8331d4 fix(core): prevent incompatible timeRange & start/endDate filters + prevent multiple scope filters (#9480)
closes #9240
2025-06-11 17:02:33 +02:00
Karuna Tata
ac97e0aa72 feat(ui): drag and convert tabs to panels (#9198)
Co-authored-by: Barthélémy Ledoux <bledoux@kestra.io>
2025-06-11 16:48:39 +02:00
Barthélémy Ledoux
3309f69ee4 ci: fix frontend storybook tests (#9484) 2025-06-11 15:36:12 +02:00
Bart Ledoux
aaea1e0dd9 fix(ui): restore add button as a button 2025-06-11 14:17:07 +02:00
YannC.
a09fd76105 fix(ui): use type button instead of button 2025-06-11 14:11:13 +02:00
Roman Acevedo
afd4b811d6 feat(tests): add execution url in test result 2025-06-11 14:11:04 +02:00
YannC
a3f0001bca fix(ui): base the required prop on the requiredProperties list (#9433)
close #9377
2025-06-11 13:08:53 +02:00
Loïc Mathieu
075cc07b7a feat(system): don't deepClone maps inside MapUtils.merge 2025-06-11 11:38:20 +02:00
yuri
5b6311a612 fix(ui): amend visiblity of labels (#9475)
Currently labels just blend with the table row's background. This makes selecting labels slightly unpleasant.

This change makes labels a bit more visible, but still not as much visible as in e.g. v0.20.
2025-06-11 14:45:39 +05:30
dependabot[bot]
0d1f7a4db5 build(deps): bump io.micrometer:micrometer-core from 1.15.0 to 1.15.1
Bumps [io.micrometer:micrometer-core](https://github.com/micrometer-metrics/micrometer) from 1.15.0 to 1.15.1.
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- [Commits](https://github.com/micrometer-metrics/micrometer/compare/v1.15.0...v1.15.1)

---
updated-dependencies:
- dependency-name: io.micrometer:micrometer-core
  dependency-version: 1.15.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-11 10:36:46 +02:00
Satvik Kushwaha
5eafa90f2f fix(ui): make download and preview visible for text ouputs (#8348)
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
2025-06-11 10:20:49 +02:00
Piyush Bhaskar
59ee76b1c5 fix(flows): importing flows will auto update the table without manual refresh. (#9468) 2025-06-11 13:34:07 +05:30
dependabot[bot]
7e312b8146 build(deps): bump software.amazon.awssdk.crt:aws-crt
Bumps [software.amazon.awssdk.crt:aws-crt](https://github.com/awslabs/aws-crt-java) from 0.38.4 to 0.38.5.
- [Release notes](https://github.com/awslabs/aws-crt-java/releases)
- [Commits](https://github.com/awslabs/aws-crt-java/compare/v0.38.4...v0.38.5)

---
updated-dependencies:
- dependency-name: software.amazon.awssdk.crt:aws-crt
  dependency-version: 0.38.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-11 10:00:39 +02:00
Miloš Paunović
266b62db8f fix(core): amend the problem with running storybook tests (#9470) 2025-06-11 09:52:09 +02:00
Barthélémy Ledoux
d31d8dbd55 fix(ui): variables should work with duplicated keys (#9425) 2025-06-11 09:45:34 +02:00
Barthélémy Ledoux
ee3afb575f fix(ui): add datepicker to nocode string field (#9351)
Co-authored-by: GitHub Action <actions@github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-11 09:45:17 +02:00
dependabot[bot]
250c219839 build(deps): bump software.amazon.awssdk:bom from 2.31.59 to 2.31.61
Bumps software.amazon.awssdk:bom from 2.31.59 to 2.31.61.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.61
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-11 09:44:10 +02:00
dependabot[bot]
c1d40e6496 build(deps): bump com.google.cloud:libraries-bom from 26.61.0 to 26.62.0
Bumps [com.google.cloud:libraries-bom](https://github.com/googleapis/java-cloud-bom) from 26.61.0 to 26.62.0.
- [Release notes](https://github.com/googleapis/java-cloud-bom/releases)
- [Changelog](https://github.com/googleapis/java-cloud-bom/blob/main/release-please-config.json)
- [Commits](https://github.com/googleapis/java-cloud-bom/compare/v26.61.0...v26.62.0)

---
updated-dependencies:
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.62.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-11 09:43:45 +02:00
dependabot[bot]
462550d59a build(deps): bump org.owasp.dependencycheck from 12.1.2 to 12.1.3
Bumps org.owasp.dependencycheck from 12.1.2 to 12.1.3.

---
updated-dependencies:
- dependency-name: org.owasp.dependencycheck
  dependency-version: 12.1.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-11 09:43:26 +02:00
Miloš Paunović
d00f52649a chore(deps): regular dependency update (#9402)
Performing a weekly round of dependency updates in the NPM ecosystem to keep everything up to date.
2025-06-11 09:29:33 +02:00
Piyush Bhaskar
b6603a161d fix(core): plugins docs container background. (#9461) 2025-06-11 12:57:40 +05:30
YannC
2f9c176440 feat(ui): allow to close a tab with mouse middle click like in a navigator/ide (#9434) 2025-06-11 08:44:19 +02:00
YannC
06f31dda33 fix(core): use Min annotation instead of Positive (#9432)
close #9380
2025-06-10 17:14:39 +02:00
Miloš Paunović
edc32f6548 fix(core)*: properly display chart colors for logs (#9429) 2025-06-10 13:51:35 +02:00
YannC.
d299ff77fe feat(): add Kestra plugin in the list 2025-06-10 12:43:26 +02:00
brian-mulier-p
aaf1812764 fix(core): handle properly dot in nested keys & commas in quoted filter values (#9410) 2025-06-10 11:42:29 +02:00
Florian Hussonnois
c67c71213d fix(plugins): check whether plugin registry support versioning (#9122) 2025-06-10 11:10:39 +02:00
Bart Ledoux
31e9323fba refactor: avoid duplicating vite alias 2025-06-10 10:44:18 +02:00
brian.mulier
d0fe252f5c chore(deps): bump vitest to 3.2.3 2025-06-10 10:44:18 +02:00
brian.mulier
e97f4054ac build(tests): replace workspaces with proper storybook config + working aliases 2025-06-10 10:44:18 +02:00
Florian Hussonnois
3dbb1d7c9a fix(system): allow service to move from CREATED to TERMINATING (#9408)
Fix: #9408
2025-06-10 10:11:27 +02:00
YannC.
92cddfc96a fix(): display correctly doc/chart preview when editing custom dashboard
close #9411
2025-06-10 09:46:48 +02:00
Loïc Mathieu
5304630b30 fix(system): avoid starting two queues for WorkerJob and WorkerTriggerResult
We previously starts 2 queues: one for emit, and a specific one for receive wich handle WorkerJobRunning under the cover.

We can replace by using a single queue that will transparently handle WorkerJobRunning. As queues starts thread pools their cost is not negligeable.

Fixes #9007
2025-06-10 09:36:54 +02:00
Ludovic DEHON
69bf11c935 feat(system): add server_type as global metrics tags 2025-06-10 09:22:19 +02:00
Miloš Paunović
574d75c0f1 refactor(core): properly import github icon to be used in template section (#9403) 2025-06-10 08:31:20 +02:00
Roman Acevedo
c39a6a9413 build(ci): fix setversion workflow not making tag push trigger main 2025-06-09 16:27:45 +02:00
Piyush Bhaskar
447ea8088d fix(core): remove deprecated Github icon. (#9401)
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-06-09 18:14:18 +05:30
Florian Hussonnois
b0b158c204 chore: add script to update gradle kestraVersion prop on plugins 2025-06-09 14:30:20 +02:00
Loïc Mathieu
1ed60ba87e fix(system): import flow should set the tenantId 2025-06-09 13:51:14 +02:00
github-actions[bot]
c37ffe9c13 chore(core): localize to languages other than english (#9397)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-06-09 13:14:56 +02:00
Miloš Paunović
c5b9aa1f2e fix(namespaces): properly load flows when changing namespace (#9393)
Closes https://github.com/kestra-io/kestra/issues/9352.
2025-06-09 12:33:53 +02:00
Piyush Bhaskar
28d7a0cfa7 feat(core): add release notes for public plugins (#9374)
* feat(core): add release notes for public plugins

* fix(core): use pluginType for url construct from api.
2025-06-09 16:03:36 +05:30
brian-mulier-p
c00f125c16 fix(core): avoid adding invalid keys from query parameters to filter (#9383)
closes #9364
2025-06-09 12:25:13 +02:00
dependabot[bot]
b54705e641 build(deps): bump com.github.ben-manes.caffeine:caffeine
Bumps [com.github.ben-manes.caffeine:caffeine](https://github.com/ben-manes/caffeine) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/ben-manes/caffeine/releases)
- [Commits](https://github.com/ben-manes/caffeine/compare/v3.2.0...v3.2.1)

---
updated-dependencies:
- dependency-name: com.github.ben-manes.caffeine:caffeine
  dependency-version: 3.2.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 12:05:07 +02:00
dependabot[bot]
43eee222bf build(deps): bump org.owasp.dependencycheck from 12.1.1 to 12.1.2
Bumps org.owasp.dependencycheck from 12.1.1 to 12.1.2.

---
updated-dependencies:
- dependency-name: org.owasp.dependencycheck
  dependency-version: 12.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 11:26:46 +02:00
dependabot[bot]
eb1fad4193 build(deps): bump com.azure:azure-sdk-bom from 1.2.34 to 1.2.35
Bumps [com.azure:azure-sdk-bom](https://github.com/azure/azure-sdk-for-java) from 1.2.34 to 1.2.35.
- [Release notes](https://github.com/azure/azure-sdk-for-java/releases)
- [Commits](https://github.com/azure/azure-sdk-for-java/compare/azure-sdk-bom_1.2.34...azure-sdk-bom_1.2.35)

---
updated-dependencies:
- dependency-name: com.azure:azure-sdk-bom
  dependency-version: 1.2.35
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 10:51:31 +02:00
dependabot[bot]
d68a7c6431 build(deps): bump kafkaVersion from 3.9.0 to 4.0.0
Bumps `kafkaVersion` from 3.9.0 to 4.0.0.

Updates `org.apache.kafka:kafka-clients` from 3.9.0 to 4.0.0

Updates `org.apache.kafka:kafka-streams` from 3.9.0 to 4.0.0

Updates `org.apache.kafka:kafka-streams-test-utils` from 3.9.0 to 4.0.0

---
updated-dependencies:
- dependency-name: org.apache.kafka:kafka-clients
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.apache.kafka:kafka-streams
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.apache.kafka:kafka-streams-test-utils
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 10:36:42 +02:00
dependabot[bot]
9f327d24b1 build(deps): bump opensearchRestVersion from 2.19.2 to 3.0.0
Bumps `opensearchRestVersion` from 2.19.2 to 3.0.0.

Updates `org.opensearch.client:opensearch-rest-client` from 2.19.2 to 3.0.0
- [Release notes](https://github.com/opensearch-project/OpenSearch/releases)
- [Changelog](https://github.com/opensearch-project/OpenSearch/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opensearch-project/OpenSearch/compare/2.19.2...3.0.0)

Updates `org.opensearch.client:opensearch-rest-high-level-client` from 2.19.2 to 3.0.0
- [Release notes](https://github.com/opensearch-project/OpenSearch/releases)
- [Changelog](https://github.com/opensearch-project/OpenSearch/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opensearch-project/OpenSearch/compare/2.19.2...3.0.0)

---
updated-dependencies:
- dependency-name: org.opensearch.client:opensearch-rest-client
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.opensearch.client:opensearch-rest-high-level-client
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 10:36:26 +02:00
dependabot[bot]
5a3416db62 build(deps): bump org.projectlombok:lombok from 1.18.36 to 1.18.38
Bumps [org.projectlombok:lombok](https://github.com/projectlombok/lombok) from 1.18.36 to 1.18.38.
- [Changelog](https://github.com/projectlombok/lombok/blob/master/doc/changelog.markdown)
- [Commits](https://github.com/projectlombok/lombok/compare/v1.18.36...v1.18.38)

---
updated-dependencies:
- dependency-name: org.projectlombok:lombok
  dependency-version: 1.18.38
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 10:06:30 +02:00
dependabot[bot]
f7be8568cd build(deps): bump software.amazon.awssdk.crt:aws-crt
Bumps [software.amazon.awssdk.crt:aws-crt](https://github.com/awslabs/aws-crt-java) from 0.38.3 to 0.38.4.
- [Release notes](https://github.com/awslabs/aws-crt-java/releases)
- [Commits](https://github.com/awslabs/aws-crt-java/compare/v0.38.3...v0.38.4)

---
updated-dependencies:
- dependency-name: software.amazon.awssdk.crt:aws-crt
  dependency-version: 0.38.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 10:05:40 +02:00
dependabot[bot]
ced3067646 build(deps): bump aquasecurity/trivy-action from 0.30.0 to 0.31.0
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.30.0 to 0.31.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](https://github.com/aquasecurity/trivy-action/compare/0.30.0...0.31.0)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-version: 0.31.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 10:05:23 +02:00
dependabot[bot]
32a3d37618 build(deps): bump bouncycastleVersion from 1.80 to 1.81
Bumps `bouncycastleVersion` from 1.80 to 1.81.

Updates `org.bouncycastle:bcprov-jdk18on` from 1.80 to 1.81
- [Changelog](https://github.com/bcgit/bc-java/blob/main/docs/releasenotes.html)
- [Commits](https://github.com/bcgit/bc-java/commits)

Updates `org.bouncycastle:bcpg-jdk18on` from 1.80 to 1.81
- [Changelog](https://github.com/bcgit/bc-java/blob/main/docs/releasenotes.html)
- [Commits](https://github.com/bcgit/bc-java/commits)

Updates `org.bouncycastle:bcpkix-jdk18on` from 1.80 to 1.81
- [Changelog](https://github.com/bcgit/bc-java/blob/main/docs/releasenotes.html)
- [Commits](https://github.com/bcgit/bc-java/commits)

---
updated-dependencies:
- dependency-name: org.bouncycastle:bcprov-jdk18on
  dependency-version: '1.81'
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.bouncycastle:bcpg-jdk18on
  dependency-version: '1.81'
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.bouncycastle:bcpkix-jdk18on
  dependency-version: '1.81'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 10:05:04 +02:00
dependabot[bot]
3b74190b2c build(deps): bump org.opensearch.client:opensearch-java
Bumps [org.opensearch.client:opensearch-java](https://github.com/opensearch-project/opensearch-java) from 2.23.0 to 3.1.0.
- [Release notes](https://github.com/opensearch-project/opensearch-java/releases)
- [Changelog](https://github.com/opensearch-project/opensearch-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opensearch-project/opensearch-java/compare/v2.23.0...v3.1.0)

---
updated-dependencies:
- dependency-name: org.opensearch.client:opensearch-java
  dependency-version: 3.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 10:04:43 +02:00
dependabot[bot]
e5083e7cab build(deps): bump software.amazon.awssdk:bom from 2.31.50 to 2.31.59
Bumps software.amazon.awssdk:bom from 2.31.50 to 2.31.59.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.59
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 10:04:24 +02:00
enumura
6aad4b7023 fix(core): amend core.metric.Publish task icon visibility in dark mode (#9375)
Closes https://github.com/kestra-io/kestra/issues/9226.
2025-06-06 15:27:11 +02:00
Miloš Paunović
5e1b059dee fix(namespaces): reload namespace once the id parameter changes (#9372)
Closes https://github.com/kestra-io/kestra-ee/issues/3630.
2025-06-06 12:14:45 +02:00
Barthélémy Ledoux
91983cbd29 fix: properly detect condition fields (#9353) 2025-06-06 11:23:46 +02:00
Barthélémy Ledoux
1dcccb706d fix(ui): nocode - open onPause in a new tab (#9366) 2025-06-06 11:23:22 +02:00
brian.mulier
4443ee235e chore(deps): add types for storybook tests 2025-06-06 11:20:08 +02:00
Barthélémy Ledoux
d83339dfcb fix(ui): Tabs that are not blueprint should appear only once (#9370) 2025-06-06 10:18:39 +02:00
dependabot[bot]
ef65793cf6 build(deps-dev): bump @vitest/coverage-v8 from 3.1.4 to 3.2.1 in /ui (#9300)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-06 09:58:49 +02:00
dependabot[bot]
7c44c7694d build(deps-dev): bump typescript-eslint from 8.32.1 to 8.33.1 in /ui (#9309)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-06 09:58:16 +02:00
dependabot[bot]
005253766c build(deps-dev): bump eslint from 9.27.0 to 9.28.0 in /ui (#9306)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-06 09:57:36 +02:00
dependabot[bot]
617e425bb0 build(deps-dev): bump @typescript-eslint/parser in /ui (#9301)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-06 09:57:14 +02:00
Barthélémy Ledoux
0636cc5e6a chore: upgrade storybook (#9326) 2025-06-06 09:54:50 +02:00
Barthélémy Ledoux
367f49d457 fix: initialize array fields without any value (#9367) 2025-06-06 09:42:15 +02:00
Piyush Bhaskar
b4d15494c1 feat(core): custom blueprints now in side menu. (#9349) 2025-06-06 12:07:38 +05:30
Satvik Kushwaha
a92aa030f5 fixed blueprint redirection in namespace (#9330)
* fixed blueprint redirection in namespace

* removed unnecessary changes
2025-06-06 12:06:42 +05:30
brian.mulier
7bcf284497 fix(core): add DefaultFilterLanguage as default in KestraFilter
closes #9365
2025-06-05 17:42:11 +02:00
Roman Acevedo
62e718fc12 tests(e2e): add workflow dispatch to launch manually 2025-06-05 14:39:27 +02:00
Roman Acevedo
762b0ec89c tests(core): add storybook on executions filters (#9354)
* tests(core): add storybook on executions filters

* refactor(core): reformat storybook executions filters

* Update ui/src/components/inputs/MonacoEditor.vue

Co-authored-by: brian-mulier-p <bmmulier@hotmail.fr>

* tests(core): stop using monaco class and expect color is red dominant

* tests(core): monacoFilter const

---------

Co-authored-by: brian-mulier-p <bmmulier@hotmail.fr>
2025-06-05 14:29:33 +02:00
Miloš Paunović
c6604cda32 fix(core): amend positioning of the default tour elements (#9360)
Closes https://github.com/kestra-io/kestra/issues/9356.
2025-06-05 14:22:28 +02:00
Barthélémy Ledoux
2a808be985 refactor: load nocode root form from server schema (#9327) 2025-06-05 14:12:46 +02:00
brian-mulier-p
649d5fee6e fix(core): avoid crashing in case of taskrun having too large value (#9359)
closes #9312
2025-06-05 14:08:20 +02:00
Karuna Tata
51afdfd396 fix(ui): clear selection of retry form radio buttons (#9268)
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
thank you so much for this geat work ! ❤️
2025-06-05 12:19:36 +02:00
Barthélémy Ledoux
ad2eb8a8b8 fix(ui): allow key of sub-tasks to be other than tasks (#9333) 2025-06-05 12:17:52 +02:00
François Delbrayelle
7124b53b7b feat(sifflet): add new plugin-sifflet 2025-06-05 10:54:57 +02:00
github-actions[bot]
d70b572257 chore(core): localize to languages other than english (#9347)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-06-05 10:26:11 +02:00
Piyush Bhaskar
50ca1d7946 feat(core): refactor of welcome and overide for card. (#9341)
* feat(core): refactor of welcome and overide for card.

* fix: remove type ignore
2025-06-05 13:42:48 +05:30
Nicolas K.
be14d818e6 fix(flows): #9319 error when puase with timeout trigger an execution (#9334)
* fix(flows): #9319 error when puase with timeout trigger an execution even after it's terminated

* fix(flows): only skip paused flow when execution is terminated

---------

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-06-05 10:07:59 +02:00
YannC.
aab3fd408f fix(ci): put back bump helm chart and remove if condition 2025-06-05 08:49:06 +02:00
yuri
6323b0369b fix(core): add missing editor shortcut in the list (#9339)
Closes https://github.com/kestra-io/kestra/issues/9317.
2025-06-05 08:38:38 +02:00
YannC.
c06985cba8 fix(ci): modify actions order 2025-06-04 21:13:46 +02:00
brian.mulier
173cb29f56 fix(core): larger debounce for filter 2025-06-04 17:22:03 +02:00
brian.mulier
cc86b2064e fix(core): handle whitespaces in label key and value 2025-06-04 17:19:37 +02:00
brian.mulier
3e470d7674 fix(core): smarter autocomplete order in editor 2025-06-04 16:24:29 +02:00
brian-mulier-p
168e2e0db4 fix(core): additional plugins are now properly shown in plugin docs (#9329)
closes kestra-io/plugin-langchain4j#61
2025-06-04 15:42:32 +02:00
brian.mulier
51ce2208de fix(core): avoid suggest widget reset upon typing 2025-06-04 15:39:40 +02:00
YannC.
28f58e63d7 fix(ci): remove debug branch for actions checkout step 2025-06-04 14:59:09 +02:00
Loïc Mathieu
f544bc9f85 fix(system)*: don't include yourself as def in the JSONSchema
For AdditionalPlugin, as we resolves subtypes using isAssignable, we will resolve ourself as a subtype which leads to infinite loop while parsing the schema.
2025-06-04 13:18:36 +02:00
Piyush Bhaskar
f06998571d fix(core): update background for plugin-doc in EE Apps and alert-info block styling in plugin doc. (#9323) 2025-06-04 16:10:01 +05:30
Piyush Bhaskar
2a27f031e2 fix(triggers): update link color in triggers (#9257) 2025-06-04 16:09:32 +05:30
YannC.
7e4a030fa3 fix(): add mising checkout in workflow github release 2025-06-04 12:25:32 +02:00
Loïc Mathieu
979b271638 fix(system)*: correctly resolve additional plugin subtypes so autocompletion work
Part-of: https://github.com/kestra-io/plugin-langchain4j/issues/61
2025-06-04 11:06:59 +02:00
Florian Hussonnois
bfc8556024 fix(build): fix deve-tool release-plugins script 2025-06-04 10:20:40 +02:00
Roman Acevedo
ca10215540 fix: langchain4j with wrong repo name in .plugins 2025-06-04 10:16:47 +02:00
Piyush Bhaskar
4bd3a50f9d fix(flow): update flow revision restoration (#9311) 2025-06-04 13:25:28 +05:30
Piyush Bhaskar
cfa239a7df fix(core): improve theme handling in Monaco editor (#9294) 2025-06-04 13:25:15 +05:30
brian.mulier
e163d91122 fix(core): rename NAMESPACE_PREFIX comparator to PREFIX 2025-06-04 09:32:29 +02:00
Miloš Paunović
8980c23895 chore(core): add an extra storage key constant for maintenance mode (#9310)
Related to https://github.com/kestra-io/kestra-ee/issues/3961.
2025-06-04 09:19:08 +02:00
Miloš Paunović
1c1bc18d91 fix(core): if task array has enum options, show select box instead of input (#9270)
Closes https://github.com/kestra-io/kestra/issues/9208.
Closes https://github.com/kestra-io/kestra/issues/9255.
2025-06-04 08:07:32 +02:00
brian.mulier
282cd766e2 fix(core): restore theme colors from Monaco editor 2025-06-03 20:37:55 +02:00
brian.mulier
ea0c3b9b22 fix(core): remove text filter for dashboards 2025-06-03 17:52:39 +02:00
brian.mulier
43ad5aa3fd fix(core): regex is not yet supported for text so we remove it for now 2025-06-03 17:46:31 +02:00
Anna Geller
581d5e4961 docs: clarify log level on the log task (#9277) 2025-06-03 15:58:44 +02:00
Roman Acevedo
8de568e7ac chore(version): update snapshot version 'v0.24.0-SNAPSHOT'. 2025-06-03 15:51:39 +02:00
Roman Acevedo
29eb0eb9c2 chore(version): update to version 'v0.23.0-rc0-SNAPSHOT'. 2025-06-03 15:49:49 +02:00
brian.mulier
83c6333c6f fix(core): change naming from STARTS_WITH_NAMESPACE_PREFIX to NAMESPACE_PREFIX 2025-06-03 15:32:42 +02:00
Florian Hussonnois
ccb871aec5 fix(ci): fix workflow gradle-release 2025-06-03 15:18:04 +02:00
Barthélémy Ledoux
3fe4556dd5 refactor: remove the theme and chartColor from schemes (#7296) 2025-06-03 15:00:35 +02:00
Barthélémy Ledoux
4a0d449106 refactor: remove nocode components registration from global scope (#9211) 2025-06-03 14:58:55 +02:00
Barthélémy Ledoux
c787ce3b4c fix: only load default values when changing type (#9272) 2025-06-03 14:58:41 +02:00
Roman Acevedo
cd9fdcd3d3 tests(system): make restartForEachItem test more deterministic 2025-06-03 14:27:48 +02:00
brian-mulier-p
e580c3590c feat(executions): add filter bar to flow concurrency tab (#9269)
closes #5825
2025-06-03 14:24:51 +02:00
brian.mulier
786be667a2 fix(core): remove REGEX filter for text search 2025-06-03 14:04:06 +02:00
Piyush Bhaskar
e2373448ff fix(core): update save button disabled logic. (#9267) 2025-06-03 17:17:16 +05:30
Miloš Paunović
23499a627a chore(core): remove sort buttons in no code if the block type is plugin defaults (#9265)
Closes https://github.com/kestra-io/kestra/issues/9217.
2025-06-03 12:36:27 +02:00
Miloš Paunović
24c4eebaf4 chore(core): remove margin from blueprints if used in combined view (#9264)
Closes https://github.com/kestra-io/kestra/issues/8503.
2025-06-03 12:28:00 +02:00
Piyush Bhaskar
3606a563f3 feat(flows): add global save functionality (#9262) 2025-06-03 15:55:30 +05:30
Anna Geller
22131f8c49 fix(assertions): fix assertions grammar (#9173) 2025-06-03 12:24:16 +02:00
YannC
c3d5811c86 fix: now correctly handles State filter for executions (#9223) 2025-06-03 12:15:44 +02:00
YannC
317621e7bb fix(ui): allows even embed table to be sorted (#9261)
close #9230
2025-06-03 12:09:16 +02:00
Daniel Rivas
598582fa76 test(cli): add return code and YAML-output tests for ConfigPropertiesCommand (#8827) 2025-06-03 12:00:43 +02:00
Loïc Mathieu
9bd87d7492 feat(flow): allow grouping plugin properties
Closes #7199
2025-06-03 11:59:10 +02:00
Roman Acevedo
712a3753f6 fix(triggers): bulk actions for Triggers with new Filter 2025-06-03 11:34:51 +02:00
Nicolas K.
49bb93b4db feat(tenants): change the tenant migration command name (#9253)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-06-03 11:32:18 +02:00
Miloš Paunović
f10b289d76 fix(dashboards): include pagination parameters in default dashboard tables (#9251)
Closes https://github.com/kestra-io/kestra/issues/9250.
2025-06-03 11:08:29 +02:00
brian.mulier
7f677211af fix(core): avoid adding incomplete key.{subKey} as text filter
closes #9243
2025-06-03 10:53:08 +02:00
Roman Acevedo
066a5f09fe fix(flows,executions): filtering QUERY NOT_EQUALS was not handled in jdbc 2025-06-03 10:44:32 +02:00
YannC
5145cf0567 fix(secrets): display all namespaces (#9248)
close kestra-io/kestra-ee#3942
2025-06-03 10:00:38 +02:00
Loïc Mathieu
70c1a8671a feat(execution): allow to loop until an unlimited duration or iteration count
But not both as this would means unlimited loops which are a bad practice.

Fixes #9152
2025-06-03 09:32:27 +02:00
Miloš Paunović
fc7df186f6 fix(core): prevent monaco suggestion widget to update its position (#9164)
Closes https://github.com/kestra-io/kestra/issues/9116.
2025-06-03 09:08:27 +02:00
Piyush Bhaskar
76d068fe35 fix(core): same position in center for all modals (#9247) 2025-06-03 12:28:29 +05:30
YannC
5c624579e0 fix(dashboard): make refresh button works (#9238)
close #7083
2025-06-03 08:55:13 +02:00
Piyush Bhaskar
a1db7b5677 chore(version): update @kestra-io/ui-libs to version 0.0.203 for finally block (#9246) 2025-06-03 12:21:36 +05:30
Miloš Paunović
2d36646cac refactor(core): remove unnecessary import (#9245) 2025-06-03 08:50:55 +02:00
Piyush Bhaskar
1c294cf4af fix(triggers): show the url instead of open. (#9244) 2025-06-03 12:13:02 +05:30
brian.mulier
ac19b4a86d fix(core): properly parse IN & NOT_IN values for Dashboards 2025-06-02 20:32:18 +02:00
brian.mulier
3511a8f74e fix(core): skip empty values from filters in query 2025-06-02 20:26:27 +02:00
brian.mulier
30bf32af83 fix(core): better relevance on filter syntax highlighting + IN working
closes #9214
2025-06-02 20:17:54 +02:00
brian.mulier
4d73138152 fix(core): restoreUrl is now scoped to route tab
closes #9235
2025-06-02 18:51:22 +02:00
YannC
fa96ca1f12 fix(core): Valid correctly conditions in triggers (#9228) 2025-06-02 17:39:11 +02:00
Nicolas K.
7fcafce47b feat(tenants): change the tenant migration command name (#9215)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-06-02 16:53:16 +02:00
Roman Acevedo
d92015cdc6 refactor(system): centralize filters legacy mapping in controllers (#9183) 2025-06-02 16:15:59 +02:00
AJ Emerich
7c0435ffd7 docs(dashboard): fix indentations in examples and add KPI (#9203)
* docs(dashboard): fix indentations in examples and add KPI

Closes https://github.com/kestra-io/kestra/issues/9193

* docs(kpi-chart): update width
2025-06-02 16:10:03 +02:00
Miloš Paunović
8c0c50bff3 chore(core): keep the property name in no code in monospace font (#9216)
Closes https://github.com/kestra-io/kestra/issues/9213.
2025-06-02 15:36:29 +02:00
Miloš Paunović
b55032bd3f chore(triggers): remove column cron from triggers listing and sort out trigger details dialog (#9212)
Closes https://github.com/kestra-io/kestra/issues/8605.
2025-06-02 15:35:26 +02:00
Barthélémy Ledoux
ba5d7e4c1a fix: restore namespace and id when emptying while editing (#9138) 2025-06-02 14:33:40 +02:00
Loïc Mathieu
15937a6565 feat(system): FlowRepository.findByNamespacePrefixWithSource() 2025-06-02 13:48:31 +02:00
Miloš Paunović
c0f66f6dda fix(core): amend positioning of the default tour elements (#9202)
Closes https://github.com/kestra-io/kestra/issues/9172.
2025-06-02 13:38:15 +02:00
Miloš Paunović
8265f6db7a fix(dashboards): use namespace parameter for next execution table to be able to build links (#9195)
Closes https://github.com/kestra-io/kestra/issues/9188.
2025-06-02 12:42:49 +02:00
github-actions[bot]
f55d2e2350 chore(core): localize to languages other than english (#9197)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-06-02 12:11:53 +02:00
Miloš Paunović
c8e6e5ad50 feat(tests): add tests preview tab in left menu (#9191)
Closes https://github.com/kestra-io/kestra-ee/issues/3927.
2025-06-02 12:05:07 +02:00
Miloš Paunović
a03721040f chore(secrets): allow deletion of all tags, including the last one (#9187)
Closes https://github.com/kestra-io/kestra-ee/issues/3937.
2025-06-02 11:43:54 +02:00
Miloš Paunović
afe267eeeb chore(secrets): make the key field disabled on secret editing (#9185)
Closes https://github.com/kestra-io/kestra-ee/issues/3936.
2025-06-02 11:43:31 +02:00
Barthélémy Ledoux
a51f4f213b fix(ui): nocode - add clear selected button for anyof (#9136)
Co-authored-by: GitHub Action <actions@github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-02 11:23:19 +02:00
Ludovic DEHON
c7986ec986 build(deps): bump org.testcontainers:testcontainers to 1.21.1 2025-06-02 10:58:53 +02:00
Piyush Bhaskar
5205cf24a6 chore(version): update the ui-libs version (#9184) 2025-06-02 14:09:18 +05:30
dependabot[bot]
9ff2df6ae4 build(deps): bump com.github.oshi:oshi-core from 6.8.1 to 6.8.2
Bumps [com.github.oshi:oshi-core](https://github.com/oshi/oshi) from 6.8.1 to 6.8.2.
- [Release notes](https://github.com/oshi/oshi/releases)
- [Changelog](https://github.com/oshi/oshi/blob/master/CHANGELOG.md)
- [Commits](https://github.com/oshi/oshi/compare/oshi-parent-6.8.1...oshi-parent-6.8.2)

---
updated-dependencies:
- dependency-name: com.github.oshi:oshi-core
  dependency-version: 6.8.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 10:19:01 +02:00
dependabot[bot]
f46234a577 build(deps): bump org.postgresql:postgresql from 42.7.5 to 42.7.6
Bumps [org.postgresql:postgresql](https://github.com/pgjdbc/pgjdbc) from 42.7.5 to 42.7.6.
- [Release notes](https://github.com/pgjdbc/pgjdbc/releases)
- [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.7.5...REL42.7.6)

---
updated-dependencies:
- dependency-name: org.postgresql:postgresql
  dependency-version: 42.7.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 10:18:20 +02:00
dependabot[bot]
97b23a2d91 build(deps): bump org.testcontainers:junit-jupiter from 1.21.0 to 1.21.1
Bumps [org.testcontainers:junit-jupiter](https://github.com/testcontainers/testcontainers-java) from 1.21.0 to 1.21.1.
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testcontainers/testcontainers-java/compare/1.21.0...1.21.1)

---
updated-dependencies:
- dependency-name: org.testcontainers:junit-jupiter
  dependency-version: 1.21.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 10:18:00 +02:00
Loïc Mathieu
bf18f671ce fix(system): don't set execution to queued twice 2025-06-02 09:35:08 +02:00
brian.mulier
e3285b1813 fix(core): add red highlighter upon using wrong comparator for a key in filters
closes #9090
closes #9097
2025-05-30 19:50:13 +02:00
brian.mulier
3ffa446c54 feat(core): implement STARTS_WITH_NAMESPACE_PREFIX filter 2025-05-30 19:49:37 +02:00
brian.mulier
87f4143ed4 fix(core): handle text filter properly for dashboards 2025-05-30 19:33:20 +02:00
brian.mulier
c439d08a0e fix(core): implement STARTS_WITH_NAMESPACE_PREFIX global filter using REGEX 2025-05-30 18:04:49 +02:00
Roman Acevedo
81d7588627 feat(system): add STARTS_WITH_NAMESPACE_PREFIX query filter for by namespace query 2025-05-30 17:21:29 +02:00
brian.mulier
f797f87041 fix(core): fixed eslint not to apply to tests 2025-05-30 17:19:10 +02:00
Miloš Paunović
3484074274 fix(core): handle no code inputs type change (#9166)
Closes https://github.com/kestra-io/kestra/issues/9101.
2025-05-30 15:21:56 +02:00
brian.mulier
630e4fd43a fix(core): repair audit logs type filter
closes #9091
2025-05-30 15:20:20 +02:00
brian.mulier
c6bc44ca6c fix(core): better filter comparator detection 2025-05-30 15:19:38 +02:00
Roman Acevedo
9063f61a4c feat(flows): remove JDBC NAMESPACE START_WITH filter specifities 2025-05-30 14:17:10 +02:00
Roman Acevedo
20c229a64f fix(executions): inclusive validation of start and end date 2025-05-30 14:17:10 +02:00
Roman Acevedo
a632c5e81a fix(flows): bulk actions for Flows with new Filter 2025-05-30 14:17:10 +02:00
Roman Acevedo
c8376daa1b refactor(flows): remove old FlowRepositoryInterface.find method not used anymore 2025-05-30 14:17:10 +02:00
Miloš Paunović
e29840de36 fix(core): amend padding on the global error notification container (#9161)
Closes https://github.com/kestra-io/kestra-ee/issues/3924.
2025-05-30 11:46:55 +02:00
Piyush Bhaskar
d8f8cb6244 fix(core): definition now expands from properties. (#9160) 2025-05-30 14:41:04 +05:30
Miloš Paunović
f6095cee99 fix(dashboards): amend line chart values & bar chart stacks sorting (#9158)
Closes https://github.com/kestra-io/kestra/issues/6603.
Closes https://github.com/kestra-io/kestra-ee/issues/3918.
2025-05-30 10:45:39 +02:00
YannC.
3865f90553 ci: moved helm update trigger on EE side 2025-05-30 09:30:28 +02:00
Piyush Bhaskar
f93ecbf741 fix(core): update regex to correctly render the alert for embedded docs. (#9151) 2025-05-29 18:32:39 +05:30
Miloš Paunović
9f03840e21 chore(dashboards): improve date format in dashboard table cells (#9150) 2025-05-29 14:33:26 +02:00
Miloš Paunović
e150384e17 fix(dashboards): change default dashboard yaml to include filtering in progress states (#9146)
States that now will be filtered for the `In Progress` table:

- `CREATED`
- `RESTARTED`
- `QUEUED`
- `RUNNING`
- `PAUSED`
- `RETRYING`
- `KILLING`

Closes https://github.com/kestra-io/kestra/issues/9125.
2025-05-29 14:11:08 +02:00
Miloš Paunović
29006071bb fix(executions): properly guard against the npe error (#9147) 2025-05-29 14:06:19 +02:00
Miloš Paunović
ff2df65b00 fix(dashboards): properly replace namespace and flow variables in flow dashboard yaml (#9145) 2025-05-29 14:03:23 +02:00
Miloš Paunović
e00d1ca0b7 fix(dashboards): show proper value in dashboard table, flow column (#9142) 2025-05-29 10:37:53 +02:00
Miloš Paunović
345a6331ad fix(dashboards): amend line chart values & bar chart stacks sorting (#9141)
Closes https://github.com/kestra-io/kestra/issues/6603.
Closes https://github.com/kestra-io/kestra-ee/issues/3918.
2025-05-29 10:35:15 +02:00
Miloš Paunović
124fcbf87f fix(core): switch filter colors on main theme change (#9140)
Closes https://github.com/kestra-io/kestra/issues/9119.
2025-05-29 08:32:17 +02:00
Piyush Bhaskar
82f617b704 feat(core): 503 Service Unavailable status in error messages. (#9135) 2025-05-29 10:51:24 +05:30
brian.mulier
6e6d4e4d26 fix(core): avoid sending date filters to flow list API call
closes kestra-io/kestra-ee#3911
closes #9132
2025-05-28 23:13:16 +02:00
brian.mulier
31a96fe30b fix(core): properly filter Namespace executions 2025-05-28 23:10:56 +02:00
brian.mulier
dd52bc1d4c fix(core): text search without needing "text" key prefix
closes #9105
2025-05-28 18:29:56 +02:00
brian.mulier
b2cfe1dda3 fix(core): properly remap q parameter to text in filter bar 2025-05-28 17:55:22 +02:00
Nicolas K.
457e4826a8 test(storage): remove null tenant in test suit (#9139)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-05-28 17:41:13 +02:00
Loïc Mathieu
6a465c1289 feat(system): monitor and close the Scheduler monitoring loop 2025-05-28 16:02:54 +02:00
Miloš Paunović
e93ef87dba chore(dashboards): load more dashboards at once (#9127) 2025-05-28 16:00:15 +02:00
Miloš Paunović
a990155519 chore(dashboards): use displayName property for table headers, if existing (#9129)
Related to https://github.com/kestra-io/kestra-ee/issues/3910.
2025-05-28 15:54:16 +02:00
Miloš Paunović
38a0c7aafb chore(dashboards): make sure save button is disabled again on successful action (#9131)
Related to https://github.com/kestra-io/kestra-ee/issues/3910.
2025-05-28 15:52:46 +02:00
Miloš Paunović
ba793a00a4 chore(dashboards): remove text transformation in chart legend creation (#9130) 2025-05-28 15:52:05 +02:00
Loïc Mathieu
6c7a8be5bd fix(system): use the correct config name for resonse cache 2025-05-28 15:21:05 +02:00
brian.mulier
858f37933e fix(core): avoid sort, page & size from interfering with filter widget 2025-05-28 15:18:27 +02:00
YannC
80061e3fb3 fix: don't use a endDate when not asked (#9056)
* fix: don't use a endDate when not asked

close #9037

* test: fix following change
2025-05-28 15:04:56 +02:00
YannC
59f2674f75 feat: improved new custom dashboard (#9120)
* apply correctly the default filter for namespace and flow pages
* apply a default date on charts if none is set
* add flow_id filter in the global filter
2025-05-28 14:59:00 +02:00
Miloš Paunović
525717a9b8 chore(dashboards): multiple ux improvements of dashboards (#9111)
Closes https://github.com/kestra-io/kestra/issues/9038.
Closes https://github.com/kestra-io/kestra/issues/9057.
Closes https://github.com/kestra-io/kestra-ee/issues/3879.
2025-05-28 14:54:07 +02:00
brian.mulier
30adacaf75 fix(core): log level is not a multi-value filter
closes #9087
2025-05-28 14:48:58 +02:00
brian.mulier
961608fef6 fix(core): remove namespace & flowId keys on Flow -> Executions page filter 2025-05-28 14:48:03 +02:00
brian.mulier
f585264620 fix(core): avoid red-coloured key in filters 2025-05-28 14:31:08 +02:00
Piyush Bhaskar
81a94ec23f fix(core): bring back radio styles. (#9112)
* fix(core): bring back radio styles.

* bring radio back

Co-authored-by: Barthélémy Ledoux <bledoux@kestra.io>

---------

Co-authored-by: Barthélémy Ledoux <bledoux@kestra.io>
2025-05-28 17:55:50 +05:30
Nicolas K.
4f8ea9afb1 feat(storage): refactor getPath (#9104)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-05-28 14:12:58 +02:00
Roman Acevedo
0523c04be0 fix(executions): by-query not working with new filters (#9058) 2025-05-28 13:15:03 +02:00
Miloš Paunović
63e9bf2672 chore(flows): take default namespace into account on flow creation (#9110)
Closes https://github.com/kestra-io/kestra/issues/9109.
2025-05-28 12:56:41 +02:00
Loïc Mathieu
7cc938c605 feat(test): allow inline files fixtures and render fixture outputs 2025-05-28 12:48:08 +02:00
Florian Hussonnois
3e21e69e85 fix(system): wait for grace period before reemitting tasks for terminated_forced workers
When a worker transitition to the TERMINATED_FORCED, the LivenessCoordinator
should wait for termination grace period to ensure
that all in-flight task-runs had time to be completely processed by the executors

Related-to: #8334
2025-05-28 12:03:48 +02:00
YannC
28417f04d9 feat: replace daily charts by customized charts (#9081) 2025-05-28 11:52:21 +02:00
Nicolas K.
4041ebf340 fix(tests): add tenant id to log repository tests (#9100)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-05-28 11:45:55 +02:00
brian.mulier
36d79e68dc chore(deps): splitpanes types 2025-05-28 11:23:08 +02:00
Miloš Paunović
6e0516f448 fix(core): prevent cursor in code editor from jumping to top (#9095)
Closes https://github.com/kestra-io/kestra/issues/9013.
2025-05-28 11:10:16 +02:00
Barthélémy Ledoux
a12d5b3eb5 fix: setup anyof forms for taskRunner retry and others (#9049)
Co-authored-by: MilosPaunovic <paun992@hotmail.com>
2025-05-28 11:07:16 +02:00
brian.mulier
c4d9a33987 chore(deps): splitpanes types 2025-05-28 11:04:22 +02:00
brian.mulier
5c33907288 chore(deps): remove @types/splitpanes and add a manual module for it + fix vue version 2025-05-28 10:56:54 +02:00
Nicolas K.
5f0910b54e test(storage): remove all null tenant test (#9054)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-05-28 09:30:28 +02:00
Piyush Bhaskar
36900cb9ec fix(flow): diff shows as per revision number (#9080) 2025-05-28 12:43:15 +05:30
Miloš Paunović
7047b605f5 fix(core): amend keyboard save shortcut for both flow and namespace files (#9030) 2025-05-28 08:16:33 +02:00
brian.mulier
9e84b12008 fix(core): support REGEX filtering 2025-05-27 20:02:08 +02:00
brian.mulier
7297221e06 fix(core): add REGEX filtering on namespace field in JDBC 2025-05-27 19:24:14 +02:00
brian.mulier
37c001aa56 fix(core): avoid overriding sort, size and page from new filtering 2025-05-27 19:12:39 +02:00
brian.mulier
a12a6ccc2f fix(core): filtering was not working with pagination
closes #9027
2025-05-27 18:58:55 +02:00
brian.mulier
ba2179ed56 fix(core): avoid red-coloured filter keywords
closes #9024
2025-05-27 18:55:02 +02:00
brian.mulier
1a5b1f2b5c fix(core): wrong childFilter naming 2025-05-27 18:52:54 +02:00
brian.mulier
3d26205464 fix(deps): fixed storybook router version to UI one 2025-05-27 17:19:18 +02:00
brian.mulier
9a759e2807 fix(core): avoid undefined due to scope filter addition
closes #9024
2025-05-27 17:19:09 +02:00
brian.mulier
997d71f586 fix(core): scope is a single value filter 2025-05-27 17:17:34 +02:00
Loïc Mathieu
3bc75efbf2 fix(dashboard): Properly cast log level column in Dashboards
Fixes #8128
2025-05-27 16:18:49 +02:00
Loïc Mathieu
5260726daa fix(ui): namespace tab didn't use the pluginDefault translation 2025-05-27 16:18:08 +02:00
brian-mulier-p
79ee64a8a7 fix(core): handle AND by spaces in filters (#9046)
closes kestra-io/kestra-ee#3003
2025-05-27 15:56:01 +02:00
Piyush Bhaskar
69ff5a2365 fix: color of Failed status (#9042) 2025-05-27 18:46:33 +05:30
Anna Geller
387eb9bb33 fix(dashboard): simplify naming for ratio (#9041) 2025-05-27 14:50:00 +02:00
Miloš Paunović
f380501f61 fix(core): properly show custom dashboard card titles (#9035) 2025-05-27 14:16:18 +02:00
brian-mulier-p
217fbcddb8 fix(core): update flow & namespace overview dashboard filters (#9034)
closes #9033
2025-05-27 14:11:56 +02:00
Miloš Paunović
cbc250bb1c fix(core): amend plugin page problems due to npe (#9031)
Closes https://github.com/kestra-io/kestra-ee/issues/3865.
2025-05-27 14:01:06 +02:00
Piyush Bhaskar
c53791435c fix(core): use new color tokens for panes and editor. (#9020) 2025-05-27 16:49:49 +05:30
Satvik Kushwaha
8846da55e8 fixed spacing in demo apps page (#9021)
* fixed spacing in demo apps page

* minor tweak

---------

Co-authored-by: Piyush Bhaskar <102078527+Piyush-r-bhaskar@users.noreply.github.com>
2025-05-27 16:47:40 +05:30
github-actions[bot]
7cefbaccb7 chore(core): localize to languages other than english (#9023)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-05-27 13:11:48 +02:00
Miloš Paunović
4a5cd1dce7 chore(core): make sure id property is required for sla block (#9022) 2025-05-27 12:55:49 +02:00
Miloš Paunović
4b2e50242b feat(namespaces): allow exporting single namespace files from editor sidebar (#8967) 2025-05-27 12:26:02 +02:00
YannC
f81125ed0b fix: avoid the Kestra Instance to be indexed (#9018)
close #9015
2025-05-27 12:14:15 +02:00
Miloš Paunović
c8f58f842c fix(core): properly check if property is nullish (#9019) 2025-05-27 11:48:54 +02:00
brian.mulier
c25c60d442 chore(build): remove add jmh-benchmarks gradle.properties to gitignore 2025-05-27 11:39:28 +02:00
brian-mulier-p
71a8aea570 feat(core): move KestraFilter to a Monaco-based implementation (#8915)
closes kestra-io/kestra-ee#3004
2025-05-27 11:36:23 +02:00
Barthélémy Ledoux
81da94dfd1 fix(core): avoid inserting empty tasks in flow (#9016) 2025-05-27 11:29:39 +02:00
YannC.
1cc7b3e443 fix: avoid diving by 0 with the KPI chart 2025-05-27 11:23:38 +02:00
Kelvin Yim
f7c2cbec43 fix(ui): improve padding and font sizes on Blueprints tab in Editor (#9002)
* fix/8050 - Improve padding and font sizes on the Blueprints tab in the Editor

fix(ui): improve padding and font sizes on Blueprints tab in Editor

Image 1:
- Added a "Blueprints" tittle
- Added 32px horizontal padding and 16px bottom padding to blueprint container
- Change font tittle
- Reduced blueprint title font size
- Added spacing between Source title and code block
- Changed background to ks-background-input
- Changed editor to ks-background-input

Image 2:
- Changed top spacing
- Changed background to ks-background-input
- Changed "bold" tittle blueprint to "regular"

Fixes #8950

* fix/8050 - Improve padding and font sizes on the Blueprints tab in the Editor

fix(ui): improve padding and font sizes on Blueprints tab in Editor

- FIx padding between tittle "Source" and code block
- changed css &.custom-dark-vs-theme
- Add Community top spacing

Fixes #8950

* fix(ui): improve padding and font sizes on Blueprints tab in Editor

- Updated back button with rounded background and ChevronLeft icon
- Reduced blueprint title font size and improved header layout
- Added proper spacing and alignment for header elements

Fixes #8950

* revert gitignore and application.yml

* fix(ui): minor tweaks.

---------

Co-authored-by: Piyush Bhaskar <102078527+Piyush-r-bhaskar@users.noreply.github.com>
2025-05-27 14:29:42 +05:30
Roman Acevedo
0101f53954 build(ci): require translations to be done (#9014)
at least for the current RC period
2025-05-27 10:54:07 +02:00
Loïc Mathieu
a0ee30916c chore(system): JdbcQueue code refactoring 2025-05-27 10:46:05 +02:00
github-actions[bot]
c30abf40ee chore(core): localize to languages other than english (#9011)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-05-27 10:28:19 +02:00
Barthélémy Ledoux
17858091a4 fix(ui): clicking on edit/delete in topology opens a nocode (#8993) 2025-05-27 10:25:54 +02:00
Miloš Paunović
09318b7bc2 chore(core): amend labels of task anyof component radio buttons (#9005) 2025-05-27 09:41:47 +02:00
Miloš Paunović
069159f8fd chore(core): add sla block to no code editor (#9004)
Closes https://github.com/kestra-io/kestra/issues/7081.
2025-05-27 09:32:05 +02:00
Loïc Mathieu
6039d100ee feat(system): add metrics for flowable tasks
Part-of: #8341
2025-05-27 09:20:09 +02:00
Loïc Mathieu
6630cf045f fix(system): remove required props in definitions that have a default
Fixes https://github.com/kestra-io/plugin-scripts/issues/243
2025-05-27 08:57:36 +02:00
Loïc Mathieu
270b4d4bc2 feat(system): add metics for concurrency limit
Part_of: #8341
2025-05-27 08:57:10 +02:00
Piyush Bhaskar
3ad13272e5 fix(core): full width for wrapper containing properties. (#9003) 2025-05-27 11:40:44 +05:30
YannC
ea402261d5 Replace the default dashboard with custom dashboard (#8769)
* feat:
- Implement width property
- Replace custom dashboard
- Started to integrate the KPI chart

* feat(ui): introduce dashboard chart layout system

* feat(ui): introduce dashboard chart kpi card

* chore(ui): amend layout widths for sm screen size

* chore(ui): prevent editing of default dashboard

* chore(ui): centering the KPI text inside the box

* chore(ui): dashboard edit preview to respect set layouts

* chore(ui): initial work on setting the default flow & namespace dashboards

* fix(ui): make sure there is no naming clashes

* feat: KPI chart backend implementation

* feat: validation annotations

* chore(ui): make chart legend align to right side

* chore(ui): properly show chart labels

* chore(ui): improve state and ID components inside custom tabels

* chore(ui): add proper link to execution in tables

* feat: implemented Triggers as Datasource for custom dashboards

close kestra-io/kestra-ee#3740

* feat: modified the Markdown chart so now it accept different sources

* feat: rename KPI property to numerator & where

close #3739

* chore(ui): improve markdown component

* chore(ui): markdown charts

* chore(ui): markdown charts

* chore(ui): markdown charts remove padding

* chore(ui): markdown charts

* feat: fixes + define custom dashboard equivalent to current default dashboard with some modification

* fix: round double value

* chore(ui): improve  flows and ns charts

* chore(ui): make sure that table shows execution links only if namespace and flowId exist

* chore(ui): make sure markdown is properly shown on dashboard edititng

* fix: correctly do preview instead of load on homepage

* fix: correctly preview markdown chart and add description in default flow dashboard

* fix: apply review changes

* fix: modify test following classes modifications on charts

* tests: restore package-lock

* remove chromatic tools and a warning

---------

Co-authored-by: MilosPaunovic <paun992@hotmail.com>
Co-authored-by: Bart Ledoux <bledoux@kestra.io>
2025-05-27 08:02:11 +02:00
yuri
57bafd1240 fix(ui): show proper no results (#8870)
* fix(ui): show proper no result

* Migrated the `SelectTable` component away from `NoData` to the
  placeholder text attribute.
* Enabled `NoData` for logs since their empty result case was also
  not clear.

* fix(core): make selection work and few more tweak.

---------

Co-authored-by: Piyush Bhaskar <102078527+Piyush-r-bhaskar@users.noreply.github.com>
2025-05-27 11:23:26 +05:30
Loïc Mathieu
f90e22a935 fix(tests): improve test robustness by avoiding spinning a new thread for receive timeout 2025-05-26 20:35:28 +02:00
Loïc Mathieu
ec21ef3d32 feat(system): add a metrics for the Executor thread count
Part-of: #8341
2025-05-26 19:37:32 +02:00
Loïc Mathieu
88b88856da feat(system): add metrics to the JDBC queue
Part-of: #8340
2025-05-26 19:37:03 +02:00
github-actions[bot]
96b481348f chore(core): localize to languages other than english (#8999)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-05-26 18:10:40 +02:00
brian-mulier-p
e3a8c1c086 fix(plugins): resolve subtypes in low code editor (#8957)
closes #8903
2025-05-26 17:49:50 +02:00
Miloš Paunović
87fe3abee5 refactor(core): rename the type in random retry (#8998) 2025-05-26 17:47:56 +02:00
Miloš Paunović
4b7d90faf4 chore(core): add retry block to no code editor (#8996)
Closes https://github.com/kestra-io/kestra/issues/7031.
2025-05-26 17:40:12 +02:00
Barthélémy Ledoux
2f8a844326 fix: save namespace files when clicking ctrl-S (#8994) 2025-05-26 17:09:06 +02:00
Loïc Mathieu
1b4efc51bf feat(system): restore the flow queue after tenant migration
This would lower the risk of trigger/topology not up to date and would make all components having to right set of flows.
2025-05-26 15:37:33 +02:00
YannC
d3c29fcadd fix(logs): Use correct property for filtering logs in kafka (#8812)
* fix(logs): Use correct property for filtering logs in kafka

* test: added a test for date
2025-05-26 15:20:03 +02:00
Barthélémy Ledoux
059323aca0 fix(ci): nocode translate (#8988)
Co-authored-by: GitHub Action <actions@github.com>
2025-05-26 14:35:41 +02:00
YannC
aae752ff3c feat: add a new method "taskWithState" that leverage on the property tasks (#8907)
close #5653
2025-05-26 13:09:13 +02:00
Piyush Bhaskar
ee5c39cbe4 fix(core): remove placeholder on input (#8984)
* fix(core): remove placeholder on input

* fix: remove not required
2025-05-26 16:17:17 +05:30
Roman Acevedo
021357c7a4 feat(tests): validate the Flow exists when create or update Test 2025-05-26 12:35:09 +02:00
Piyush Bhaskar
eff58d96c8 fix(core): few tweaks to align the placeholder and ui as per design. (#8980)
* fix(core): few tweaks to align the placeholder and ui as per design.

* fix: minor tweak

---------

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-05-26 15:27:39 +05:30
Barthélémy Ledoux
3c7ca60188 fix(nocode): reorder subtasks (#8976) 2025-05-26 11:55:46 +02:00
Piyush Bhaskar
06635cdecd fix(core): navigating back to plugins home. (#8972)
* fix(core): navigating back to plugins home.

* fix: keep the scroll to top

Co-authored-by: Barthélémy Ledoux <bledoux@kestra.io>

---------

Co-authored-by: Barthélémy Ledoux <bledoux@kestra.io>
2025-05-26 15:20:53 +05:30
Miloš Paunović
8ada2846bc feat(core): move complex task fields inline in no code editor (#8977)
Closes https://github.com/kestra-io/kestra/issues/8934.
2025-05-26 11:21:49 +02:00
Florian Hussonnois
c2dc1c0b8b fix(cli): properly install all plugins depending on kestra distribution
Related-to: kestra-io/kestra-ee#3806
2025-05-26 10:27:25 +02:00
Miloš Paunović
d66ee28a7a refactor(core): simplify header badge component usage (#8963) 2025-05-26 10:20:34 +02:00
dependabot[bot]
cbe32742f7 build(deps): bump software.amazon.awssdk:bom from 2.31.45 to 2.31.50
Bumps software.amazon.awssdk:bom from 2.31.45 to 2.31.50.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.50
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-26 09:52:36 +02:00
dependabot[bot]
55fb234760 build(deps): bump me.champeau.jmh from 0.7.2 to 0.7.3
Bumps me.champeau.jmh from 0.7.2 to 0.7.3.

---
updated-dependencies:
- dependency-name: me.champeau.jmh
  dependency-version: 0.7.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-26 09:52:16 +02:00
dependabot[bot]
6b00ab2623 build(deps): bump com.google.cloud:libraries-bom from 26.60.0 to 26.61.0
Bumps [com.google.cloud:libraries-bom](https://github.com/googleapis/java-cloud-bom) from 26.60.0 to 26.61.0.
- [Release notes](https://github.com/googleapis/java-cloud-bom/releases)
- [Changelog](https://github.com/googleapis/java-cloud-bom/blob/main/release-please-config.json)
- [Commits](https://github.com/googleapis/java-cloud-bom/compare/v26.60.0...v26.61.0)

---
updated-dependencies:
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.61.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-26 09:51:55 +02:00
Malaydewangan09
2aa5b1e236 feat(plugins): add plugins InfluxDB, Jenkins, Ollama, GraphQL 2025-05-26 09:31:31 +02:00
Ludovic DEHON
67c2ac8d01 feat(plugins): add allowedResponseCodes on http tasks
close #8973
2025-05-26 09:26:47 +02:00
github-actions[bot]
eb4de0530e chore(core): localize to languages other than english (#8964)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-05-24 11:55:49 +02:00
Barthélémy Ledoux
d7a420474f feat(ui): make trigger conditions in no-code a form (#8859) 2025-05-24 00:31:22 +02:00
Piyush Bhaskar
3de436cb8b feat(core): improve the ux of no code editor (#8955) 2025-05-23 19:54:15 +02:00
Florian Hussonnois
e46d4ed7ef fix(flows): adjust plugin doc to match the specified plugin version
Related-to: kestra-io/kestra-ee#3528
Related-to: kestra-io/ui-libs#496
2025-05-23 17:46:33 +02:00
github-actions[bot]
5994ffa74c chore(core): localize to languages other than english (#8961)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-05-23 17:15:50 +02:00
Roman Acevedo
c98911c394 refactor(core): regroup Test and Beta badges with same component 2025-05-23 17:02:09 +02:00
Nicolas K.
29c3bd7dec fix(core): tenant migration scripts now update keys
* chore(core): add keyboard shortcuts icon to flow editor tab (#8925)

fix(core): don't send empty operations when migrating roles (#3807)

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>

* fix(core): migrate key that required tenant id to avoid duplication

---------

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-05-23 16:44:53 +02:00
Roman Acevedo
2601df3de2 feat(tests): add a contextual Test badge on Execution topbar
fixes https://github.com/kestra-io/kestra-ee/issues/3812
2025-05-23 16:36:16 +02:00
Roman Acevedo
16ea41caa3 feat(tests): add ERROR state and handling
fixes #3804

* feat(tests): display errors in UI test results
2025-05-23 16:09:25 +02:00
Miloš Paunović
246892af29 fix(core): amend autocompletion in multi panel yaml flow editor (#8956)
Closes https://github.com/kestra-io/kestra/issues/8796.
2025-05-23 14:59:09 +02:00
Miloš Paunović
7de5002166 feat(core): save individual namespace files from multi panel editor (#8930)
Closes https://github.com/kestra-io/kestra/issues/8923.
2025-05-23 12:56:12 +02:00
Loïc Mathieu
1a4bb04258 fix(system): rename flyway migrations
They have been renamed in develop due to clashes but one was already backported on 0.22.

Fixes https://github.com/kestra-io/kestra-ee/issues/3819
2025-05-23 11:42:21 +02:00
YannC
88fa884e26 fix(filters): change label filtering to 'and' instead of 'or' (#8661)
* fix(filters): change label filtering to 'and' instead of 'or'

link to #8489

* test(execution): add test to validate and behavior

* test(execution): fix test
2025-05-23 11:26:46 +02:00
Florian Hussonnois
99a6d7533c fix(build): exclude jmh-benchmark module 2025-05-23 11:22:21 +02:00
Miloš Paunović
2c944612f3 fix(core): prevent multiple tabs for adding tasks to create duplicate entries (#8916)
Closes https://github.com/kestra-io/kestra/issues/8781.
Closes https://github.com/kestra-io/kestra/issues/8926.
2025-05-23 09:07:59 +02:00
Miloš Paunović
dc8095b6a2 fix(core): filter the inputs with no id field to prevent breaking of panel (#8944)
Closes https://github.com/kestra-io/kestra/issues/8932.
2025-05-23 08:57:26 +02:00
brian-mulier-p
84310e82e2 fix(system): force a state after kill (#8937)
closes #8936
2025-05-22 19:04:35 +02:00
Loïc Mathieu
ca652a1e96 fix(plugins)*: ForEach executes task in the wrong order when no concurrency limit
Fixes #8904
2025-05-22 17:53:35 +02:00
Miloš Paunović
625478cfb1 chore(core): add keyboard shortcuts icon to flow editor tab (#8925) 2025-05-22 15:37:10 +02:00
YannC
228359c661 test: avoid FileChangedEventListenerTest being flaky (#8810) 2025-05-22 11:38:25 +02:00
Florian Hussonnois
770a703482 feat(system): optimize MapUtils for merge
Optimize merge method by removing use of
java stream
2025-05-22 09:46:54 +02:00
Florian Hussonnois
55740133f0 chore(test): add module for jmh benchmarks 2025-05-22 09:46:54 +02:00
Loïc Mathieu
593aad2aea feat(system): don't compute empty task outputs
The method to compute task output is costly and can be avoided if there are no outputs.
2025-05-22 09:25:11 +02:00
Loïc Mathieu
a179f17dc6 feat(system): don't clone maps when not necessary
This is very cosly as RunVariables are computed each time we create an execution context.
2025-05-22 09:25:11 +02:00
François Delbrayelle
59a6c99fef fix(test): mockTaskRun should be public 2025-05-22 09:20:31 +02:00
Miloš Paunović
769cc28bf0 fix(core): make sure that complex tasks are properly rendered for both inputs and sections (#8902) 2025-05-22 08:30:31 +02:00
Florian Hussonnois
b5aaa6fb38 fix(core): cleanup LogService to always prefix with tenant
Remove use of kestra.ee.tenants.enabled property
2025-05-21 16:18:14 +02:00
brian-mulier-p
1ee60c1075 fix(core): avoid multiple rendering in ForEachItem (#8906)
closes #8905
2025-05-21 16:08:21 +02:00
brian.mulier
a5df187304 fix(plugins): remove "DYNAMIC" log from browser console 2025-05-21 14:53:04 +02:00
YannC
07814abd96 feat(core): added SecurityScheme annotation for openapi spec file generation + add some custom Schema name to avoid duplicated name (#8726) 2025-05-21 14:36:23 +02:00
YannC
2996c885f7 fix(filters): corrected the namespace contains filter (#8653)
close #8498
2025-05-21 14:35:38 +02:00
Loïc Mathieu
0fd8461249 feat(system): use Property.ofValue(T) instead of Property.of(T) 2025-05-21 13:35:35 +02:00
Loïc Mathieu
05d296df34 feat(system): Property.ofValue & Property.ofExpression
Deprecate Property.of(T) in favor of Property.ofValue(T) and new Property(String) in favor of Property.ofExpression(String)
2025-05-21 13:35:35 +02:00
Loïc Mathieu
87d162729e fix(plugins): ForEach must be displayed as a sequential
As the tasks inside each task group are executed sequentially, groups are executed concurrently not tasks inside them.

Part-of: https://github.com/kestra-io/kestra-ee/issues/3722
2025-05-21 13:28:52 +02:00
dependabot[bot]
e4ec427409 build(deps): bump posthog-js from 1.245.0 to 1.245.1 in /ui (#8900)
Bumps [posthog-js](https://github.com/PostHog/posthog-js) from 1.245.0 to 1.245.1.
- [Release notes](https://github.com/PostHog/posthog-js/releases)
- [Changelog](https://github.com/PostHog/posthog-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/PostHog/posthog-js/compare/v1.245.0...v1.245.1)

---
updated-dependencies:
- dependency-name: posthog-js
  dependency-version: 1.245.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-21 12:52:17 +02:00
Miloš Paunović
14d6ad5e0d fix(core): filter deprecated properties from optional ones in no code editor (#8896) 2025-05-21 12:51:21 +02:00
Miloš Paunović
341f10a237 chore(deps): regular dependency update (#8895)
Performing a weekly round of dependency updates in the NPM ecosystem to keep everything up to date.
2025-05-21 12:39:43 +02:00
Florian Hussonnois
fb4b1c842a fix(core): fix misc APIs with main tenants
Fix unit-tests
2025-05-21 12:24:09 +02:00
Florian Hussonnois
e3c4f0e502 fix(core): fix rooting to main tenant for configs endpoint 2025-05-21 09:15:24 +02:00
Florian Hussonnois
caf701a1c4 fix(system): remove main tenant from api/v1/configs 2025-05-20 18:57:01 +02:00
Nicolas K.
8821705a06 test(controller): add logs to understand why the test fail (#8858)
* test(controller): add logs to understand why the test fail

* test(controller): add logs to make sure the executions are running

* test(controller): add logs to make sure the executions are running

* test(controller): add logs to make sure the executions are running

---------

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-05-20 16:55:42 +02:00
Piyush Bhaskar
0723565d99 fix(core): center last step in tour and add Finish animation (#8862)
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-05-20 19:09:21 +05:30
github-actions[bot]
15759b8054 chore(core): localize to languages other than english (#8864)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-05-20 14:15:15 +02:00
Miloš Paunović
bdd0c675b8 chore(core): add group for deprecated properties in the no code editor (#8863)
Closes https://github.com/kestra-io/kestra/issues/7207.
2025-05-20 13:59:14 +02:00
github-actions[bot]
a51e4e240a chore(core): localize to languages other than english (#8861)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-05-20 13:04:40 +02:00
Piyush Bhaskar
8e8bf8e304 fix(core): tweak product tour flow listing (#8860)
Closes https://github.com/kestra-io/kestra/issues/8366.
2025-05-20 13:02:31 +02:00
Roman Acevedo
d3228b27b7 feat(tests): add fixtures to results 2025-05-20 11:35:15 +02:00
Barthélémy Ledoux
f293f9d849 fix(ui): nocode should allow to delete on click on bin (#8712)
* refactor: remove SECTIONS from local constants

* fix(ui): make delete button work for section, errors & tasks

* fix: allow delete of error, finally and afterexec

* fix: allow deleting fro any section

* use updated YAML_UTILS

* fix keyname usage

* update ui-libs for yaml utils

* fix: delete all tasks and keep order in creation

* chore: update ui-libs
2025-05-20 11:15:35 +02:00
Barthélémy Ledoux
cbf1a9823f fix(ui): update basePath to include 'main' tenant in api urls (#8856) 2025-05-20 10:41:00 +02:00
brian-mulier-p
1a7ccb97bf fix(plugins): show back if property is dynamic (#8846)
closes kestra-io/ui-libs#471
2025-05-20 10:28:11 +02:00
Loïc Mathieu
c9421879c8 fix(system): use a concurrent list to possibly fix the flaky test 2025-05-20 09:43:48 +02:00
Loïc Mathieu
b0f93e1945 chore(system): skip sleep in the JdbcQueue when at max poll size
When a queue is at max poll size, this means that it is at full capacity. In this case skip the sleep and process immediatly the next batch of message.
This improve latency at high thoughput without adding too much load to the database.

We can even go further by skipping sleep each time the poll returns messages but this would imply database cost so for now we balance performance and database cost by only skipping sleep when at max capacity.
2025-05-20 09:43:15 +02:00
Nicolas K.
4b228c966c fix(server): port changed during the redirection when no tenant id in uri (#8854)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-05-19 19:16:15 +02:00
Daniel Rivas
d755123087 feat(namespaces): Namespace search case insensitivity (#8717)
* Fix: Changed the namespace parsing so that it parses the NAMESPACE_FIELD case-insensitively

* Fix indentation issues
2025-05-19 18:18:34 +02:00
Bala Aparna
5fd9c21ef4 test(plugins): add code coverage to plugin command CLI (#8829)
Added test cases for:

Listing all available subcommands in the PluginCommand CLI help output.
Verifying that external plugins are not loaded by default in PluginCommand.

Updated existing tests for:

Enhanced help output validation to check for the presence of all expected subcommands/ 
Explicitly asserted the behavior of the loadExternalPlugins() method.

Ensured coverage for:

Edge cases where subcommands might be missing from the help output.
Input variants by directly invoking the command and capturing CLI output.
Error handling by confirming correct CLI configuration and plugin loading behavior.
2025-05-19 18:17:30 +02:00
Florian Hussonnois
eede188b38 fix(system): handle storage version in storage interface factory
Related-to: kestra-io/kestra-ee#3302
2025-05-19 18:05:10 +02:00
Anna Geller
f7fbf232cf feat(docker)!: remove non-critical dependencies (#8853) 2025-05-19 17:33:12 +02:00
Nicolas K.
734fcbc45b feat(core): #3427 add OSS tenant migration scripts (#8798)
* feat(core): #3427 add OSS tenant migration scripts

* clean(core): fixes after review

* clean(core): make only one command for oss and EE migration

* fix(core): user synchronisation command and clean PR

---------

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-05-19 16:42:59 +02:00
Miloš Paunović
9cdc3c54a3 fix(core): make sure that complex tasks are properly rendered (#8848)
Closes https://github.com/kestra-io/kestra/issues/8119.
2025-05-19 15:01:20 +02:00
Karuna Tata
a73c45a802 change label color to white (#8850) 2025-05-19 18:28:34 +05:30
Nicolas K.
11a7e68e93 feat(core)!: make tenant id required (#8460)
* feat(core)!: WIP make tenant id required

* feat(core)!: WIP make tenant id required

* test(core)!: WIP fix storage unit test

* build(deps): bump com.google.guava:guava from 33.4.7-jre to 33.4.8-jre

Bumps [com.google.guava:guava](https://github.com/google/guava) from 33.4.7-jre to 33.4.8-jre.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

---
updated-dependencies:
- dependency-name: com.google.guava:guava
  dependency-version: 33.4.8-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): bump io.micronaut.platform:micronaut-platform

Bumps [io.micronaut.platform:micronaut-platform](https://github.com/micronaut-projects/micronaut-platform) from 4.8.0 to 4.8.2.
- [Release notes](https://github.com/micronaut-projects/micronaut-platform/releases)
- [Commits](https://github.com/micronaut-projects/micronaut-platform/compare/v4.8.0...v4.8.2)

---
updated-dependencies:
- dependency-name: io.micronaut.platform:micronaut-platform
  dependency-version: 4.8.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): bump flyingSaucerVersion from 9.11.6 to 9.12.0

Bumps `flyingSaucerVersion` from 9.11.6 to 9.12.0.

Updates `org.xhtmlrenderer:flying-saucer-core` from 9.11.6 to 9.12.0
- [Release notes](https://github.com/flyingsaucerproject/flyingsaucer/releases)
- [Changelog](https://github.com/flyingsaucerproject/flyingsaucer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/flyingsaucerproject/flyingsaucer/compare/v9.11.6...v9.12.0)

Updates `org.xhtmlrenderer:flying-saucer-pdf` from 9.11.6 to 9.12.0
- [Release notes](https://github.com/flyingsaucerproject/flyingsaucer/releases)
- [Changelog](https://github.com/flyingsaucerproject/flyingsaucer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/flyingsaucerproject/flyingsaucer/compare/v9.11.6...v9.12.0)

---
updated-dependencies:
- dependency-name: org.xhtmlrenderer:flying-saucer-core
  dependency-version: 9.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.xhtmlrenderer:flying-saucer-pdf
  dependency-version: 9.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): bump software.amazon.awssdk:bom from 2.31.21 to 2.31.25

Bumps software.amazon.awssdk:bom from 2.31.21 to 2.31.25.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.25
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): bump com.github.oshi:oshi-core from 6.8.0 to 6.8.1

Bumps [com.github.oshi:oshi-core](https://github.com/oshi/oshi) from 6.8.0 to 6.8.1.
- [Release notes](https://github.com/oshi/oshi/releases)
- [Changelog](https://github.com/oshi/oshi/blob/master/CHANGELOG.md)
- [Commits](https://github.com/oshi/oshi/compare/oshi-parent-6.8.0...oshi-parent-6.8.1)

---
updated-dependencies:
- dependency-name: com.github.oshi:oshi-core
  dependency-version: 6.8.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): bump org.opensearch.client:opensearch-java

Bumps [org.opensearch.client:opensearch-java](https://github.com/opensearch-project/opensearch-java) from 2.22.0 to 2.23.0.
- [Release notes](https://github.com/opensearch-project/opensearch-java/releases)
- [Changelog](https://github.com/opensearch-project/opensearch-java/blob/v2.23.0/CHANGELOG.md)
- [Commits](https://github.com/opensearch-project/opensearch-java/compare/v2.22.0...v2.23.0)

---
updated-dependencies:
- dependency-name: org.opensearch.client:opensearch-java
  dependency-version: 2.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): bump co.elastic.logging:logback-ecs-encoder

Bumps [co.elastic.logging:logback-ecs-encoder](https://github.com/elastic/ecs-logging-java) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/elastic/ecs-logging-java/releases)
- [Commits](https://github.com/elastic/ecs-logging-java/compare/v1.6.0...v1.7.0)

---
updated-dependencies:
- dependency-name: co.elastic.logging:logback-ecs-encoder
  dependency-version: 1.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* tests(system): isolate SchedulerScheduleTest tests with tenantId

* Feat/storage outputs (#8361)

* feat(executions): Store outputs inside the internal storage (1/2)

* feat(executions): Store outputs inside the internal storage (2/2)

* feat(test): allow passing tenantId to tests

---------

Co-authored-by: Ludovic DEHON <tchiot.ludo@gmail.com>

* chore(deps): regular dependency update (#8484)

Performing a weekly round of dependency updates in the NPM ecosystem to keep everything up to date.

* fix(ui): full view height for single task logs (#8042)

Co-authored-by: Miloš Paunović <paun992@hotmail.com>

* feat: synchronize task edition with editor (#8433)

* fix(controls): adjust bottom position of contorls in multiPanelsEditor (#8465)

* fix(executions): unqueing execution must remove the execution queued

When an execution is queued in the JDBC backend, a record is inserted inside the execution_queued table, we must remove this record when we unqeue an execution.

Fixes #8448

* chore(core): localize to languages other than english (#8485)

Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>

* tests(webserver): fix flaky test which could query previous tests tasks

* tests(system): debug flaky error of shouldPauseExecutionByQueryRunningFlows

* tests(system): debug flaky error of shouldPauseExecutionByQueryRunningFlows

* tests(system): try with different task id

* tests(system): bump sleep-short sleep time to 10s

* fix(execution)*: decode and hide nested inputs of type SECRET

Fixes #7964

* refactor(core): pass the dynamic concurrency schema to no code editor (#8488)

There was an issue with passing hard-coded concurrency schema to be rendered in No Code editor, which is now amended and we're passing down the previously fetched one

* chore(deps): update gradle version

* doc(basic.md): add link to configuration for kestra property variables (#8490)

* fix(flows): properly check average duration for dashboard graphs (#8457)

There was a problem on flows view with the main chart not showing proper data until user clicks on duration toggle.

Closes https://github.com/kestra-io/kestra/issues/8435.
Closes https://github.com/kestra-io/kestra-ee/issues/3499.

* docs(core-pause): update pauseDuration properties, titles, descriptions (#8495)

* fix(system): restrict the JdbcConcurrencyLimitService to the JDBC runner

* fix(core): fix indexer metric description (#8500)

* Add examples with expression and trimmed values (#6154)

* chore(ui): improvement to drilldown for Default and Custom Charts. (#7885)

* chore(ui): improvement to drilldown for Default and Custom Charts.

* minor tweak

* test: fix the Barchart stories to test drilldown

---------

Co-authored-by: Bart Ledoux <bledoux@kestra.io>

* fix(ui): restart trigger position for backfill column (#8246)

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
Co-authored-by: Bart Ledoux <bledoux@kestra.io>

* feat(plugin): add a way to provide additional type of plugins

Provide a way for plugins to define a new type of plugins.
To do that, a plugin must provide both an abstract base class that extends AdditionalPlugin and a set of concret classes.
Both the abstract base class and the concrete classes mut be inside the same plugin. This is a limitation that we may work on later by providing, for example, an SPI to add base classes to the application classloader.

* fix(ui): save existing flow after making changes (#8378)

Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>

* fix(core): failing DocumentationGeneratorTest.returnDoc()

* chore(core): refactor  component to composition API  structure and with some styling (#8504)

* feat(flows): add validation for use of inputs and outputs with '-' in the name (#8379)

* test(core): fix breaking change in local flow repository (#8517)

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>

* feat(system)!: remove the SQLServer runner

Part-of: https://github.com/kestra-io/kestra-ee/issues/3504

* chore(build): add Postgres stat extension

* feat(plugins): add Langchain4J plugins

* chore(system): add warn log when emit logQueue failed (#8432)

* feat(plugins): add Go Script plugin

* fix(jdbc): add service_id index on service_instance table

* chore(flows): improve the blueprints view within the flow editing panels (#7983)

Changes here consist of removing the tags from blueprint view on Multi Panel flow editor, along with couple of other UI improvements.

Closes https://github.com/kestra-io/kestra/issues/7881.

Co-authored-by: Miloš Paunović <paun992@hotmail.com>

* fix(flows): properly load blueprints in multi panel view (#8524)

While using the new Multi Panel view blueprints were not loading properly due to wrong paramtere being sent to action. now that's sorted.

Closes https://github.com/kestra-io/kestra/issues/8523.

* feat(flows): improve the display of array inputs when running an execution (#7953)

This PR is introducing a change of how the `array` inputs are displayed inside the flow run dialog, to be more user-friendly.

Closes https://github.com/kestra-io/kestra/issues/6947.

---------

Co-authored-by: Miloš Paunović <paun992@hotmail.com>

* fix(system): change default config values for liveness

Change kestra.server.liveness.interval from 5s to 10s
to be less agressive on liveness check. Align
other default liveness configs with kafka implementation.

* fix(ui): amend Absolute date filter's looks (#8501)

* chore(core): localize to languages other than english (#8528)

Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>

* docs(flow-trigger): add note about no Pebble in conditions

* fix(ui): remove parts of filter using backspace (#8105)

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>

* fix(ui): open link in markdown in other tab. (#8258)

* fix(ui): open link in markdown in other tab.

* chore(core): restrict attribute to external links.

Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>

---------

Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>

* fix(system): load OpenTelemetry lib in the app classloader

Without that, as we have it here, plugins may have class loading issue if they use OpenTelemetry internally (like in the Elasticsearch client).

* feat(ui): Add search in internal docs (#8458)

Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>

* fix(triggers): inject default later inside the Scheduler

Today, as they are injected eagerly, they are done even if no trigger exists.
This is counter-performant, and in case the flow is an error will log each seconds.
Doing it a little later will be better.

* build(deps): bump software.amazon.awssdk:bom from 2.31.25 to 2.31.30

Bumps software.amazon.awssdk:bom from 2.31.25 to 2.31.30.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.30
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): bump org.wiremock:wiremock-jetty12 from 3.12.1 to 3.13.0

Bumps [org.wiremock:wiremock-jetty12](https://github.com/wiremock/wiremock) from 3.12.1 to 3.13.0.
- [Release notes](https://github.com/wiremock/wiremock/releases)
- [Commits](https://github.com/wiremock/wiremock/compare/3.12.1...3.13.0)

---
updated-dependencies:
- dependency-name: org.wiremock:wiremock-jetty12
  dependency-version: 3.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): bump jacksonVersion from 2.18.3 to 2.19.0

Bumps `jacksonVersion` from 2.18.3 to 2.19.0.

Updates `com.fasterxml.jackson:jackson-bom` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.18.3...jackson-bom-2.19.0)

Updates `com.fasterxml.jackson.core:jackson-core` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-core/compare/jackson-core-2.18.3...jackson-core-2.19.0)

Updates `com.fasterxml.jackson.core:jackson-databind` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson/commits)

Updates `com.fasterxml.jackson.core:jackson-annotations` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson/commits)

Updates `com.fasterxml.jackson.module:jackson-module-parameter-names` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-modules-java8/compare/jackson-modules-java8-2.18.3...jackson-modules-java8-2.19.0)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-yaml` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-dataformats-text/compare/jackson-dataformats-text-2.18.3...jackson-dataformats-text-2.19.0)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-smile` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-dataformats-binary/compare/jackson-dataformats-binary-2.18.3...jackson-dataformats-binary-2.19.0)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-cbor` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-dataformats-binary/compare/jackson-dataformats-binary-2.18.3...jackson-dataformats-binary-2.19.0)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-ion` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-dataformat-ion/commits)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-xml` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-dataformat-xml/compare/jackson-dataformat-xml-2.18.3...jackson-dataformat-xml-2.19.0)

Updates `com.fasterxml.jackson.datatype:jackson-datatype-guava` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-datatypes-collections/compare/jackson-datatypes-collections-2.18.3...jackson-datatypes-collections-2.19.0)

Updates `com.fasterxml.jackson.datatype:jackson-datatype-jsr310` from 2.18.3 to 2.19.0

Updates `com.fasterxml.jackson.datatype:jackson-datatype-jdk8` from 2.18.3 to 2.19.0

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.core:jackson-core
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.core:jackson-databind
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.core:jackson-annotations
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.module:jackson-module-parameter-names
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-smile
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-cbor
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-ion
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-xml
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-guava
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-jsr310
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-jdk8
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(execution): update display names for executions. (#8527)

* fix(core): change incorrectly used search parameter (#8534)

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>

* fix(ui): set isCreating to false when opening flow edit mode (#8549)

* fix(core): safely access section and identifier query params (#8542)

Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>

* fix(ui): update storybook editor tests with provided keys (#8550)

Co-authored-by: Piyush Bhaskar <102078527+Piyush-r-bhaskar@users.noreply.github.com>

* chore(core): localize to languages other than english (#8554)

Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>

* fix(triggers): amend broken filtering on triggers tab (#8553)

There was a problem with both namespace and state filters on Triggers page which is now properly sorted.

Closes https://github.com/kestra-io/kestra/issues/8529.

* chore: attempt to fix flaky tests (#8537)

SingleFlowCommandsTest:

The flow Delete -> Create -> Update sequence is weird - delete got HTTP 404.
Reworked to Create -> Update -> Delete sequence.

PurgeLogsTest:

The log repository contained the prepared single entry but also might
contain additional entries from previously logged messages.

* fix(namespaces): namespaceFiles with same name are wrongly overwritten (#8562)

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>

* feat(core): forward execution labels in Flow Trigger

* chore(triggers)*: properly handle switches for triggers disabled from within flow source (#8106)

It was not clear as to which trigger can not be enabled and why. Now, that is much more clear with the proper tooltips and disabling of switch toggling.

Closes https://github.com/kestra-io/kestra/issues/8011.
Closes https://github.com/kestra-io/kestra/issues/5736.

* fix(executions): fix execution failure due to UnsupportedOperationException (#8563)

Fix: #8563

* chore(core): localize to languages other than english (#8568)

Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>

* feat(system): add TestSuite model,taskFixture impl

* fix: redirect to edit when saving new flow (#8560)

Co-authored-by: Piyush Bhaskar <102078527+Piyush-r-bhaskar@users.noreply.github.com>

* feat(system)*: decrease defaut JDBC queue poll size

Decreasing it from 100 to 50 didn't show any performance hit but should lower the memory consumption now that we process the queue concurrently in the executor.

## BEFORE - pollSize=100
- 10 tx/s: 150ms
- 25 tx/s: 200ms
- 50 tx/s: 300ms
- 75 tx/s: 5.2s
- 100 tx/s: 15s

## AFTER - pollSize=50
- 10 tx/s: 150ms
- 25 tx/s: 200ms
- 50 tx/s: 300ms
- 75 tx/s: 4.8s
- 100 tx/s: 14s

* feat(flows): Allow to define an onPause task on the Pause task

The onPause task will be executed immediatly when the execution is paused.
Part-of: #3601

* feat(core)!: WIP make tenant id required

* feat(core)!: WIP make tenant id required

* Feat/storage outputs (#8361)

* feat(executions): Store outputs inside the internal storage (1/2)

* feat(executions): Store outputs inside the internal storage (2/2)

* feat(test): allow passing tenantId to tests

---------

Co-authored-by: Ludovic DEHON <tchiot.ludo@gmail.com>

* tests(webserver): fix flaky test which could query previous tests tasks

* feat(executions): Add workerId to each worker task attemps

Closes #7799

* Feat/storage outputs (#8361)

* feat(executions): Store outputs inside the internal storage (1/2)

* feat(executions): Store outputs inside the internal storage (2/2)

* feat(test): allow passing tenantId to tests

---------

Co-authored-by: Ludovic DEHON <tchiot.ludo@gmail.com>

* wip(core): fix unit tests

* test(core): fix unit tests

* test(core): fix unit tests

* test(core): fix unit tests

* feat(core): make tenant id required everywhere

* feat(core): make tenant required in create user command

* feat(core): clean the PR

* feat(core): add tenant id to dashboard controller

* fix(core): tests after merging

* clean(core): fixes after review

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Roman Acevedo <roman.acevedo62@gmail.com>
Co-authored-by: Loïc Mathieu <loikeseke@gmail.com>
Co-authored-by: Ludovic DEHON <tchiot.ludo@gmail.com>
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
Co-authored-by: Piyush Bhaskar <102078527+Piyush-r-bhaskar@users.noreply.github.com>
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <actions@github.com>
Co-authored-by: AJ Emerich <aemerich@kestra.io>
Co-authored-by: ben8t <46634684+Ben8t@users.noreply.github.com>
Co-authored-by: Bart Ledoux <bledoux@kestra.io>
Co-authored-by: Satvik Kushwaha <59243339+satvik2131@users.noreply.github.com>
Co-authored-by: Karuna Tata <karuna.tata@devrev.ai>
Co-authored-by: Hashim Khalifa <105060840+hashimzs@users.noreply.github.com>
Co-authored-by: lwyang <1670906161@qq.com>
Co-authored-by: 杨利伟 <yangliwei@xiaomi.com>
Co-authored-by: Florian Hussonnois <fhussonnois@kestra.io>
Co-authored-by: yuri <1969yuri1969@gmail.com>
Co-authored-by: AJ Emerich <aj-emerich@proton.me>
Co-authored-by: rajatsingh23 <48049052+rajatsingh23@users.noreply.github.com>
2025-05-19 14:49:10 +02:00
Karuna Tata
05e348370f ui(fix): change namespace hover to white (#8842)
* change namespace hover to white

* fix
2025-05-19 17:24:16 +05:30
Piyush Bhaskar
84a6d09945 chore(core): fix import (#8845) 2025-05-19 15:58:32 +05:30
Roman Acevedo
b5cc011914 build: influxdb and graphql not available yet 2025-05-19 11:34:03 +02:00
dependabot[bot]
174e3f85b1 build(deps): bump org.sonarqube from 6.1.0.5360 to 6.2.0.5505
Bumps org.sonarqube from 6.1.0.5360 to 6.2.0.5505.

---
updated-dependencies:
- dependency-name: org.sonarqube
  dependency-version: 6.2.0.5505
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 10:49:32 +02:00
dependabot[bot]
ba5890f5d0 build(deps): bump io.micrometer:micrometer-core from 1.14.6 to 1.15.0
Bumps [io.micrometer:micrometer-core](https://github.com/micrometer-metrics/micrometer) from 1.14.6 to 1.15.0.
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- [Commits](https://github.com/micrometer-metrics/micrometer/compare/v1.14.6...v1.15.0)

---
updated-dependencies:
- dependency-name: io.micrometer:micrometer-core
  dependency-version: 1.15.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 10:47:39 +02:00
Florian Hussonnois
86f0b23cde build: update release-plugin script to set kestra version for plugins
Related-to: kestra-io/kestra-ee#3348
2025-05-19 10:36:50 +02:00
Roman Acevedo
ded5a932e0 chore(tests): add tests icon to tests list view 2025-05-19 10:30:25 +02:00
Roman Acevedo
69037d00c9 feat(tests): improve empty page 2025-05-19 10:30:25 +02:00
Piyush Bhaskar
74b425250c feat(core): change selection to tab and remove display of type and tooltip. (#8805)
* feat(core): replace select with tabs for schema selection.

* feat(core): change selection to tab and remove display of type and tooltip.

* fix: remove obsolete component and add class.

* chore(core): task enclosed under a border.

* fixes enclosed border only for anyOf type

---------

Co-authored-by: Barthélémy Ledoux <bledoux@kestra.io>
2025-05-19 13:39:52 +05:30
Loïc Mathieu
75ff7d86c5 fix(system): use the minPollInterval when the last poll is beyond all interval
As beyond all interval means it's less than the first interval so we should wait for the minimum not the maximum
2025-05-19 10:07:36 +02:00
dependabot[bot]
1186a8db46 build(deps): bump software.amazon.awssdk.crt:aws-crt
Bumps [software.amazon.awssdk.crt:aws-crt](https://github.com/awslabs/aws-crt-java) from 0.38.2 to 0.38.3.
- [Release notes](https://github.com/awslabs/aws-crt-java/releases)
- [Commits](https://github.com/awslabs/aws-crt-java/compare/v0.38.2...v0.38.3)

---
updated-dependencies:
- dependency-name: software.amazon.awssdk.crt:aws-crt
  dependency-version: 0.38.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 09:55:31 +02:00
dependabot[bot]
cc95c4a80b build(deps): bump software.amazon.awssdk:bom from 2.31.40 to 2.31.45
Bumps software.amazon.awssdk:bom from 2.31.40 to 2.31.45.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.45
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 09:55:13 +02:00
dependabot[bot]
232194dcba build(deps): bump com.github.docker-java:docker-java from 3.5.0 to 3.5.1
Bumps [com.github.docker-java:docker-java](https://github.com/docker-java/docker-java) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/docker-java/docker-java/releases)
- [Changelog](https://github.com/docker-java/docker-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/docker-java/docker-java/compare/3.5.0...3.5.1)

---
updated-dependencies:
- dependency-name: com.github.docker-java:docker-java
  dependency-version: 3.5.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 09:54:56 +02:00
Barthélémy Ledoux
8a36ddd184 fix: update topology when no-code changes (#8822)
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-05-19 09:44:44 +02:00
Barthélémy Ledoux
251802570c fix: restore multipanle bottom of panels (#8823) 2025-05-19 09:44:23 +02:00
Piyush Bhaskar
c90590582e feat(flows): Actions for Flow Navbar (#8838) 2025-05-19 12:44:21 +05:30
Miloš Paunović
3d0c63027a chore(core): remove console warning due to deprecated property (#8819) 2025-05-19 08:55:30 +02:00
brian-mulier-p
2043c81fea fix(plugins): add back metrics to plugin docs (#8826)
closes #8792
2025-05-16 19:55:44 +02:00
brian-mulier-p
5a78cdde12 fix(plugins): type and type-defining properties are now readonly (#8820)
closes #8818
2025-05-16 18:25:06 +02:00
Loïc Mathieu
30b39b2d30 feat(execution): add an execution kind
This allow to differentiate between normal executions and test executions
2025-05-16 17:00:27 +02:00
Miloš Paunović
c9a277d4d5 fix(core): properly handle input creation/updating via no code editor (#8787) 2025-05-16 14:30:28 +02:00
Piyush Bhaskar
bc0f24f22a fix(core): fixes change in theme aligned with selection in setttings. (#8815) 2025-05-16 16:37:58 +05:30
gluttonweb
a856654acb Update core/src/main/java/io/kestra/core/schedulers/AbstractScheduler.java
Co-authored-by: Loïc Mathieu <loikeseke@gmail.com>
2025-05-16 11:43:41 +02:00
weibo1
2c53a210d7 feat: Performance optimization for handle() method: Filter out executions with non-null next_execution_date in the query method, start a separate scheduled thread for scanning, reporting metrics and logging 2025-05-16 11:43:41 +02:00
Loïc Mathieu
476f34e986 feat(system): change the way we concurrently process executor queues
Instead of consuming multiple time the queue, which lead to concurrent queries on the `queues` table, process concurrently via an ExecutorService the messages from the queue.
We dind't process a new batch of messages until the existing one is totally process to be sure we process in FIFO the same execution message.

Also, go back to a poll size of 100 to mitiguate the performance hit due to this change.
2025-05-15 17:03:34 +02:00
Loïc Mathieu
a8e826af7d fix(system)*: reset the trigger into the KafkaScheduler instead of the ExecutorMain 2025-05-15 17:02:44 +02:00
Barthélémy Ledoux
2a9a926ea3 chore: the code is now in ui-libs delete the duplicate yaml-utils test (#8799) 2025-05-15 15:32:10 +02:00
Florian Hussonnois
59e631f048 fix(plugins): properly handle POSIX permissions for Docker task runner
Set POSIX file permissions when uploading/download working-dir files
from and to Docker container
2025-05-15 15:19:40 +02:00
Nicolas K.
09d91034ab test(server): fix time range unit test (#8802)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-05-15 15:00:32 +02:00
Loïc Mathieu
3639abb8bb chore(system): improve performance of IdUtils.fromParts()
Surprisingly, this method appear in some CPU and allocation profile as having a high cost, especially on the scheduler.
Switching to using a StringJoiner brings 4x perf improvements in method execution time (great improvement also on allocation but didn't have a measurement).
2025-05-15 14:07:47 +02:00
Loïc Mathieu
2d5d4b7c1d chore(system): mask Caffeine metrics log
As it's not an error and we cannot do anything if we don't want metrics (which cost) but want to hide that log.
2025-05-15 14:05:25 +02:00
Miloš Paunović
171272ac4b refactor(deps): revert monaco-yaml upgrade due to patch on previous version (#8797) 2025-05-15 11:18:28 +02:00
Malaydewangan09
3c5975f4b3 feat(plugins): add InfluxDB, GraphQL plugins 2025-05-15 09:11:40 +02:00
Loïc Mathieu
f6b7dbd653 fix(core): flaky test ExecutionServiceTest.replayEachSeq or replayEachSeq2
One of the two is failing pretty often, using @ExecuteFlow instead of @LoadFlow seems to make them non-flaky.
We can also remove the second ad those are duplicated test but maybe the person that duplicate it has some reason...
2025-05-14 18:24:50 +02:00
Piyush Bhaskar
ab9551aada feat(core): Embed videos directly on EE-feature teasers. (#8790)
* feat(demo): add video support to various demo components and enhance layout

* update video sources

* feat(core): Embed videos directly on EE-feature teasers.
2025-05-14 19:29:08 +05:30
Miloš Paunović
6642df4756 refactor(deps): revert monaco-yaml upgrade due to patch on previous version (#8791) 2025-05-14 15:53:39 +02:00
Roman Acevedo
e3fa5b7df1 fix(tests): assertions with numbers 2025-05-14 15:36:26 +02:00
Roman Acevedo
fca529a908 feat(tests): rename testsuite to tests in UI,API 2025-05-14 15:36:26 +02:00
YannC
dd29e7521f fix(filters): allows to filter using is not for relative date filter (#8659)
link to #8494
2025-05-14 15:29:49 +02:00
Miloš Paunović
e7129b1024 fix(core): check for schema existence on no code input editing (#8775) 2025-05-14 13:59:53 +02:00
Barthélémy Ledoux
dff9fec74c fix: allow retry edition in no-code (#8770)
Co-authored-by: MilosPaunovic <paun992@hotmail.com>
2025-05-14 13:34:55 +02:00
Miloš Paunović
c898da3aa3 fix(core): make no code breadcrumb clickable only in legacy mode (#8776) 2025-05-14 13:34:08 +02:00
Miloš Paunović
c517985c80 chore(deps): regular dependency update (#8774)
Performing a weekly round of dependency updates in the NPM ecosystem to keep everything up to date.
2025-05-14 11:18:14 +02:00
Miloš Paunović
b8fb39c67e refactor(core): remove obsolete node script (#8773) 2025-05-14 11:06:31 +02:00
Miloš Paunović
32358c787a chore(plugins): hide deprecated plugins from plugin select options (#8744)
Closes https://github.com/kestra-io/kestra/issues/7205.
2025-05-14 10:39:02 +02:00
Piyush Bhaskar
bbcd377257 feat(core): replace task array option selection design (#8699)
Closes https://github.com/kestra-io/kestra/issues/8694.
2025-05-14 09:14:11 +02:00
Loïc Mathieu
df70618b91 feat(system): use the FlowMetaStore instead of the FlowRepository inside the Executor 2025-05-13 17:15:36 +02:00
Roman Acevedo
58fcd0a18d feat(system): add TestSuite run and assertions
feat(system): add assertions for TestSuites

feat(system): allow isNull and other assertion

feat(system): return a default error message
2025-05-13 16:54:31 +02:00
brian.mulier
79242f9e22 tests(executions): remove flakiness on some tests around sleep 2025-05-13 16:07:10 +02:00
brian.mulier
925169c474 fix(executions): avoid to stop following execution too early leading to UI display shifting from actual state (#8718)
part of kestra-io/kestra-ee#3526
2025-05-13 16:07:10 +02:00
Miloš Paunović
cf206e0b08 chore(core): properly handle topology action clicks while using multi panel editor (#8705)
Closes https://github.com/kestra-io/kestra/issues/7804.
Closes https://github.com/kestra-io/kestra/issues/8275.
2025-05-13 15:56:20 +02:00
Miloš Paunović
6156af2969 fix(core): showing properties of any-of tasks (#8748) 2025-05-13 15:51:01 +02:00
Barthélémy Ledoux
9b12079ca4 fix(namespaces): use the right route param to get namespace files (#8747) 2025-05-13 15:45:00 +02:00
Barthélémy Ledoux
dbb7761104 fix(ui): legacy editor iew no-code does not need creatintask flag (#8742) 2025-05-13 13:39:53 +02:00
Miloš Paunović
e616aa525c chore(flows): remove unnecessary section about keyboard shortcuts from flow basic documentation (#8745)
Closes https://github.com/kestra-io/kestra/issues/7065.
2025-05-13 13:27:00 +02:00
Ludovic DEHON
5e4253ec84 fix(core): some logs can emits null message 2025-05-13 07:34:38 +02:00
github-actions[bot]
2bfdca389f Translations from en.json (#8734)
* chore(core): localize to languages other than english

Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

* Apply suggestions from code review

---------

Co-authored-by: GitHub Action <actions@github.com>
Co-authored-by: Anna Geller <anna.m.geller@gmail.com>
2025-05-12 17:39:49 +02:00
Barthélémy Ledoux
a213a90bbe feat(ui): treat the pluginsdefaults as a section (#8731) 2025-05-12 16:59:12 +02:00
Loïc Mathieu
5c060b5c39 fix(plugins)*: don't cache the condition property inside the If task
Doing that, causes an issue if the If task is used inside a ForEach with a concurrencyLimit > 1.

Fixes #8697
2025-05-12 16:31:44 +02:00
AJ Emerich
ffdebf3f4c docs(docker): update title and description of docker kill grace period property (#8733)
Part of https://github.com/kestra-io/kestra-ee/issues/3625
2025-05-12 14:40:18 +01:00
AJ Emerich
52931769f9 docs(http): update SSL options property with note 2025-05-12 13:46:16 +02:00
dependabot[bot]
625e78375f build(deps): bump com.google.cloud:libraries-bom from 26.59.0 to 26.60.0
Bumps [com.google.cloud:libraries-bom](https://github.com/googleapis/java-cloud-bom) from 26.59.0 to 26.60.0.
- [Release notes](https://github.com/googleapis/java-cloud-bom/releases)
- [Changelog](https://github.com/googleapis/java-cloud-bom/blob/main/release-please-config.json)
- [Commits](https://github.com/googleapis/java-cloud-bom/compare/v26.59.0...v26.60.0)

---
updated-dependencies:
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.60.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-12 11:56:16 +02:00
dependabot[bot]
c8c649cb75 build(deps): bump net.thisptr:jackson-jq from 1.2.0 to 1.3.0
Bumps [net.thisptr:jackson-jq](https://github.com/eiiches/jackson-jq) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/eiiches/jackson-jq/releases)
- [Commits](https://github.com/eiiches/jackson-jq/compare/1.2.0...1.3.0)

---
updated-dependencies:
- dependency-name: net.thisptr:jackson-jq
  dependency-version: 1.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-12 11:28:57 +02:00
dependabot[bot]
2c1ea4e1c7 build(deps): bump software.amazon.awssdk:bom from 2.31.35 to 2.31.40
Bumps software.amazon.awssdk:bom from 2.31.35 to 2.31.40.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.40
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-12 11:26:13 +02:00
dependabot[bot]
5e08c7dd50 build(deps): bump software.amazon.awssdk.crt:aws-crt
Bumps [software.amazon.awssdk.crt:aws-crt](https://github.com/awslabs/aws-crt-java) from 0.38.1 to 0.38.2.
- [Release notes](https://github.com/awslabs/aws-crt-java/releases)
- [Commits](https://github.com/awslabs/aws-crt-java/compare/v0.38.1...v0.38.2)

---
updated-dependencies:
- dependency-name: software.amazon.awssdk.crt:aws-crt
  dependency-version: 0.38.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-12 11:24:53 +02:00
Loïc Mathieu
13d86c41ea feat(plugins)!: kill the Docker container on kill
And allow configuring a grace period.

Fixes https://github.com/kestra-io/kestra-ee/issues/3625
Part-of: https://github.com/kestra-io/kestra-ee/issues/3526
2025-05-12 11:22:09 +02:00
Loïc Mathieu
a117634348 feat(system): add metrics for Worker Job resubmission
Part-of: https://github.com/kestra-io/kestra/issues/8341
2025-05-12 11:06:16 +02:00
Barthélémy Ledoux
7262ebe616 fix(ui): nocode save /close button is now smaller (#8713) 2025-05-09 22:47:48 +02:00
Florian Hussonnois
2792fa4535 fix(core): allow scalar-to-string concatenation in typed task property
Enable concatenation of arbitrary scalar values (e.g., numbers, booleans)
into a string when setting a typed plugin property expecting a single value:
e.g., the `value` property of the `io.kestra.plugin.core.kv.Set` task.

Fix: kestra-io/kestra-ee#3570
2025-05-09 17:50:52 +02:00
Florian Hussonnois
e6e9803c4a fix(system): avoid catching JVM fatal error on Worker
Re-throw VirtualMachineError when an exception is catched
from a worker task ensuring, for example, that OOM are
correctly propagated.
2025-05-09 17:38:18 +02:00
Barthélémy Ledoux
cf91ca2baf fix(ui): update breadcrumb click behavior in legacy (#8709) 2025-05-09 15:53:31 +02:00
Barthélémy Ledoux
c11af3fa9d fix: make settings menu proper links (#8710)
* fix: make settings menu proper links

* chore(core): remove bg on select's header

---------

Co-authored-by: Piyush Bhaskar <102078527+Piyush-r-bhaskar@users.noreply.github.com>
2025-05-09 17:34:59 +05:30
Miloš Paunović
f980a6850b fix(namespaces)*: send proper parameter for namespace on file creation/update (#8706)
There was a problem with sending the non-existing parameter to `vuex` action for creation/update of namespace files. Now that's sorted.

Closes https://github.com/kestra-io/kestra-ee/issues/3567.
2025-05-09 13:02:38 +02:00
Miloš Paunović
bc09676a57 chore(flows): make flow validation a bit less aggressive (#8700)
Flow was being validate with a throttle of `500ms`, which was too aggressive. Now it's increased to `2000ms`.

Closes https://github.com/kestra-io/kestra-ee/issues/3627.
2025-05-08 10:37:07 +02:00
github-actions[bot]
faa6f8fc71 chore(core): localize to languages other than english (#8690)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-05-07 13:10:33 +02:00
Loïc Mathieu
e0af7e824b fix(core): flaky test RunContextLoggerText.logs()
Wait a little longuer by default for logs to avoid too much flakyness.
2025-05-07 12:39:52 +02:00
Loïc Mathieu
e7b72a5d7f feat(system): send task and trigger usage metrics
Fixes https://github.com/kestra-io/kestra-ee/issues/3532
2025-05-07 12:39:14 +02:00
Loïc Mathieu
fcc1fcb799 chore(system): rename FlowExecutorInterface to FlowMetaStoreInterface
Part-of: https://github.com/kestra-io/kestra-ee/issues/3474
2025-05-07 12:36:52 +02:00
Roman Acevedo
ee444bef30 chore(system): prepare TestSuite ui
advance on CRUD UI for Add unit tests for flows — new tab on the Flows page, runnable from the UI, API or from CI/CD (needs CLI and GitHub Action) kestra-ee#3110

linked to feat(system): add TestSuite list and edit pages kestra-ee#3585
2025-05-07 12:30:46 +02:00
Loïc Mathieu
aecf1dbe07 feat(flows)!: evaluate flow trigger on PAUSED by default
This is a breaking change as existing flow trigger wich didn't filter to any states on conditiosn or preconditions was before triggering executions only on terminal states and will now trigger executions on terminated and paused states.

Fixes https://github.com/kestra-io/kestra-ee/issues/3535
2025-05-07 11:43:15 +02:00
Loïc Mathieu
d13a4e70c7 chore(build): gradle runStandalone 2025-05-07 11:43:03 +02:00
Miloš Paunović
5248e95bd9 chore(deps): regular dependency update (#8687)
Performing a weekly round of dependency updates in the NPM ecosystem to keep everything up to date.
2025-05-07 10:03:17 +02:00
YannC
79a6fbbab1 fix(filters): use correct key for timeRange when using multiple filters (#8657)
close #8498
2025-05-07 09:13:34 +02:00
Dhinakaran T
61dcb852e3 chore(triggers): swap the backfill button on triggers page with the one form flow triggers (#8624)
Closes https://github.com/kestra-io/kestra/issues/8606.

---------

Co-authored-by: dhinakaranst <dinastdhinast@.com>
Co-authored-by: MilosPaunovic <paun992@hotmail.com>
2025-05-07 09:05:38 +02:00
Loïc Mathieu
0c93bc6275 chore(core): retry flaky test triggerPaused() 2025-05-06 17:21:50 +02:00
Loïc Mathieu
1754f81e0b feat(system): add NoopCache
To use where we want to be able to disable caching.
2025-05-06 17:21:50 +02:00
Loïc Mathieu
7117ae60f5 feat(system): purge empty service instances
Purge service instance in EMPTY state after a certain duration, 30 days by default, to avoid never ending groth on the service_instances table.

Fixes #8514
2025-05-06 17:17:46 +02:00
Loïc Mathieu
2b015f8d06 fix(tests): flaky test ExecutionServiceTest.deleteExecutionKeepLogs() 2025-05-06 17:06:03 +02:00
github-actions[bot]
8cccd3725d chore(core): localize to languages other than english (#8656)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-05-06 15:20:07 +02:00
Dhivya G
fdcea57b18 feat(ui): add version property to Frontend API call (#8650) 2025-05-06 14:55:01 +02:00
yuri
3f1d4f8fe0 feat(core): enable filter refresh interval to be changed in settings (#8522)
This change is introducing a new setting for users to choose - the automatic table refresh interval.

---------

Co-authored-by: MilosPaunovic <paun992@hotmail.com>
2025-05-06 14:44:09 +02:00
Loïc Mathieu
fe0a5d287b feat(system): add metrics to the executor
Add metrics to the executor for:
- Execution delays
- Execution killed events
- SLA expirations and violations

Part-of: #8341
2025-05-06 14:20:29 +02:00
Loïc Mathieu
5237bcc90c fix(system): subflow validation can fail when typing 2025-05-06 14:17:39 +02:00
AbdurRahman2004
d7a3e24465 chore(core): update keyboard shortcut for triggering the autocompletion (#8618)
Label for triggering autocompletion was `CMD/CTRL + SPACE`, but on `MacOS`, that was triggering a Spotlight search. As the `CTRL + SPACE` works on `MacOS` also, the label is tweaked.

Closes https://github.com/kestra-io/kestra/issues/8617

---

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-05-06 13:53:04 +02:00
Loïc Mathieu
df5419f9ec fix(flows): ForEach concurrency should not be over the number of values
Fixes #8614
2025-05-06 10:23:09 +02:00
AJ Emerich
9b72ce5a18 docs(http): add mention to check for plugins before using HTTP 2025-05-06 09:24:12 +02:00
Barthélémy Ledoux
e287964416 fix(editor): check isFlow when displaying NoCode in legacy editor (#8645) 2025-05-05 17:29:25 +02:00
dependabot[bot]
5759495216 build(deps): bump software.amazon.awssdk:bom from 2.31.30 to 2.31.35
Bumps software.amazon.awssdk:bom from 2.31.30 to 2.31.35.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.35
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-05 12:08:43 +02:00
Loïc Mathieu
e89e5988ec feat(jdbc): Improve JDBC queue poll duration selection
- By default, switch from quick polling to long polling after 30s of inacitvity on a queue
- By default, configure long polling interval to 500ms
- Use steps to goes from quick polling to long polling (5 steps automatically computed)
2025-05-05 12:07:54 +02:00
github-actions[bot]
51c522976e chore(core): localize to languages other than english (#8641)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-05-05 11:54:18 +02:00
Miloš Paunović
722d94ba4b fix(core): introduce back the proper translation key (#8639) 2025-05-05 11:51:15 +02:00
Miloš Paunović
e47816c941 fix(core): amend the problem with translation key (#3577) (#8638) 2025-05-05 11:49:18 +02:00
Barthélémy Ledoux
3fdd976b5c fix(ui): conditionally render icon based on save mode (#8636) 2025-05-05 11:26:43 +02:00
Anna Geller
2f8a5903f3 fix(naming): name action file in the same way as name to avoid double display and confusion (#8634) 2025-05-05 11:10:04 +02:00
github-actions[bot]
f3250c0dc9 chore(core): localize to languages other than english (#8635)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-05-05 11:09:53 +02:00
Barthélémy Ledoux
2c58e97ec3 feat: allow multiple nocode (#8532) 2025-05-05 10:56:56 +02:00
dependabot[bot]
1bd89843ed build(deps): bump org.testcontainers:testcontainers
Bumps [org.testcontainers:testcontainers](https://github.com/testcontainers/testcontainers-java) from 1.20.6 to 1.21.0.
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testcontainers/testcontainers-java/compare/1.20.6...1.21.0)

---
updated-dependencies:
- dependency-name: org.testcontainers:testcontainers
  dependency-version: 1.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-05 09:37:22 +02:00
dependabot[bot]
c565b3b947 build(deps): bump org.jsoup:jsoup from 1.19.1 to 1.20.1
Bumps [org.jsoup:jsoup](https://github.com/jhy/jsoup) from 1.19.1 to 1.20.1.
- [Release notes](https://github.com/jhy/jsoup/releases)
- [Changelog](https://github.com/jhy/jsoup/blob/master/CHANGES.md)
- [Commits](https://github.com/jhy/jsoup/compare/jsoup-1.19.1...jsoup-1.20.1)

---
updated-dependencies:
- dependency-name: org.jsoup:jsoup
  dependency-version: 1.20.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-05 09:36:59 +02:00
dependabot[bot]
5ce8763ccf build(deps): bump org.jooq:jooq from 3.20.3 to 3.20.4
Bumps org.jooq:jooq from 3.20.3 to 3.20.4.

---
updated-dependencies:
- dependency-name: org.jooq:jooq
  dependency-version: 3.20.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-05 09:36:42 +02:00
dependabot[bot]
d52974de4b build(deps): bump com.azure:azure-sdk-bom from 1.2.33 to 1.2.34
Bumps [com.azure:azure-sdk-bom](https://github.com/azure/azure-sdk-for-java) from 1.2.33 to 1.2.34.
- [Release notes](https://github.com/azure/azure-sdk-for-java/releases)
- [Commits](https://github.com/azure/azure-sdk-for-java/compare/azure-sdk-bom_1.2.33...azure-sdk-bom_1.2.34)

---
updated-dependencies:
- dependency-name: com.azure:azure-sdk-bom
  dependency-version: 1.2.34
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-05 09:36:23 +02:00
dependabot[bot]
c9296b657a build(deps): bump com.microsoft.playwright:playwright
Bumps [com.microsoft.playwright:playwright](https://github.com/microsoft/playwright-java) from 1.51.0 to 1.52.0.
- [Release notes](https://github.com/microsoft/playwright-java/releases)
- [Commits](https://github.com/microsoft/playwright-java/compare/v1.51.0...v1.52.0)

---
updated-dependencies:
- dependency-name: com.microsoft.playwright:playwright
  dependency-version: 1.52.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-05 09:35:31 +02:00
dependabot[bot]
6f24e31c32 build(deps): bump opensearchRestVersion from 2.19.1 to 2.19.2
Bumps `opensearchRestVersion` from 2.19.1 to 2.19.2.

Updates `org.opensearch.client:opensearch-rest-client` from 2.19.1 to 2.19.2
- [Release notes](https://github.com/opensearch-project/OpenSearch/releases)
- [Changelog](https://github.com/opensearch-project/OpenSearch/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opensearch-project/OpenSearch/compare/2.19.1...2.19.2)

Updates `org.opensearch.client:opensearch-rest-high-level-client` from 2.19.1 to 2.19.2
- [Release notes](https://github.com/opensearch-project/OpenSearch/releases)
- [Changelog](https://github.com/opensearch-project/OpenSearch/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opensearch-project/OpenSearch/compare/2.19.1...2.19.2)

---
updated-dependencies:
- dependency-name: org.opensearch.client:opensearch-rest-client
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.opensearch.client:opensearch-rest-high-level-client
  dependency-version: 2.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-05 09:35:12 +02:00
dependabot[bot]
90180cc069 build(deps): bump org.fusesource.jansi:jansi from 2.4.1 to 2.4.2
Bumps [org.fusesource.jansi:jansi](https://github.com/fusesource/jansi) from 2.4.1 to 2.4.2.
- [Release notes](https://github.com/fusesource/jansi/releases)
- [Changelog](https://github.com/fusesource/jansi/blob/master/changelog.md)
- [Commits](https://github.com/fusesource/jansi/compare/jansi-2.4.1...jansi-2.4.2)

---
updated-dependencies:
- dependency-name: org.fusesource.jansi:jansi
  dependency-version: 2.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-05 09:34:48 +02:00
Florian Hussonnois
01110c51f6 fix(flows): fix regression on flow validation (#8600)
Fix regression on flow validation when injecting
plugin default values

Fix: #8600
2025-05-02 09:09:02 +02:00
Loïc Mathieu
02723aa3d9 fix(dashboards)*: SQL errors on logs data chart
- PostgreSQL needs a cast from enum to text.
- Missing quotes on the WHERE clause.

Fixes #8128
2025-04-30 18:09:45 +02:00
github-actions[bot]
3d4ebf5f3b chore(core): localize to languages other than english (#8611)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-04-30 15:44:14 +02:00
Piyush Bhaskar
266c671095 feat(iam): introduce user menu into left sidebar (#8602)
This PR is introducing the new user menu with actions inside the left sidebar.

Relates to https://github.com/kestra-io/kestra-ee/issues/2105.
Relates to https://github.com/kestra-io/kestra-ee/issues/2964.

---------

Co-authored-by: MilosPaunovic <paun992@hotmail.com>
2025-04-30 15:35:20 +02:00
Miloš Paunović
aae1315f74 fix(executions): amend storybook tests for inputs form (#8608) 2025-04-30 14:59:10 +02:00
brian-mulier-p
a9f0cae83f fix(core): Doc search is more relevant (#8601)
closes #6329
2025-04-30 14:35:37 +02:00
Satvik Kushwaha
98cfd32676 feat(executions): use schedule set input values for backfills (#7913)
Made changes to backfilling executions input to fill the default input value by the input value set within a schedule.

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-04-30 13:27:31 +02:00
Miloš Paunović
a9a2765521 chore(deps): regular dependency update (#8599)
Performing a weekly round of dependency updates in the NPM ecosystem to keep everything up to date.
2025-04-30 12:21:05 +02:00
github-actions[bot]
c0ba1831bf chore(core): localize to languages other than english (#8576)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-04-29 21:52:47 +02:00
Florian Hussonnois
a26fabe083 feat(system): add uv to kestra docker image
Use uv to install packages. UV is now required
to manage pythons dependencies for the plugin-script python.

Fix: kestra-io/kestra-ee#3527
2025-04-29 17:27:59 +02:00
Florian Hussonnois
bf41fb4613 fix(core): remove tutorial flows from anonymous report
Fix: kestra-io/kestra-ee#3387
2025-04-29 17:27:28 +02:00
Loïc Mathieu
097336ef28 feat(executions): Add workerId to each worker task attemps
Closes #7799
2025-04-29 16:13:23 +02:00
Loïc Mathieu
7467f1f7fb feat(flows): Allow to define an onPause task on the Pause task
The onPause task will be executed immediatly when the execution is paused.
Part-of: #3601
2025-04-29 15:48:59 +02:00
Loïc Mathieu
4e602021a8 feat(system)*: decrease defaut JDBC queue poll size
Decreasing it from 100 to 50 didn't show any performance hit but should lower the memory consumption now that we process the queue concurrently in the executor.

## BEFORE - pollSize=100
- 10 tx/s: 150ms
- 25 tx/s: 200ms
- 50 tx/s: 300ms
- 75 tx/s: 5.2s
- 100 tx/s: 15s

## AFTER - pollSize=50
- 10 tx/s: 150ms
- 25 tx/s: 200ms
- 50 tx/s: 300ms
- 75 tx/s: 4.8s
- 100 tx/s: 14s
2025-04-29 15:11:24 +02:00
Barthélémy Ledoux
1c23e31b6b fix: redirect to edit when saving new flow (#8560)
Co-authored-by: Piyush Bhaskar <102078527+Piyush-r-bhaskar@users.noreply.github.com>
2025-04-29 14:14:36 +02:00
Loïc Mathieu
9beb86bfb5 feat(system): add TestSuite model,taskFixture impl 2025-04-29 11:03:57 +02:00
github-actions[bot]
e0723a94b5 chore(core): localize to languages other than english (#8568)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-04-29 10:37:01 +02:00
Florian Hussonnois
475a961cec fix(executions): fix execution failure due to UnsupportedOperationException (#8563)
Fix: #8563
2025-04-29 10:34:48 +02:00
Piyush Bhaskar
c5b7c5d483 chore(triggers)*: properly handle switches for triggers disabled from within flow source (#8106)
It was not clear as to which trigger can not be enabled and why. Now, that is much more clear with the proper tooltips and disabling of switch toggling.

Closes https://github.com/kestra-io/kestra/issues/8011.
Closes https://github.com/kestra-io/kestra/issues/5736.
2025-04-29 10:31:55 +02:00
Roman Acevedo
2cf6c54b89 feat(core): forward execution labels in Flow Trigger 2025-04-28 16:55:10 +02:00
Nicolas K.
13d02ee396 fix(namespaces): namespaceFiles with same name are wrongly overwritten (#8562)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-04-28 16:14:31 +02:00
yuri
21dc831f25 chore: attempt to fix flaky tests (#8537)
SingleFlowCommandsTest:

The flow Delete -> Create -> Update sequence is weird - delete got HTTP 404.
Reworked to Create -> Update -> Delete sequence.

PurgeLogsTest:

The log repository contained the prepared single entry but also might
contain additional entries from previously logged messages.
2025-04-28 15:07:28 +02:00
Miloš Paunović
1c9f9af82a fix(triggers): amend broken filtering on triggers tab (#8553)
There was a problem with both namespace and state filters on Triggers page which is now properly sorted.

Closes https://github.com/kestra-io/kestra/issues/8529.
2025-04-28 12:07:50 +02:00
github-actions[bot]
dc5acbc5bb chore(core): localize to languages other than english (#8554)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-04-28 12:00:37 +02:00
Barthélémy Ledoux
3e23456fb7 fix(ui): update storybook editor tests with provided keys (#8550)
Co-authored-by: Piyush Bhaskar <102078527+Piyush-r-bhaskar@users.noreply.github.com>
2025-04-28 11:43:55 +02:00
Piyush Bhaskar
2943e10e7e fix(core): safely access section and identifier query params (#8542)
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
2025-04-28 14:06:39 +05:30
Barthélémy Ledoux
0ec8bd45c8 fix(ui): set isCreating to false when opening flow edit mode (#8549) 2025-04-28 10:34:36 +02:00
Nicolas K.
10e882a54a fix(core): change incorrectly used search parameter (#8534)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-04-28 10:32:57 +02:00
Piyush Bhaskar
4bc7f72fcd chore(execution): update display names for executions. (#8527) 2025-04-28 14:00:21 +05:30
dependabot[bot]
ce6770c574 build(deps): bump jacksonVersion from 2.18.3 to 2.19.0
Bumps `jacksonVersion` from 2.18.3 to 2.19.0.

Updates `com.fasterxml.jackson:jackson-bom` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.18.3...jackson-bom-2.19.0)

Updates `com.fasterxml.jackson.core:jackson-core` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-core/compare/jackson-core-2.18.3...jackson-core-2.19.0)

Updates `com.fasterxml.jackson.core:jackson-databind` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson/commits)

Updates `com.fasterxml.jackson.core:jackson-annotations` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson/commits)

Updates `com.fasterxml.jackson.module:jackson-module-parameter-names` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-modules-java8/compare/jackson-modules-java8-2.18.3...jackson-modules-java8-2.19.0)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-yaml` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-dataformats-text/compare/jackson-dataformats-text-2.18.3...jackson-dataformats-text-2.19.0)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-smile` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-dataformats-binary/compare/jackson-dataformats-binary-2.18.3...jackson-dataformats-binary-2.19.0)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-cbor` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-dataformats-binary/compare/jackson-dataformats-binary-2.18.3...jackson-dataformats-binary-2.19.0)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-ion` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-dataformat-ion/commits)

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-xml` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-dataformat-xml/compare/jackson-dataformat-xml-2.18.3...jackson-dataformat-xml-2.19.0)

Updates `com.fasterxml.jackson.datatype:jackson-datatype-guava` from 2.18.3 to 2.19.0
- [Commits](https://github.com/FasterXML/jackson-datatypes-collections/compare/jackson-datatypes-collections-2.18.3...jackson-datatypes-collections-2.19.0)

Updates `com.fasterxml.jackson.datatype:jackson-datatype-jsr310` from 2.18.3 to 2.19.0

Updates `com.fasterxml.jackson.datatype:jackson-datatype-jdk8` from 2.18.3 to 2.19.0

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.core:jackson-core
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.core:jackson-databind
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.core:jackson-annotations
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.module:jackson-module-parameter-names
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-smile
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-cbor
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-ion
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.dataformat:jackson-dataformat-xml
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-guava
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-jsr310
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-jdk8
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-28 09:42:04 +02:00
dependabot[bot]
04f32abb77 build(deps): bump org.wiremock:wiremock-jetty12 from 3.12.1 to 3.13.0
Bumps [org.wiremock:wiremock-jetty12](https://github.com/wiremock/wiremock) from 3.12.1 to 3.13.0.
- [Release notes](https://github.com/wiremock/wiremock/releases)
- [Commits](https://github.com/wiremock/wiremock/compare/3.12.1...3.13.0)

---
updated-dependencies:
- dependency-name: org.wiremock:wiremock-jetty12
  dependency-version: 3.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-28 09:41:33 +02:00
dependabot[bot]
d9ab998a03 build(deps): bump software.amazon.awssdk:bom from 2.31.25 to 2.31.30
Bumps software.amazon.awssdk:bom from 2.31.25 to 2.31.30.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.30
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-28 09:41:09 +02:00
Loïc Mathieu
e19056cad3 fix(triggers): inject default later inside the Scheduler
Today, as they are injected eagerly, they are done even if no trigger exists.
This is counter-performant, and in case the flow is an error will log each seconds.
Doing it a little later will be better.
2025-04-28 09:40:33 +02:00
Karuna Tata
897abdd89d feat(ui): Add search in internal docs (#8458)
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
2025-04-28 09:37:25 +02:00
Loïc Mathieu
2571f73811 fix(system): load OpenTelemetry lib in the app classloader
Without that, as we have it here, plugins may have class loading issue if they use OpenTelemetry internally (like in the Elasticsearch client).
2025-04-25 21:26:32 +02:00
Piyush Bhaskar
00cf7863e1 fix(ui): open link in markdown in other tab. (#8258)
* fix(ui): open link in markdown in other tab.

* chore(core): restrict attribute to external links.

Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>

---------

Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
2025-04-25 19:09:22 +05:30
rajatsingh23
3c68ff5a2d fix(ui): remove parts of filter using backspace (#8105)
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
2025-04-25 14:08:38 +02:00
AJ Emerich
10ce92c0f5 docs(flow-trigger): add note about no Pebble in conditions 2025-04-25 11:54:04 +02:00
github-actions[bot]
6baeba8f63 chore(core): localize to languages other than english (#8528)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-04-25 11:19:18 +02:00
yuri
efe836874f fix(ui): amend Absolute date filter's looks (#8501) 2025-04-25 14:24:00 +05:30
Florian Hussonnois
8746f2bd15 fix(system): change default config values for liveness
Change kestra.server.liveness.interval from 5s to 10s
to be less agressive on liveness check. Align
other default liveness configs with kafka implementation.
2025-04-25 10:28:30 +02:00
Piyush Bhaskar
34a7316d3f feat(flows): improve the display of array inputs when running an execution (#7953)
This PR is introducing a change of how the `array` inputs are displayed inside the flow run dialog, to be more user-friendly.

Closes https://github.com/kestra-io/kestra/issues/6947.

---------

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-04-25 09:40:24 +02:00
Miloš Paunović
fc452aff94 fix(flows): properly load blueprints in multi panel view (#8524)
While using the new Multi Panel view blueprints were not loading properly due to wrong paramtere being sent to action. now that's sorted.

Closes https://github.com/kestra-io/kestra/issues/8523.
2025-04-25 13:08:45 +05:30
Piyush Bhaskar
77da3fd16c chore(flows): improve the blueprints view within the flow editing panels (#7983)
Changes here consist of removing the tags from blueprint view on Multi Panel flow editor, along with couple of other UI improvements.

Closes https://github.com/kestra-io/kestra/issues/7881.

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-04-25 09:10:29 +02:00
杨利伟
03f9aa8e85 fix(jdbc): add service_id index on service_instance table 2025-04-24 18:14:15 +02:00
Loïc Mathieu
3f9f60dd26 feat(plugins): add Go Script plugin 2025-04-24 17:25:16 +02:00
lwyang
8b5f333c02 chore(system): add warn log when emit logQueue failed (#8432) 2025-04-24 16:02:12 +02:00
Loïc Mathieu
d27626fbd1 feat(plugins): add Langchain4J plugins 2025-04-24 15:42:15 +02:00
Loïc Mathieu
08f5ad2710 chore(build): add Postgres stat extension 2025-04-24 14:51:34 +02:00
Loïc Mathieu
56fa97b2e4 feat(system)!: remove the SQLServer runner
Part-of: https://github.com/kestra-io/kestra-ee/issues/3504
2025-04-24 14:50:57 +02:00
Nicolas K.
14210f1661 test(core): fix breaking change in local flow repository (#8517)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-04-24 14:34:10 +02:00
Hashim Khalifa
1fb6958e9e feat(flows): add validation for use of inputs and outputs with '-' in the name (#8379) 2025-04-24 14:31:53 +02:00
Piyush Bhaskar
5e7bc96322 chore(core): refactor component to composition API structure and with some styling (#8504) 2025-04-24 14:29:18 +05:30
Loïc Mathieu
729cf56c54 fix(core): failing DocumentationGeneratorTest.returnDoc() 2025-04-24 10:36:38 +02:00
Karuna Tata
a21cff4ba0 fix(ui): save existing flow after making changes (#8378)
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
2025-04-24 10:31:32 +02:00
Loïc Mathieu
7e590dd603 feat(plugin): add a way to provide additional type of plugins
Provide a way for plugins to define a new type of plugins.
To do that, a plugin must provide both an abstract base class that extends AdditionalPlugin and a set of concret classes.
Both the abstract base class and the concrete classes mut be inside the same plugin. This is a limitation that we may work on later by providing, for example, an SPI to add base classes to the application classloader.
2025-04-24 10:04:51 +02:00
Satvik Kushwaha
ad9f69334c fix(ui): restart trigger position for backfill column (#8246)
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
Co-authored-by: Bart Ledoux <bledoux@kestra.io>
2025-04-24 09:43:59 +02:00
Piyush Bhaskar
c7b448a9f0 chore(ui): improvement to drilldown for Default and Custom Charts. (#7885)
* chore(ui): improvement to drilldown for Default and Custom Charts.

* minor tweak

* test: fix the Barchart stories to test drilldown

---------

Co-authored-by: Bart Ledoux <bledoux@kestra.io>
2025-04-24 10:42:06 +05:30
ben8t
b1a48c17f2 Add examples with expression and trimmed values (#6154) 2025-04-23 19:57:00 +02:00
AJ Emerich
7957b9db12 fix(core): fix indexer metric description (#8500) 2025-04-23 16:48:02 +01:00
Loïc Mathieu
d58898ff34 fix(system): restrict the JdbcConcurrencyLimitService to the JDBC runner 2025-04-23 16:29:10 +02:00
AJ Emerich
1ff2e0355d docs(core-pause): update pauseDuration properties, titles, descriptions (#8495) 2025-04-23 14:34:02 +01:00
Piyush Bhaskar
9cb7cd6453 fix(flows): properly check average duration for dashboard graphs (#8457)
There was a problem on flows view with the main chart not showing proper data until user clicks on duration toggle.

Closes https://github.com/kestra-io/kestra/issues/8435.
Closes https://github.com/kestra-io/kestra-ee/issues/3499.
2025-04-23 14:23:40 +02:00
AJ Emerich
728a6a3af8 doc(basic.md): add link to configuration for kestra property variables (#8490) 2025-04-23 12:04:12 +01:00
Ludovic DEHON
ebd957f00d chore(deps): update gradle version 2025-04-23 12:52:49 +02:00
Miloš Paunović
f24734f5f2 refactor(core): pass the dynamic concurrency schema to no code editor (#8488)
There was an issue with passing hard-coded concurrency schema to be rendered in No Code editor, which is now amended and we're passing down the previously fetched one
2025-04-23 11:54:22 +02:00
Loïc Mathieu
d14ff78fd8 fix(execution)*: decode and hide nested inputs of type SECRET
Fixes #7964
2025-04-23 11:45:57 +02:00
Roman Acevedo
1506d68132 tests(system): bump sleep-short sleep time to 10s 2025-04-23 11:39:50 +02:00
Roman Acevedo
bf4310edc3 tests(system): try with different task id 2025-04-23 11:39:50 +02:00
Roman Acevedo
b4106af12b tests(system): debug flaky error of shouldPauseExecutionByQueryRunningFlows 2025-04-23 11:39:50 +02:00
Roman Acevedo
1974fd15ec tests(system): debug flaky error of shouldPauseExecutionByQueryRunningFlows 2025-04-23 11:39:50 +02:00
Roman Acevedo
ce3eea76f0 tests(webserver): fix flaky test which could query previous tests tasks 2025-04-23 11:39:50 +02:00
github-actions[bot]
636f0f61d7 chore(core): localize to languages other than english (#8485)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-04-23 11:18:49 +02:00
Loïc Mathieu
3105ddc40b fix(executions): unqueing execution must remove the execution queued
When an execution is queued in the JDBC backend, a record is inserted inside the execution_queued table, we must remove this record when we unqeue an execution.

Fixes #8448
2025-04-23 11:13:31 +02:00
Piyush Bhaskar
b779aa1aed fix(controls): adjust bottom position of contorls in multiPanelsEditor (#8465) 2025-04-23 13:26:36 +05:30
Barthélémy Ledoux
fa5a391103 feat: synchronize task edition with editor (#8433) 2025-04-23 09:43:47 +02:00
Piyush Bhaskar
b947c23402 fix(ui): full view height for single task logs (#8042)
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-04-23 09:43:19 +02:00
Miloš Paunović
54b8ff9d0c chore(deps): regular dependency update (#8484)
Performing a weekly round of dependency updates in the NPM ecosystem to keep everything up to date.
2025-04-23 09:38:02 +02:00
Loïc Mathieu
724058a06f Feat/storage outputs (#8361)
* feat(executions): Store outputs inside the internal storage (1/2)

* feat(executions): Store outputs inside the internal storage (2/2)

* feat(test): allow passing tenantId to tests

---------

Co-authored-by: Ludovic DEHON <tchiot.ludo@gmail.com>
2025-04-22 15:46:57 +02:00
Roman Acevedo
d454d133f5 tests(system): isolate SchedulerScheduleTest tests with tenantId 2025-04-22 15:41:54 +02:00
dependabot[bot]
a06421dd84 build(deps): bump co.elastic.logging:logback-ecs-encoder
Bumps [co.elastic.logging:logback-ecs-encoder](https://github.com/elastic/ecs-logging-java) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/elastic/ecs-logging-java/releases)
- [Commits](https://github.com/elastic/ecs-logging-java/compare/v1.6.0...v1.7.0)

---
updated-dependencies:
- dependency-name: co.elastic.logging:logback-ecs-encoder
  dependency-version: 1.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-22 11:23:18 +02:00
dependabot[bot]
de6fcab785 build(deps): bump org.opensearch.client:opensearch-java
Bumps [org.opensearch.client:opensearch-java](https://github.com/opensearch-project/opensearch-java) from 2.22.0 to 2.23.0.
- [Release notes](https://github.com/opensearch-project/opensearch-java/releases)
- [Changelog](https://github.com/opensearch-project/opensearch-java/blob/v2.23.0/CHANGELOG.md)
- [Commits](https://github.com/opensearch-project/opensearch-java/compare/v2.22.0...v2.23.0)

---
updated-dependencies:
- dependency-name: org.opensearch.client:opensearch-java
  dependency-version: 2.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-22 11:22:01 +02:00
dependabot[bot]
b2f68a7b97 build(deps): bump com.github.oshi:oshi-core from 6.8.0 to 6.8.1
Bumps [com.github.oshi:oshi-core](https://github.com/oshi/oshi) from 6.8.0 to 6.8.1.
- [Release notes](https://github.com/oshi/oshi/releases)
- [Changelog](https://github.com/oshi/oshi/blob/master/CHANGELOG.md)
- [Commits](https://github.com/oshi/oshi/compare/oshi-parent-6.8.0...oshi-parent-6.8.1)

---
updated-dependencies:
- dependency-name: com.github.oshi:oshi-core
  dependency-version: 6.8.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-22 11:10:17 +02:00
dependabot[bot]
01cb30f933 build(deps): bump software.amazon.awssdk:bom from 2.31.21 to 2.31.25
Bumps software.amazon.awssdk:bom from 2.31.21 to 2.31.25.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.25
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-22 11:09:06 +02:00
dependabot[bot]
d2cda63cfa build(deps): bump flyingSaucerVersion from 9.11.6 to 9.12.0
Bumps `flyingSaucerVersion` from 9.11.6 to 9.12.0.

Updates `org.xhtmlrenderer:flying-saucer-core` from 9.11.6 to 9.12.0
- [Release notes](https://github.com/flyingsaucerproject/flyingsaucer/releases)
- [Changelog](https://github.com/flyingsaucerproject/flyingsaucer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/flyingsaucerproject/flyingsaucer/compare/v9.11.6...v9.12.0)

Updates `org.xhtmlrenderer:flying-saucer-pdf` from 9.11.6 to 9.12.0
- [Release notes](https://github.com/flyingsaucerproject/flyingsaucer/releases)
- [Changelog](https://github.com/flyingsaucerproject/flyingsaucer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/flyingsaucerproject/flyingsaucer/compare/v9.11.6...v9.12.0)

---
updated-dependencies:
- dependency-name: org.xhtmlrenderer:flying-saucer-core
  dependency-version: 9.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.xhtmlrenderer:flying-saucer-pdf
  dependency-version: 9.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-22 11:08:11 +02:00
dependabot[bot]
f89187db6a build(deps): bump io.micronaut.platform:micronaut-platform
Bumps [io.micronaut.platform:micronaut-platform](https://github.com/micronaut-projects/micronaut-platform) from 4.8.0 to 4.8.2.
- [Release notes](https://github.com/micronaut-projects/micronaut-platform/releases)
- [Commits](https://github.com/micronaut-projects/micronaut-platform/compare/v4.8.0...v4.8.2)

---
updated-dependencies:
- dependency-name: io.micronaut.platform:micronaut-platform
  dependency-version: 4.8.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-22 11:07:01 +02:00
dependabot[bot]
8e4fe892e9 build(deps): bump com.google.guava:guava from 33.4.7-jre to 33.4.8-jre
Bumps [com.google.guava:guava](https://github.com/google/guava) from 33.4.7-jre to 33.4.8-jre.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

---
updated-dependencies:
- dependency-name: com.google.guava:guava
  dependency-version: 33.4.8-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-22 11:04:45 +02:00
Barthélémy Ledoux
eb13dce0ff fix(ui): use creating=true instead of identifier=new (#8443) 2025-04-22 09:46:02 +02:00
Florian Hussonnois
a14518b810 refactor(plugin): add dedicated service to parse tasks log line
Add new TaskLogLineMatcher class for matching and
 capturing structured data from task execution logs.

Related-to: kestra-io/kestra-ee#3441
2025-04-22 09:37:32 +02:00
Piyush Bhaskar
c64f15a035 fix(container): update tab container classes for better layout handling. (#8456) 2025-04-22 12:19:29 +05:30
Piyush Bhaskar
f79541616e chore(ui): Improve the display of Resume/Kill executions (#8227)
* chore(ui): Improve the display of Resume/Kill executions

* minor tweak

---------

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
2025-04-21 11:22:35 +05:30
Frank Tianyu Zeng
cb6a6bfd91 fix(revision): restore side-by-side view in revision history after flow edit (#8439)
Co-authored-by: Piyush Bhaskar <102078527+Piyush-r-bhaskar@users.noreply.github.com>
2025-04-21 11:12:36 +05:30
Ludovic DEHON
b2ae2ff6f7 feat(build): fix some sonar alert 2025-04-20 22:23:41 +02:00
Ludovic DEHON
a7836ca673 feat(build): add sonar 2025-04-19 00:49:09 +02:00
YannC
7bc60a1056 fix(ui): add new property in filters (#8444) 2025-04-18 21:27:55 +02:00
YannC
09943a1e7b fix(webserver): set ids parameters as body instead of queryvalue (#8438) 2025-04-18 11:58:11 +02:00
Sayed Murtadha Ahmed
8b6af7a808 chore(core)*: make sure that notifications with large message text are closeable (#8431)
There was a problem when an error message is too big, the toaster could not be closed. This change is amending that issue.

Closes https://github.com/kestra-io/kestra/issues/8352.
2025-04-17 11:44:17 +02:00
YannC.
e74e7ff8e5 fix(ui): correct path for namespace files on namespace page
close #8140
2025-04-17 10:34:46 +02:00
Anna Geller
9adf3a5444 fix(docs): improve PublishMetrics example and basic.md KV doc (#8427) 2025-04-16 20:02:36 +02:00
Karuna Tata
c069b2fbb3 chore(core)*: deboucing task validation from no code editor (#8418)
There was an issue when a user edited a task from the No Code editor—the validation endpoint was being called excessively, instead of waiting for the user to finish typing. This has now been resolved with this PR.

Closes https://github.com/kestra-io/kestra/issues/7073.

Co-authored-by: MilosPaunovic <paun992@hotmail.com>
2025-04-16 12:31:03 +02:00
YannC
534b7f4ec7 refactor(core): changes to improve openapi spec
* better method name
* correct annotation to descript body
2025-04-16 12:26:32 +02:00
Miloš Paunović
7b1ee4a9e0 refactor(core): prevent inheriting unused attributes in components (#8419)
Remove default inheriting of attributes in Vue components, which are not used. This pollutes the console with warnings and it's not necessary, so this PR is solving the problem.
2025-04-16 12:08:45 +02:00
Miloš Paunović
38a9ebcbef refactor(core): replace deprecated vue flow options parameter (#8417)
Remove usage of the deprecated options object parameter with the id one, as per the latest API guidelines. This change ensures compatibility with future versions and removes the related console warning.

Related to #7804.
2025-04-16 10:29:47 +02:00
weibo1
eea47c6e40 feat(system): add duration metrics for handle() method 2025-04-16 09:05:00 +02:00
weibo1
e1c4ae22f2 feat(system): add index to commonly queried fields in the WHERE conditions of the triggers table 2025-04-16 09:05:00 +02:00
Miloš Paunović
b7861a139e chore(deps): regular dependency update (#8415)
Performing a weekly round of dependency updates in the NPM ecosystem to keep everything up to date.
2025-04-16 08:46:32 +02:00
Miloš Paunović
954d64ecaa fix(core)*: allow horizontal scrolling of tabs in multi panel view (#8414)
If there are multiple tabs opened in a single panel of the new multi panel view,  there was no ability to scroll and see the overflowing ones. With changes in this PR, users can now do just that.

Closes https://github.com/kestra-io/kestra/issues/8270.
2025-04-16 12:05:37 +05:30
Karuna Tata
f61ba36023 feat(core)*: allow moving of entire panels (#8377)
Changes in this pull request now allow users to move entire panels where ever they want, plus, there are `Move right` and `Move left` options in the context menu.

Closes https://github.com/kestra-io/kestra/issues/8272.

Co-authored-by: MilosPaunovic <paun992@hotmail.com>
2025-04-16 07:47:09 +02:00
Loïc Mathieu
fbd989ccab feat(core): allow to specify Pause task resume behavior (#8242)
When a pause task is resumed either because it wait until the end of it's duration or is resumed manually, it can now use a behavior to describe what to do next: resume, warn, fail, or cancel the execution.

Fixes #8242
2025-04-15 17:39:53 +02:00
yuri
12affd4b4b fix(build): amend Node Gradle to reflect changes (#7970) 2025-04-15 15:15:34 +02:00
Satvik Kushwaha
b75730a0ca chore(dashboards)*: amend hover color of table top buttons on dashboard (#8388)
Tables on main dashboard which have the `See all` buttons needed UI tweaking of color on hover, which is handled in this pull request.

Closes https://github.com/kestra-io/kestra/issues/8376.

Co-authored-by: MilosPaunovic <paun992@hotmail.com>
2025-04-15 14:14:49 +02:00
Barthélémy Ledoux
4170615765 fix(ui): navigation between flow editor and tabs - blank screen (#8392) 2025-04-15 11:41:18 +02:00
Barthélémy Ledoux
5cfb6aa1f5 test(ui): ignore unhandled canceled promises in storybook (#8394) 2025-04-15 11:39:39 +02:00
AJ Emerich
41d660e18e docs(core): update plugin titles and descriptions (#8390) 2025-04-15 11:22:47 +02:00
yuri
8af4f1928a chore(webserver): amend copy&pasted description (#8346) 2025-04-15 11:12:09 +02:00
github-actions[bot]
1488caccc7 chore(core): localize to languages other than english (#8391)
Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference.

Co-authored-by: GitHub Action <actions@github.com>
2025-04-15 11:09:33 +02:00
Karuna Tata
85fc48963f feat(core): add a confirmation dialog before leaving the settings page (#8365)
If the user changed something on the `Settings` page and then just navigated to another page, all new changes would all be lost. This PR is adding a confirmation dialog before route leave, if there are any changes made, to confirm either saving or discarding them.

Closes https://github.com/kestra-io/kestra/issues/8364.

Co-authored-by: MilosPaunovic <paun992@hotmail.com>
2025-04-15 10:31:49 +02:00
Barthélémy Ledoux
b706dec9d2 test(core): make storybook tests pass with less warnings (#8382)
Lots of warnings that we can see in the UI unit tests make them flaky. In this PR we're trying to avoid pollution as much as possible so we can at least test.

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-04-15 10:16:14 +02:00
Karuna Tata
ceac4d38f9 feat(core)*: implement redirection to flow creation page on skipping tutorial (#8333)
When a user clicks the `Skip tutorial` button, it just does that, shuts the tutorial down but leaves the user on the same page. This change will redirect users to `Flow Creation` page if the `Skip Tutorial` button is clicked.

Closes https://github.com/kestra-io/kestra/issues/8326.

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-04-15 08:11:41 +02:00
dependabot[bot]
ec7bf52e08 build(deps-dev): bump vite in /ui in the npm_and_yarn group (#8362)
Bumps the npm_and_yarn group in /ui with 1 update: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).


Updates `vite` from 6.2.5 to 6.2.6
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.2.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.2.6
  dependency-type: direct:development
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-14 15:22:09 +02:00
Loïc Mathieu
247594299c feat(system)!: Describe our internal metrics
Add a description to all our internal metrics.

BREAKING CHANGE: the following metrics has been removed:
- executor.taskrun.next.count
- executor.workertaskresult.count

The metric scheduler.execution.running.duration has been renamed to scheduler.execution.lock.duration
2025-04-14 15:17:23 +02:00
Loïc Mathieu
513139976c feat(system): Allow to describe metrics (#1989) 2025-04-14 15:17:23 +02:00
Miloš Paunović
2cab9de57c refactor(namespaces): remove the unused maximize property (#8380)
There is no more need for `maximize` property to be passed for locked tabs, and therefore it's removed in this commit.
2025-04-14 13:55:45 +02:00
dependabot[bot]
cfae13c045 build(deps): bump io.micrometer:micrometer-core from 1.14.5 to 1.14.6
Bumps [io.micrometer:micrometer-core](https://github.com/micrometer-metrics/micrometer) from 1.14.5 to 1.14.6.
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- [Commits](https://github.com/micrometer-metrics/micrometer/compare/v1.14.5...v1.14.6)

---
updated-dependencies:
- dependency-name: io.micrometer:micrometer-core
  dependency-version: 1.14.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 11:55:59 +02:00
dependabot[bot]
6190f8774a build(deps): bump com.google.guava:guava from 33.4.6-jre to 33.4.7-jre
Bumps [com.google.guava:guava](https://github.com/google/guava) from 33.4.6-jre to 33.4.7-jre.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

---
updated-dependencies:
- dependency-name: com.google.guava:guava
  dependency-version: 33.4.7-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 10:55:50 +02:00
dependabot[bot]
b98a0a783d build(deps): bump commons-io:commons-io from 2.18.0 to 2.19.0
Bumps commons-io:commons-io from 2.18.0 to 2.19.0.

---
updated-dependencies:
- dependency-name: commons-io:commons-io
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 10:10:24 +02:00
dependabot[bot]
3da2dc6257 build(deps): bump flyingSaucerVersion from 9.11.5 to 9.11.6
Bumps `flyingSaucerVersion` from 9.11.5 to 9.11.6.

Updates `org.xhtmlrenderer:flying-saucer-core` from 9.11.5 to 9.11.6
- [Release notes](https://github.com/flyingsaucerproject/flyingsaucer/releases)
- [Changelog](https://github.com/flyingsaucerproject/flyingsaucer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/flyingsaucerproject/flyingsaucer/compare/v9.11.5...v9.11.6)

Updates `org.xhtmlrenderer:flying-saucer-pdf` from 9.11.5 to 9.11.6
- [Release notes](https://github.com/flyingsaucerproject/flyingsaucer/releases)
- [Changelog](https://github.com/flyingsaucerproject/flyingsaucer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/flyingsaucerproject/flyingsaucer/compare/v9.11.5...v9.11.6)

---
updated-dependencies:
- dependency-name: org.xhtmlrenderer:flying-saucer-core
  dependency-version: 9.11.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.xhtmlrenderer:flying-saucer-pdf
  dependency-version: 9.11.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 10:10:06 +02:00
dependabot[bot]
6feb027696 build(deps): bump org.aspectj:aspectjweaver from 1.9.23 to 1.9.24
Bumps [org.aspectj:aspectjweaver](https://github.com/eclipse/org.aspectj) from 1.9.23 to 1.9.24.
- [Release notes](https://github.com/eclipse/org.aspectj/releases)
- [Commits](https://github.com/eclipse/org.aspectj/commits)

---
updated-dependencies:
- dependency-name: org.aspectj:aspectjweaver
  dependency-version: 1.9.24
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 10:09:21 +02:00
dependabot[bot]
83d6095669 build(deps): bump software.amazon.awssdk:bom from 2.31.16 to 2.31.21
Bumps software.amazon.awssdk:bom from 2.31.16 to 2.31.21.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.31.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 10:09:02 +02:00
dependabot[bot]
444e3d2a77 build(deps): bump software.amazon.awssdk.crt:aws-crt
Bumps [software.amazon.awssdk.crt:aws-crt](https://github.com/awslabs/aws-crt-java) from 0.37.0 to 0.38.1.
- [Release notes](https://github.com/awslabs/aws-crt-java/releases)
- [Commits](https://github.com/awslabs/aws-crt-java/compare/v0.37.0...v0.38.1)

---
updated-dependencies:
- dependency-name: software.amazon.awssdk.crt:aws-crt
  dependency-version: 0.38.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 10:08:28 +02:00
Satvik Kushwaha
752405ac78 fix(flows)*: amend text color problem in no code editor on firefox (#8367)
There was an issue with title color of tasks on the `No Code` editor (which stayed dark no matter the mode selected), but only viewed in `Firefox` browser. That is sorted out with this pull request.

Closes https://github.com/kestra-io/kestra/issues/8327.

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
2025-04-14 09:35:39 +02:00
Miloš Paunović
860c1b218c feat(core)*: allow closing all tabs at once in a single panel (#8360)
Adds the ability to close all tabs in a single panel with a single click, improving usability and eliminating the need to close each tab individually.

Closes https://github.com/kestra-io/kestra/issues/8273.
2025-04-11 15:14:04 +02:00
Barthélémy Ledoux
0bd017556a fix(ui): command array should display properly in no-code (#8349) 2025-04-11 14:47:17 +02:00
Miloš Paunović
63ec5cab27 build(core): update commit message and description for translation-related pull requests (#8358)
This change updates the commit message and description generated by the translation CI process to be more descriptive and consistent with our commit conventions. It improves the clarity and traceability of automated translation updates in the commit history.
2025-04-11 14:38:31 +02:00
brian-mulier-p
e73f15a538 fix(core): bring back documentation on some plugins (#8354)
swagger is now resolved from Kestra classpath

closes #8265
2025-04-11 13:00:53 +02:00
github-actions[bot]
f871fa838e chore(translations)*: localize to languages other than english (#8353) 2025-04-11 12:11:38 +02:00
Miloš Paunović
c2028759e4 feat(core)*: introduce a dropdown menu for each panel (#8351)
This is the initial work to support the two related issues mentioned above, which is introducing the context menu for each tab panel, which will give us the place to list related actions.

Relates to https://github.com/kestra-io/kestra/issues/8272.
Relates to https://github.com/kestra-io/kestra/issues/8273.
2025-04-11 11:56:04 +02:00
Nicolas K.
21d6e0fa62 test(system): rework concurrency paused tests so they actually test t… (#8339)
* test(system): rework concurrency paused tests so they actually test the pause + concurrency behavior

* test(system): Add a flow name check in the queue because kafka queue is not cleaned between tests

---------

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-04-11 11:16:01 +02:00
Bart Ledoux
ab666bff11 test(ui): failing test for autocompletiona after contributor's PR 2025-04-11 09:42:23 +02:00
Miloš Paunović
92c082e2e0 chore(flows)*: hide horizontal scroll on editor based inputs (#8347)
There was always a horizontal scrollbar present at editor compnent when used as input field, which was previously handled for the No Code editor in https://github.com/kestra-io/kestra/pull/8216.

Relates to https://github.com/kestra-io/kestra-ee/issues/3404.
2025-04-11 08:09:22 +02:00
Frank Tianyu Zeng
5a3a54fd57 feat(variables): add missing functions to editor autocompletion (#8245)
closes #7733

---------

Co-authored-by: brian.mulier <bmmulier@hotmail.fr>
2025-04-10 23:32:40 +02:00
Florian Hussonnois
1576051ebb fix(flow): re-enable NotEmpty constraint on property tasks for Sequential 2025-04-10 18:03:35 +02:00
Loïc Mathieu
4ec2a5d064 chore(system): don't emit two time a workertaskresult for RUNNING
We emit a WorkerTaskResult in RUNNING, then create an attempt, emit a new WorkerTaskResult with the attemps and then start running the task.
We can only emit one time a WorkerTaskResult as the second would be emitted microseconds after so it's just noise.
2025-04-10 18:02:42 +02:00
Florian Hussonnois
846e20a100 fix(flow): enhance error handling when injecting plugin defaults
Add a new checked exception FlowProcessingException to enhance error
handling when parsing, validating a flow, and injecting plugin defaults.

Related-to: #7894
2025-04-10 17:13:40 +02:00
Barthélémy Ledoux
433a332123 feat: use TaskTasks.vue to show subtask (#8332) 2025-04-10 16:59:10 +02:00
Loïc Mathieu
9b8b240d7c feat(core): use a fixed-size mask to mask secrets (#8131)
Fixes 8131
2025-04-10 15:17:05 +02:00
Miloš Paunović
e6937c4a8c feat(core)*: close code tab if file is deleted (#8331)
In the new multi panel view, if we have `code` tab opened and delete that file from `files` panel, we'll automatically close the opened tab for the file in question.

Closes https://github.com/kestra-io/kestra/issues/8271.
2025-04-10 14:51:43 +02:00
Nicolas K.
70dbe6a219 test(system): fix flaky runner test by adding sleep in subtask (#8329)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-04-10 14:41:21 +02:00
Mathieu Gabelle
8ceee4cfdc refactor: migrate plugin.core flowable tasks to dynamic proeprties (#8313)
* refactor: migrate plugin.core flowable tasks to dynamic proeprties

migrated properties to dynamic properties if possible
updated tests accordingly
remove unused import and fix sonar issues
2025-04-10 13:59:57 +02:00
Florian Hussonnois
b97347df97 fix(flow): handle parsing error when reading flows from repository
This commit fixes NPE in JdbcExecutor that can occurred when
reading invalid an flow, and add better handling of parsing error in JDBC flow
repositories.

Related-to: #7894
2025-04-10 13:28:11 +02:00
Piyush Bhaskar
b177a1f304 chore(ui): Add a trigger from Triggers tab (#7754)
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
2025-04-10 11:11:34 +02:00
Piyush Bhaskar
999406aee4 fix(ui): uniform scrollbar across UI (#7758)
* scrollbar  uniforming

* fix(ui): uniform scrollbar across ui.

* minor tweaks

* minor tweak

---------

Co-authored-by: Miloš Paunović <paun992@hotmail.com>
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
2025-04-10 11:10:46 +02:00
Barthélémy Ledoux
31fd0303b5 fix: make monaco composition API (#8320)
* refactor: make monaco composition API

* fix kv

* rename var in monaco

* enable autocomplete in new panel

* fix: set theme even in diff mode

* refactor: avoid using computed when unnecessary
2025-04-10 10:57:28 +02:00
Florian Hussonnois
32b4a9e0be fix(core): handle parsing error when reading flows from repository
This commit fixes a regression after applying plugin default
versions in the AbstractJdbcFlowRepository
2025-04-09 22:58:24 +02:00
Barthélémy Ledoux
2c411a27cc build: use storybook test addon to get coverage (#8316) 2025-04-09 20:53:53 +02:00
Florian Hussonnois
504ff282ef fix: add missing indices for service instance table 2025-04-09 19:01:42 +02:00
Nicolas K.
365d82eb96 feat(#233)!: remove warningOnError behavior (#8321)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-04-09 18:00:20 +02:00
YannC
9a67466d9c chore(deps): upgrade micronaut-platform to 4.8.0 (#8232)
* chore(deps): upgrade micronaut-platform to 4.8.0

* fix: http client version enforcement is not needed anymore as docker-java as updated the dependency

* fix: make applicationContext protected in SchedulerPollingTriggerTest

* fix: upgrade docker-java version to 3.5.0

* fix: make some method protected in the AbstractRunnerTest so it can be override
2025-04-09 17:06:38 +02:00
Nicolas K.
a04db6510b feat(makefile): add pull-plugin script and fixe clone-plugin script (#8283)
Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-04-09 17:03:05 +02:00
Will Russell
ab2fea660a doc(Core): task example indentation error 2025-04-09 15:25:25 +01:00
ben8t
1c9016ba45 fix(sanitycheck): update flows id and namespace
* fix:sleep assert comparison

* fix:edit sanitycheck according to new process

* fix:typo
2025-04-09 14:46:47 +02:00
Miloš Paunović
935ff944a5 fix(ui): make sure that dropping tab places it into right place (#8315)
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
2025-04-09 14:41:01 +02:00
Will Russell
fd4667383c doc(Devcontainer): link instructions to contributing guide 2025-04-09 12:15:44 +01:00
Loïc Mathieu
5bec2fa8b3 feat(cli,core)!: change KESTRA_ env prefix by ENV_
This avoid possible security issue as you can use env var to override Kestra configuration properties and Kestra related configuration properties starts with `kestra`.

Fixes https://github.com/kestra-io/kestra-ee/issues/3131
2025-04-09 12:48:54 +02:00
Piyush Bhaskar
c24fcfd0ca chore(ui): Add a trigger from Triggers tab (#7754)
Co-authored-by: Miloš Paunović <paun992@hotmail.com>
Co-authored-by: Barthélémy Ledoux <ledouxb@me.com>
2025-04-09 11:25:34 +02:00
Piyush Bhaskar
22424c69b6 chore(ui): improve the filter label colors on hover (#8141) 2025-04-09 11:17:18 +02:00
Bart Ledoux
938b3cc08b tests: fix storybook multipanel test 2025-04-09 11:15:14 +02:00
Piyush Bhaskar
5fdf2f3085 chore(ui): amend scrollbar issue on the no code editor fields (#8216) 2025-04-09 11:10:07 +02:00
Tanvir Ahmed
062957982b fix: [#8282] - Fixed issue with Devcontainer not running on arm64 architecture (#8285)
* fix: [#8282] - Fixed issue with Devcontainer not running on arm64 architecture

* chore: Updated implementation of dynamic install of Java JDK
2025-04-09 10:07:16 +01:00
Bart Ledoux
c08213b48d ci: remove some odd arguments to frontend checkout 2025-04-09 10:49:25 +02:00
Karuna Tata
152d96f018 chore(ui): remove reorder buttons when there's only one value in no code arrays (#8266) 2025-04-09 09:52:02 +02:00
AJ Emerich
4865843b10 fix(docs): add titles and examples to Dashboard chart types (#8233)
* fix(docs): add titles to Dashboard chart types

* fix(docs): add examples to Dashboard chart types

* fix(docs): add bar chart example
2025-04-09 09:19:46 +02:00
Miloš Paunović
47309a0782 chore(deps): regular dependency update (#8310) 2025-04-09 08:11:58 +02:00
Bart Ledoux
7d7340b4ba fix: remove the big plus when dragging 2025-04-08 16:11:58 +02:00
Bart Ledoux
eb1509959c chore: remove console.log drop 2025-04-08 15:50:59 +02:00
Nicolas K.
5285bea930 feat(Unit Tests) #8171 convert hamcrest to assertj (#8276)
* feat(Unit Tests) #8171 convert hamcrest to assertj

* fix(Unit Tests) #8171 failing unit test after assertj migration

---------

Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
2025-04-08 15:48:54 +02:00
Bart Ledoux
cc5a1c9f68 fix: remove props warning in flow editor 2025-04-08 15:47:04 +02:00
MilosPaunovic
725e5e5d78 fix(ui): allow tab button to take effect while using editor 2025-04-08 15:09:30 +02:00
Bart Ledoux
56b903b8fd fix: repair docs home page 2025-04-08 15:05:08 +02:00
Miloš Paunović
21c0c86238 fix(ui): amend namespace files creation & editing problems (#8279) 2025-04-08 13:43:20 +02:00
Miloš Paunović
65ab695001 chore(ui): pass prop to maximize the height of namespace file editor (#8278) 2025-04-08 13:34:33 +02:00
Miloš Paunović
1310e59cf9 chore(ui): amend the sizing of editor panels (#8277) 2025-04-08 13:30:22 +02:00
YannC
c35352e2b4 feat: Deprecated BOOLEAN input for new BOOL input with no undefined state (#8257)
close #8225
2025-04-08 10:22:11 +02:00
Miloš Paunović
59589b1c2d refactor(ui): uniform the namespace components for oss and ee versions (#8256) 2025-04-08 09:29:19 +02:00
brian.mulier
4729430a00 feat(ui): ability to hide secret value when typing in secrets
closes kestra-io/kestra-ee#3358
2025-04-08 00:10:22 +02:00
brian.mulier
1aa37d5756 fix(core): duration defaults are rendered as duration string instead of timestamp
closes #3742
2025-04-07 22:06:24 +02:00
brian.mulier
1a121951d6 fix(jdbc): conflict on migration numbers 2025-04-07 21:59:14 +02:00
YannC
92ee3f749e fix: correct version migration for H2 sql file 2025-04-07 19:20:49 +02:00
1474 changed files with 77755 additions and 51339 deletions

View File

@@ -1,5 +1,6 @@
FROM ubuntu:24.04
ARG BUILDPLATFORM
ARG DEBIAN_FRONTEND=noninteractive
USER root
@@ -31,9 +32,23 @@ ENV SHELL=/bin/zsh
# --------------------------------------
# Java
# --------------------------------------
RUN wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb
RUN dpkg -i ./jdk-21_linux-x64_bin.deb
ENV JAVA_HOME=/usr/java/jdk-21-oracle-x64
ARG OS_ARCHITECTURE
RUN mkdir -p /usr/java
RUN echo "Building on platform: $BUILDPLATFORM"
RUN case "$BUILDPLATFORM" in \
"linux/amd64") OS_ARCHITECTURE="x64_linux" ;; \
"linux/arm64") OS_ARCHITECTURE="aarch64_linux" ;; \
"darwin/amd64") OS_ARCHITECTURE="x64_mac" ;; \
"darwin/arm64") OS_ARCHITECTURE="aarch64_mac" ;; \
*) echo "Unsupported BUILDPLATFORM: $BUILDPLATFORM" && exit 1 ;; \
esac && \
wget "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.7%2B6/OpenJDK21U-jdk_${OS_ARCHITECTURE}_hotspot_21.0.7_6.tar.gz" && \
mv OpenJDK21U-jdk_${OS_ARCHITECTURE}_hotspot_21.0.7_6.tar.gz openjdk-21.0.7.tar.gz
RUN tar -xzvf openjdk-21.0.7.tar.gz && \
mv jdk-21.0.7+6 jdk-21 && \
mv jdk-21 /usr/java/
ENV JAVA_HOME=/usr/java/jdk-21
ENV PATH="$PATH:$JAVA_HOME/bin"
# Will load a custom configuration file for Micronaut
ENV MICRONAUT_ENVIRONMENTS=local,override

View File

@@ -27,11 +27,6 @@ In the meantime, you can move onto the next step...
- Create a `.env.development.local` file in the `ui` folder and paste the following:
```bash
# This lets the frontend know what the backend URL is but you are free to change this to your actual server URL e.g. hosted version of Kestra.
VITE_APP_API_URL=http://localhost:8080
```
- Navigate into the `ui` folder and run `npm install` to install the dependencies for the frontend project.
- Now go to the `cli/src/main/resources` folder and create a `application-override.yml` file.
@@ -74,9 +69,6 @@ kestra:
path: /tmp/kestra-wd/tmp
anonymous-usage-report:
enabled: false
server:
basic-auth:
enabled: false
datasources:
postgres:

View File

@@ -39,7 +39,7 @@
"yoavbls.pretty-ts-errors",
"github.vscode-github-actions",
"vscjava.vscode-java-pack",
"ms-azuretools.vscode-docker"
"docker.docker"
]
}
}

View File

@@ -37,6 +37,10 @@ The following dependencies are required to build Kestra locally:
- Docker & Docker Compose
- an IDE (Intellij IDEA, Eclipse or VS Code)
Thanks to the Kestra community, if using VSCode, you can also start development on either the frontend or backend with a bootstrapped docker container without the need to manually set up the environment.
Check out the [README](../.devcontainer/README.md) for set-up instructions and the associated [Dockerfile](../.devcontainer/Dockerfile) in the respository to get started.
To start contributing:
- [Fork](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) the repository
- Clone the fork on your workstation:
@@ -46,7 +50,7 @@ git clone git@github.com:{YOUR_USERNAME}/kestra.git
cd kestra
```
#### Develop backend
#### Develop on the backend
The backend is made with [Micronaut](https://micronaut.io).
Open the cloned repository in your favorite IDE. In most of decent IDEs, Gradle build will be detected and all dependencies will be downloaded.
@@ -72,11 +76,10 @@ python3 -m pip install virtualenv
```
#### Develop frontend
#### Develop on the frontend
The frontend is made with [Vue.js](https://vuejs.org/) and located on the `/ui` folder.
- `npm install`
- create a file `ui/.env.development.local` with content `VITE_APP_API_URL=http://localhost:8080` (or your actual server url)
- `npm run dev` will start the development server with hot reload.
- The server start by default on port 5173 and is reachable on `http://localhost:5173`
- You can run `npm run build` in order to build the front-end that will be delivered from the backend (without running the `npm run dev`) above.

View File

@@ -1,26 +1,31 @@
# See GitHub's docs for more information on this file:
# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
day: "wednesday"
time: "08:00"
timezone: "Europe/Paris"
open-pull-requests-limit: 50
labels:
- "dependency-upgrade"
open-pull-requests-limit: 50
# Maintain dependencies for Gradle modules
- package-ecosystem: "gradle"
directory: "/"
schedule:
# Check for updates to Gradle modules every week
interval: "weekly"
day: "wednesday"
time: "08:00"
timezone: "Europe/Paris"
open-pull-requests-limit: 50
labels:
- "dependency-upgrade"
open-pull-requests-limit: 50
# Maintain dependencies for NPM modules
- package-ecosystem: "npm"
@@ -31,8 +36,15 @@ updates:
time: "08:00"
timezone: "Europe/Paris"
open-pull-requests-limit: 50
labels: ["dependency-upgrade"]
labels:
- "dependency-upgrade"
ignore:
# Ignore updates of version 1.x, as we're using beta of 2.x
# Ignore updates of version 1.x, as we're using the beta of 2.x (still in beta)
- dependency-name: "vue-virtual-scroller"
versions: ["1.x"]
versions:
- "1.x"
# Ignore updates to monaco-yaml, version is pinned to 5.3.1 due to patch-package script additions
- dependency-name: "monaco-yaml"
versions:
- ">=5.3.2"

View File

@@ -43,9 +43,6 @@ jobs:
with:
node-version: "20.x"
- name: Check keys matching
run: node ui/src/translations/check.js
- name: Set up Git
run: |
git config --global user.name "GitHub Action"
@@ -62,6 +59,9 @@ jobs:
echo "No changes to commit. Exiting with success."
exit 0
fi
git commit -m "chore(translations): localize to languages other than English"
git commit -m "chore(core): localize to languages other than english" -m "Extended localization support by adding translations for multiple languages using English as the base. This enhances accessibility and usability for non-English-speaking users while keeping English as the source reference."
git push -u origin $BRANCH_NAME || (git push origin --delete $BRANCH_NAME && git push -u origin $BRANCH_NAME)
gh pr create --title "Translations from en.json" --body "This PR was created automatically by a GitHub Action." --base develop --head $BRANCH_NAME --assignee anna-geller --reviewer anna-geller
gh pr create --title "Translations from en.json" --body $'This PR was created automatically by a GitHub Action.\n\nSomeone from the @kestra-io/frontend team needs to review and merge.' --base ${{ github.ref_name }} --head $BRANCH_NAME
- name: Check keys matching
run: node ui/src/translations/check.js

View File

@@ -62,7 +62,7 @@ jobs:
- name: Build with Gradle
if: ${{ matrix.language == 'java' }}
run: ./gradlew testClasses -x :ui:installFrontend -x :ui:assembleFrontend
run: ./gradlew testClasses -x :ui:assembleFrontend
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)

View File

@@ -7,7 +7,7 @@ on:
description: 'Retag latest Docker images'
required: true
type: string
default: "true"
default: "false"
options:
- "true"
- "false"
@@ -51,7 +51,7 @@ jobs:
python-libs: ""
- name: ""
plugins: ${{needs.plugins.outputs.plugins}}
packages: python3 python3-venv python-is-python3 python3-pip nodejs npm curl zip unzip jattach
packages: python3 python-is-python3 python3-pip curl jattach
python-libs: kestra
steps:
- uses: actions/checkout@v4
@@ -69,7 +69,7 @@ jobs:
fi
if [[ "${{ env.PLUGIN_VERSION }}" == *"-SNAPSHOT" ]]; then
echo "plugins=--repositories=https://s01.oss.sonatype.org/content/repositories/snapshots ${{ matrix.image.plugins }}" >> $GITHUB_OUTPUT;
echo "plugins=--repositories=https://central.sonatype.com/repository/maven-snapshots/ ${{ matrix.image.plugins }}" >> $GITHUB_OUTPUT;
else
echo "plugins=${{ matrix.image.plugins }}" >> $GITHUB_OUTPUT
fi

View File

@@ -1,42 +1,36 @@
name: 'Reusable Workflow for Running End-to-End Tests'
name: 'E2E tests revival'
description: 'New E2E tests implementation started by Roman. Based on playwright in npm UI project, tests Kestra OSS develop docker image. These tests are written from zero, lets make them unflaky from the start!.'
on:
schedule:
- cron: "0 * * * *" # Every hour
workflow_call:
inputs:
tags:
description: "Tags used for filtering tests to include for QA."
type: string
required: true
docker-artifact-name:
description: "The GitHub artifact containing the Kestra docker image."
type: string
noInputYet:
description: 'not input yet.'
required: false
docker-image-tag:
description: "The Docker image Tag for Kestra"
default: 'kestra/kestra:develop'
type: string
required: true
backend:
description: "The Kestra backend type to be used for E2E tests."
type: string
required: true
default: "postgres"
secrets:
GITHUB_AUTH_TOKEN:
description: "The GitHub Token."
required: true
GOOGLE_SERVICE_ACCOUNT:
description: "The Google Service Account."
default: "no input"
workflow_dispatch:
inputs:
noInputYet:
description: 'not input yet.'
required: false
type: string
default: "no input"
jobs:
check:
timeout-minutes: 60
timeout-minutes: 10
runs-on: ubuntu-latest
env:
GOOGLE_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
E2E_TEST_DOCKER_DIR: ./kestra/e2e-tests/docker
KESTRA_BASE_URL: http://127.27.27.27:8080/ui/
steps:
# Checkout kestra
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Checkout kestra
uses: actions/checkout@v4
with:
@@ -44,115 +38,49 @@ jobs:
# Setup build
- uses: kestra-io/actions/.github/actions/setup-build@main
name: Setup - Build
id: build
with:
java-enabled: true
node-enabled: true
python-enabled: true
# Get Docker Image
- name: Download Kestra Image
if: inputs.docker-artifact-name != ''
uses: actions/download-artifact@v4
with:
name: ${{ inputs.docker-artifact-name }}
path: /tmp
- name: Load Kestra Image
if: inputs.docker-artifact-name != ''
- name: Install Npm dependencies
run: |
docker load --input /tmp/${{ inputs.docker-artifact-name }}.tar
# Docker Compose
- name: Login to DockerHub
uses: docker/login-action@v3
if: inputs.docker-artifact-name == ''
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
# Build configuration
- name: Create additional application configuration
run: |
touch ${{ env.E2E_TEST_DOCKER_DIR }}/data/application-secrets.yml
- name: Setup additional application configuration
if: env.APPLICATION_SECRETS != null
env:
APPLICATION_SECRETS: ${{ secrets.APPLICATION_SECRETS }}
run: |
echo $APPLICATION_SECRETS | base64 -d > ${{ env.E2E_TEST_DOCKER_DIR }}/data/application-secrets.yml
# Deploy Docker Compose Stack
- name: Run Kestra (${{ inputs.backend }})
env:
KESTRA_DOCKER_IMAGE: ${{ inputs.docker-image-tag }}
run: |
cd ${{ env.E2E_TEST_DOCKER_DIR }}
echo "KESTRA_DOCKER_IMAGE=$KESTRA_DOCKER_IMAGE" >> .env
docker compose -f docker-compose-${{ inputs.backend }}.yml up -d
- name: Install Playwright Deps
run: |
cd kestra
./gradlew playwright --args="install-deps"
# Run E2E Tests
- name: Wait For Kestra UI
run: |
# Start time
START_TIME=$(date +%s)
# Timeout duration in seconds (5 minutes)
TIMEOUT_DURATION=$((5 * 60))
while [ $(curl -s -L -o /dev/null -w %{http_code} $KESTRA_BASE_URL) != 200 ]; do
echo -e $(date) "\tKestra server HTTP state: " $(curl -k -L -s -o /dev/null -w %{http_code} $KESTRA_BASE_URL) " (waiting for 200)";
# Check the elapsed time
CURRENT_TIME=$(date +%s)
ELAPSED_TIME=$((CURRENT_TIME - START_TIME))
# Break the loop if the elapsed time exceeds the timeout duration
if [ $ELAPSED_TIME -ge $TIMEOUT_DURATION ]; then
echo "Timeout reached: Exiting after 5 minutes."
exit 1;
fi
sleep 2;
done;
echo "Kestra is running: $KESTRA_BASE_URL 🚀";
continue-on-error: true
- name: Run E2E Tests (${{ inputs.tags }})
if: inputs.tags != ''
run: |
cd kestra
./gradlew e2eTestsCheck -P tags=${{ inputs.tags }}
cd kestra/ui
npm i
npx playwright install --with-deps chromium
- name: Run E2E Tests
if: inputs.tags == ''
run: |
cd kestra
./gradlew e2eTestsCheck
sh build-and-start-e2e-tests.sh
# Allure check
- name: Auth to Google Cloud
id: auth
if: ${{ !cancelled() && env.GOOGLE_SERVICE_ACCOUNT != 0 }}
uses: 'google-github-actions/auth@v2'
- name: Upload Playwright Report as Github artifact
# 'With this report, you can analyze locally the results of the tests. see https://playwright.dev/docs/ci-intro#html-report'
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
credentials_json: '${{ secrets.GOOGLE_SERVICE_ACCOUNT }}'
- uses: rlespinasse/github-slug-action@v5
- name: Publish allure report
uses: andrcuns/allure-publish-action@v2.9.0
if: ${{ !cancelled() && env.GOOGLE_SERVICE_ACCOUNT != 0 }}
env:
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_AUTH_TOKEN }}
JAVA_HOME: /usr/lib/jvm/default-jvm/
with:
storageType: gcs
resultsGlob: build/allure-results
bucket: internal-kestra-host
baseUrl: "https://internal.dev.kestra.io"
prefix: ${{ format('{0}/{1}/{2}', github.repository, env.GITHUB_HEAD_REF_SLUG != '' && env.GITHUB_HEAD_REF_SLUG || github.ref_name, 'allure/playwright') }}
copyLatest: true
ignoreMissingResults: true
name: playwright-report
path: kestra/ui/playwright-report/
retention-days: 7
# Allure check
# TODO I don't know what it should do
# - uses: rlespinasse/github-slug-action@v5
# name: Allure - Generate slug variables
#
# - name: Allure - Publish report
# uses: andrcuns/allure-publish-action@v2.9.0
# if: always() && env.GOOGLE_SERVICE_ACCOUNT != ''
# continue-on-error: true
# env:
# GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_AUTH_TOKEN }}
# JAVA_HOME: /usr/lib/jvm/default-jvm/
# with:
# storageType: gcs
# resultsGlob: "**/build/allure-results"
# bucket: internal-kestra-host
# baseUrl: "https://internal.dev.kestra.io"
# prefix: ${{ format('{0}/{1}', github.repository, 'allure/java') }}
# copyLatest: true
# ignoreMissingResults: true

View File

@@ -27,7 +27,7 @@ jobs:
echo "Invalid release version. Must match regex: ^[0-9]+(\.[0-9]+)\.0-rc[01](-SNAPSHOT)?$"
exit 1
fi
if ! [[ "$NEXT_VERSION" =~ ^[0-9]+(\.[0-9]+)\.0-SNAPSHOT$ ]]; then
echo "Invalid next version. Must match regex: ^[0-9]+(\.[0-9]+)\.0-SNAPSHOT$"
exit 1;
@@ -36,6 +36,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
path: kestra
# Checkout GitHub Actions
- uses: actions/checkout@v4
@@ -62,18 +63,20 @@ jobs:
- name: Run Gradle Release
env:
GITHUB_PAT: ${{ secrets.GH_PERSONAL_TOKEN }}
run: |
run: |
# Extract the major and minor versions
BASE_VERSION=$(echo "$RELEASE_VERSION" | sed -E 's/^([0-9]+\.[0-9]+)\..*/\1/')
PUSH_RELEASE_BRANCH="releases/v${BASE_VERSION}.x"
cd kestra
# Create and push release branch
git checkout -b "$PUSH_RELEASE_BRANCH";
git push -u origin "$PUSH_RELEASE_BRANCH";
# Run gradle release
git checkout develop;
if [[ "$RELEASE_VERSION" == *"-SNAPSHOT" ]]; then
# -SNAPSHOT qualifier maybe used to test release-candidates
./gradlew release -Prelease.useAutomaticVersion=true \

View File

@@ -52,15 +52,14 @@ jobs:
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
# Update
- name: Github - Update internal
uses: benc-uk/workflow-dispatch@v1
if: github.ref == 'refs/heads/develop' && needs.docker.result == 'success'
- name: Trigger EE Workflow
uses: peter-evans/repository-dispatch@v3
if: github.ref == 'refs/heads/develop' && needs.release.result == 'success'
with:
workflow: oss-build.yml
repo: kestra-io/infra
ref: master
token: ${{ secrets.GH_PERSONAL_TOKEN }}
repository: kestra-io/kestra-ee
event-type: "oss-updated"
# Slack
- name: Slack - Notification

View File

@@ -56,6 +56,10 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GOOGLE_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
e2e-tests:
name: E2E - Tests
uses: ./.github/workflows/e2e.yml
end:
name: End
runs-on: ubuntu-latest

View File

@@ -22,11 +22,11 @@ jobs:
echo "Invalid release version. Must match regex: ^[0-9]+(\.[0-9]+)(\.[0-9]+)-(rc[0-9])?(-SNAPSHOT)?$"
exit 1
fi
# Extract the major and minor versions
BASE_VERSION=$(echo "$RELEASE_VERSION" | sed -E 's/^([0-9]+\.[0-9]+)\..*/\1/')
RELEASE_BRANCH="refs/heads/releases/v${BASE_VERSION}.x"
CURRENT_BRANCH="$GITHUB_REF"
if ! [[ "$CURRENT_BRANCH" == "$RELEASE_BRANCH" ]]; then
echo "Invalid release branch. Expected $RELEASE_BRANCH, was $CURRENT_BRANCH"
@@ -54,4 +54,4 @@ jobs:
git commit -m"chore(version): update to version '$RELEASE_VERSION'"
git push
git tag -a "v$RELEASE_VERSION" -m"v$RELEASE_VERSION"
git push origin "v$RELEASE_VERSION"
git push --tags

View File

@@ -8,6 +8,9 @@ on:
env:
JAVA_VERSION: '21'
permissions:
contents: read
jobs:
dependency-check:
name: Dependency Check
@@ -57,6 +60,10 @@ jobs:
develop-image-check:
name: Image Check (develop)
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
steps:
# Checkout
- uses: actions/checkout@v4
@@ -80,16 +87,28 @@ jobs:
# Run Trivy image scan for Docker vulnerabilities, see https://github.com/aquasecurity/trivy-action
- name: Docker Vulnerabilities Check
uses: aquasecurity/trivy-action@0.30.0
uses: aquasecurity/trivy-action@0.32.0
with:
image-ref: kestra/kestra:develop
format: table
format: 'template'
template: '@/contrib/sarif.tpl'
severity: 'CRITICAL,HIGH'
output: 'trivy-results.sarif'
skip-dirs: /app/plugins
scanners: vuln
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'
category: docker-
latest-image-check:
name: Image Check (latest)
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
steps:
# Checkout
- uses: actions/checkout@v4
@@ -113,9 +132,16 @@ jobs:
# Run Trivy image scan for Docker vulnerabilities, see https://github.com/aquasecurity/trivy-action
- name: Docker Vulnerabilities Check
uses: aquasecurity/trivy-action@0.30.0
uses: aquasecurity/trivy-action@0.32.0
with:
image-ref: kestra/kestra:latest
format: table
skip-dirs: /app/plugins
scanners: vuln
scanners: vuln
severity: 'CRITICAL,HIGH'
output: 'trivy-results.sarif'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

View File

@@ -31,6 +31,8 @@ jobs:
steps:
- uses: actions/checkout@v4
name: Checkout - Current ref
with:
fetch-depth: 0
# Setup build
- uses: kestra-io/actions/.github/actions/setup-build@main

View File

@@ -68,7 +68,7 @@ jobs:
if [[ $TAG = "master" || $TAG == v* ]]; then
echo "plugins=$PLUGINS" >> $GITHUB_OUTPUT
else
echo "plugins=--repositories=https://s01.oss.sonatype.org/content/repositories/snapshots $PLUGINS" >> $GITHUB_OUTPUT
echo "plugins=--repositories=https://central.sonatype.com/repository/maven-snapshots/ $PLUGINS" >> $GITHUB_OUTPUT
fi
# Build

View File

@@ -19,14 +19,27 @@ jobs:
name: Frontend - Tests
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout - Current ref
- name: Checkout
uses: actions/checkout@v4
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v4
with:
ref: ${{ github.head_ref }}
path: |
ui/node_modules
key: modules-${{ hashFiles('ui/package-lock.json') }}
- name: Cache Playwright Binaries
id: cache-playwright
uses: actions/cache@v4
with:
path: |
~/.cache/ms-playwright
key: playwright-${{ hashFiles('ui/package-lock.json') }}
- name: Npm - install
shell: bash
if: steps.cache-node-modules.outputs.cache-hit != 'true'
working-directory: ui
run: npm ci
@@ -38,47 +51,20 @@ jobs:
workdir: ui
- name: Npm - Run build
shell: bash
working-directory: ui
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: npm run build
- name: Run front-end unit tests
shell: bash
working-directory: ui
run: npm run test:cicd
run: npm run test:unit -- --coverage
- name: Storybook - Install Playwright
shell: bash
working-directory: ui
if: steps.cache-playwright.outputs.cache-hit != 'true'
run: npx playwright install --with-deps
- name: Storybook - Build
shell: bash
- name: Run storybook component tests
working-directory: ui
run: npm run build-storybook --quiet
- name: Storybook - Run tests
shell: bash
working-directory: ui
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6006 --silent" \
"npx wait-on tcp:127.0.0.1:6006 && npm run test:storybook"
- name: Codecov - Upload coverage reports
uses: codecov/codecov-action@v5
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: frontend
- name: Codecov - Upload test results
uses: codecov/test-results-action@v1
if: ${{ !cancelled() }}
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN && github.event.pull_request.head.repo.full_name == github.repository }}
flags: frontend
run: npm run test:storybook -- --coverage

View File

@@ -6,19 +6,21 @@ on:
GH_PERSONAL_TOKEN:
description: "The Github personal token."
required: true
push:
tags:
- '*'
jobs:
publish:
name: Github - Release
runs-on: ubuntu-latest
steps:
# Download Exec
- name: Artifacts - Download executable
uses: actions/download-artifact@v4
if: startsWith(github.ref, 'refs/tags/v')
# Check out
- name: Checkout - Repository
uses: actions/checkout@v4
with:
name: exe
path: build/executable
fetch-depth: 0
submodules: true
# Checkout GitHub Actions
- name: Checkout - Actions
@@ -30,18 +32,40 @@ jobs:
sparse-checkout: |
.github/actions
# Download Exec
# Must be done after checkout actions
- name: Artifacts - Download executable
uses: actions/download-artifact@v4
if: startsWith(github.ref, 'refs/tags/v')
with:
name: exe
path: build/executable
- name: Check if current tag is latest
id: is_latest
run: |
latest_tag=$(git tag | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sed 's/^v//' | sort -V | tail -n1)
current_tag="${GITHUB_REF_NAME#v}"
if [ "$current_tag" = "$latest_tag" ]; then
echo "latest=true" >> $GITHUB_OUTPUT
else
echo "latest=false" >> $GITHUB_OUTPUT
fi
env:
GITHUB_REF_NAME: ${{ github.ref_name }}
# GitHub Release
- name: Create GitHub release
uses: ./actions/.github/actions/github-release
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAKE_LATEST: ${{ steps.is_latest.outputs.latest }}
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_TOKEN }}
SLACK_RELEASES_WEBHOOK_URL: ${{ secrets.SLACK_RELEASES_WEBHOOK_URL }}
# Trigger gha workflow to bump helm chart version
- name: GitHub - Trigger the Helm chart version bump
uses: peter-evans/repository-dispatch@v3
if: steps.create_github_release.conclusion == 'success'
with:
token: ${{ secrets.GH_PERSONAL_TOKEN }}
repository: kestra-io/helm-charts

View File

@@ -112,12 +112,12 @@ jobs:
echo "plugins=${{ matrix.image.plugins }}" >> $GITHUB_OUTPUT
elif [[ $TAG = "develop" ]]; then
TAG="develop";
echo "plugins=--repositories=https://s01.oss.sonatype.org/content/repositories/snapshots $PLUGINS" >> $GITHUB_OUTPUT
echo "plugins=--repositories=https://central.sonatype.com/repository/maven-snapshots/ $PLUGINS" >> $GITHUB_OUTPUT
else
TAG="build-${{ github.run_id }}";
echo "plugins=--repositories=https://s01.oss.sonatype.org/content/repositories/snapshots $PLUGINS" >> $GITHUB_OUTPUT
echo "plugins=--repositories=https://central.sonatype.com/repository/maven-snapshots/ $PLUGINS" >> $GITHUB_OUTPUT
fi
echo "tag=${TAG}${{ matrix.image.tag }}" >> $GITHUB_OUTPUT
# Build Docker Image

View File

@@ -39,8 +39,8 @@ jobs:
- name: Publish - Release package to Maven Central
shell: bash
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USER }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USER }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_GPG_KEYID: ${{ secrets.SONATYPE_GPG_KEYID }}
SONATYPE_GPG_PASSWORD: ${{ secrets.SONATYPE_GPG_PASSWORD }}
SONATYPE_GPG_FILE: ${{ secrets.SONATYPE_GPG_FILE}}
@@ -50,7 +50,7 @@ jobs:
echo "signing.password=${SONATYPE_GPG_PASSWORD}" >> ~/.gradle/gradle.properties
echo "signing.secretKeyRingFile=${HOME}/.gradle/secring.gpg" >> ~/.gradle/gradle.properties
echo ${SONATYPE_GPG_FILE} | base64 -d > ~/.gradle/secring.gpg
./gradlew publishToSonatype ${{ startsWith(github.ref, 'refs/tags/v') && 'closeAndReleaseSonatypeStagingRepository' || '' }}
./gradlew publishToMavenCentral
# Gradle dependency
- name: Java - Gradle dependency graph

1
.gitignore vendored
View File

@@ -59,3 +59,4 @@ core/src/main/resources/gradle.properties
*storybook.log
storybook-static
/jmh-benchmarks/src/main/resources/gradle.properties

View File

@@ -3,10 +3,12 @@
# Format: <RepositoryName>:<GroupId>:<ArtifactId>:<Version>
#
# Uncomment the lines corresponding to the plugins to be installed:
#plugin-ai:io.kestra.plugin:plugin-ai:LATEST
#plugin-airbyte:io.kestra.plugin:plugin-airbyte:LATEST
#plugin-airflow:io.kestra.plugin:plugin-airflow:LATEST
#plugin-amqp:io.kestra.plugin:plugin-amqp:LATEST
#plugin-ansible:io.kestra.plugin:plugin-ansible:LATEST
#plugin-anthropic:io.kestra.plugin:plugin-anthropic:LATEST
#plugin-aws:io.kestra.plugin:plugin-aws:LATEST
#plugin-azure:io.kestra.plugin:plugin-azure:LATEST
#plugin-cassandra:io.kestra.plugin:plugin-cassandra:LATEST
@@ -29,13 +31,16 @@
#plugin-fivetran:io.kestra.plugin:plugin-fivetran:LATEST
#plugin-fs:io.kestra.plugin:plugin-fs:LATEST
#plugin-gcp:io.kestra.plugin:plugin-gcp:LATEST
#plugin-gemini:io.kestra.plugin:plugin-gemini:LATEST
#plugin-git:io.kestra.plugin:plugin-git:LATEST
#plugin-github:io.kestra.plugin:plugin-github:LATEST
#plugin-googleworkspace:io.kestra.plugin:plugin-googleworkspace:LATEST
#plugin-graalvm:io.kestra.plugin:plugin-graalvm:LATEST
#plugin-graphql:io.kestra.plugin:plugin-graphql:LATEST
#plugin-hightouch:io.kestra.plugin:plugin-hightouch:LATEST
#plugin-hubspot:io.kestra.plugin:plugin-hubspot:LATEST
#plugin-huggingface:io.kestra.plugin:plugin-huggingface:LATEST
#plugin-influxdb:io.kestra.plugin:plugin-influxdb:LATEST
#plugin-jdbc:io.kestra.plugin:plugin-jdbc-as400:LATEST
#plugin-jdbc:io.kestra.plugin:plugin-jdbc-clickhouse:LATEST
#plugin-jdbc:io.kestra.plugin:plugin-jdbc-db2:LATEST
@@ -56,25 +61,32 @@
#plugin-jdbc:io.kestra.plugin:plugin-jdbc-arrow-flight:LATEST
#plugin-jdbc:io.kestra.plugin:plugin-jdbc-sqlite:LATEST
#plugin-jdbc:io.kestra.plugin:plugin-jdbc-sybase:LATEST
#plugin-jenkins:io.kestra.plugin:plugin-jenkins:LATEST
#plugin-jira:io.kestra.plugin:plugin-jira:LATEST
#plugin-kafka:io.kestra.plugin:plugin-kafka:LATEST
#plugin-kestra:io.kestra.plugin:plugin-kestra:LATEST
#plugin-kubernetes:io.kestra.plugin:plugin-kubernetes:LATEST
#plugin-ldap:io.kestra.plugin:plugin-ldap:LATEST
#plugin-linear:io.kestra.plugin:plugin-linear:LATEST
#plugin-malloy:io.kestra.plugin:plugin-malloy:LATEST
#plugin-meilisearch:io.kestra.plugin:plugin-meilisearch:LATEST
#plugin-minio:io.kestra.plugin:plugin-minio:LATEST
#plugin-mistral:io.kestra.plugin:plugin-mistral:LATEST
#plugin-modal:io.kestra.plugin:plugin-modal:LATEST
#plugin-mongodb:io.kestra.plugin:plugin-mongodb:LATEST
#plugin-mqtt:io.kestra.plugin:plugin-mqtt:LATEST
#plugin-nats:io.kestra.plugin:plugin-nats:LATEST
#plugin-neo4j:io.kestra.plugin:plugin-neo4j:LATEST
#plugin-notifications:io.kestra.plugin:plugin-notifications:LATEST
#plugin-notion:io.kestra.plugin:plugin-notion:LATEST
#plugin-ollama:io.kestra.plugin:plugin-ollama:LATEST
#plugin-openai:io.kestra.plugin:plugin-openai:LATEST
#plugin-opensearch:io.kestra.plugin:plugin-opensearch:LATEST
#plugin-perplexity:io.kestra.plugin:plugin-perplexity:LATEST
#plugin-powerbi:io.kestra.plugin:plugin-powerbi:LATEST
#plugin-pulsar:io.kestra.plugin:plugin-pulsar:LATEST
#plugin-redis:io.kestra.plugin:plugin-redis:LATEST
#plugin-scripts:io.kestra.plugin:plugin-script-go:LATEST
#plugin-scripts:io.kestra.plugin:plugin-script-groovy:LATEST
#plugin-scripts:io.kestra.plugin:plugin-script-jbang:LATEST
#plugin-scripts:io.kestra.plugin:plugin-script-julia:LATEST
@@ -88,6 +100,7 @@
#plugin-scripts:io.kestra.plugin:plugin-script-shell:LATEST
#plugin-serdes:io.kestra.plugin:plugin-serdes:LATEST
#plugin-servicenow:io.kestra.plugin:plugin-servicenow:LATEST
#plugin-sifflet:io.kestra.plugin:plugin-sifflet:LATEST
#plugin-singer:io.kestra.plugin:plugin-singer:LATEST
#plugin-soda:io.kestra.plugin:plugin-soda:LATEST
#plugin-solace:io.kestra.plugin:plugin-solace:LATEST

View File

@@ -16,8 +16,9 @@ RUN apt-get update -y && \
if [ -n "${APT_PACKAGES}" ]; then apt-get install -y --no-install-recommends ${APT_PACKAGES}; fi && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* && \
curl -LsSf https://astral.sh/uv/0.6.17/install.sh | sh && mv /root/.local/bin/uv /bin && mv /root/.local/bin/uvx /bin && \
if [ -n "${KESTRA_PLUGINS}" ]; then /app/kestra plugins install ${KESTRA_PLUGINS} && rm -rf /tmp/*; fi && \
if [ -n "${PYTHON_LIBRARIES}" ]; then pip install ${PYTHON_LIBRARIES}; fi && \
if [ -n "${PYTHON_LIBRARIES}" ]; then uv pip install --system ${PYTHON_LIBRARIES}; fi && \
chown -R kestra:kestra /app
USER kestra

View File

@@ -77,7 +77,7 @@ install-plugins:
else \
${KESTRA_BASEDIR}/bin/kestra plugins install $$CURRENT_PLUGIN \
--plugins ${KESTRA_BASEDIR}/plugins \
--repositories=https://s01.oss.sonatype.org/content/repositories/snapshots || exit 1; \
--repositories=https://central.sonatype.com/repository/maven-snapshots || exit 1; \
fi \
done < $$PLUGIN_LIST
@@ -130,9 +130,6 @@ datasources:
username: kestra
password: k3str4
kestra:
server:
basic-auth:
enabled: false
encryption:
secret-key: 3ywuDa/Ec61VHkOX3RlI9gYq7CaD0mv0Pf3DHtAXA6U=
repository:
@@ -181,8 +178,8 @@ clone-plugins:
@echo "Using PLUGIN_GIT_DIR: $(PLUGIN_GIT_DIR)"
@mkdir -p "$(PLUGIN_GIT_DIR)"
@echo "Fetching repository list from GitHub..."
@REPOS=$(gh repo list kestra-io -L 1000 --json name | jq -r .[].name | sort | grep "^plugin-") \
for repo in $$REPOS; do \
@REPOS=$$(gh repo list kestra-io -L 1000 --json name | jq -r .[].name | sort | grep "^plugin-"); \
for repo in $$REPOS; do \
if [[ $$repo == plugin-* ]]; then \
if [ -d "$(PLUGIN_GIT_DIR)/$$repo" ]; then \
echo "Skipping: $$repo (Already cloned)"; \
@@ -194,6 +191,22 @@ clone-plugins:
done
@echo "Done!"
# Pull every plugins in main or master branch
pull-plugins:
@echo "🔍 Pulling repositories in '$(PLUGIN_GIT_DIR)'..."
@for repo in "$(PLUGIN_GIT_DIR)"/*; do \
if [ -d "$$repo/.git" ]; then \
branch=$$(git -C "$$repo" rev-parse --abbrev-ref HEAD); \
if [[ "$$branch" == "master" || "$$branch" == "main" ]]; then \
echo "🔄 Pulling: $$(basename "$$repo") (branch: $$branch)"; \
git -C "$$repo" pull; \
else \
echo "❌ Skipping: $$(basename "$$repo") (Not on master or main branch, currently on $$branch)"; \
fi; \
fi; \
done
@echo "✅ Done pulling!"
# Update all plugins jar
build-plugins:
@echo "🔍 Scanning repositories in '$(PLUGIN_GIT_DIR)'..."

46
build-and-start-e2e-tests.sh Executable file
View File

@@ -0,0 +1,46 @@
#!/bin/bash
set -e
# E2E main script that can be run on a dev computer or in the CI
# it will build the backend of the current git repo and the frontend
# create a docker image out of it
# run tests on this image
LOCAL_IMAGE_VERSION="local-e2e"
echo "Running E2E"
echo "Start time: $(date '+%Y-%m-%d %H:%M:%S')"
start_time=$(date +%s)
echo ""
echo "Building the image for this current repository"
make build-docker VERSION=$LOCAL_IMAGE_VERSION
end_time=$(date +%s)
elapsed=$(( end_time - start_time ))
echo ""
echo "building elapsed time: ${elapsed} seconds"
echo ""
echo "Start time: $(date '+%Y-%m-%d %H:%M:%S')"
start_time2=$(date +%s)
echo "cd ./ui"
cd ./ui
echo "npm i"
npm i
echo 'sh ./run-e2e-tests.sh --kestra-docker-image-to-test "kestra/kestra:$LOCAL_IMAGE_VERSION"'
sh ./run-e2e-tests.sh --kestra-docker-image-to-test "kestra/kestra:$LOCAL_IMAGE_VERSION"
end_time2=$(date +%s)
elapsed2=$(( end_time2 - start_time2 ))
echo ""
echo "Tests elapsed time: ${elapsed2} seconds"
echo ""
total_elapsed=$(( elapsed + elapsed2 ))
echo "Total elapsed time: ${total_elapsed} seconds"
echo ""
exit 0

View File

@@ -16,12 +16,12 @@ plugins {
id "java"
id 'java-library'
id "idea"
id "com.gradleup.shadow" version "8.3.6"
id "com.gradleup.shadow" version "8.3.8"
id "application"
// test
id "com.adarshr.test-logger" version "4.0.0"
id "org.sonarqube" version "6.1.0.5360"
id "org.sonarqube" version "6.2.0.5505"
id 'jacoco-report-aggregation'
// helper
@@ -31,15 +31,13 @@ plugins {
id 'com.github.node-gradle.node' version '7.1.0'
// release
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
id 'net.researchgate.release' version '3.1.0'
id "com.gorylenko.gradle-git-properties" version "2.5.0"
id "com.gorylenko.gradle-git-properties" version "2.5.2"
id 'signing'
id 'ru.vyarus.pom' version '3.0.0' apply false
id 'ru.vyarus.github-info' version '2.0.0' apply false
id "com.vanniktech.maven.publish" version "0.34.0"
// OWASP dependency check
id "org.owasp.dependencycheck" version "12.1.1" apply false
id "org.owasp.dependencycheck" version "12.1.3" apply false
}
idea {
@@ -73,6 +71,11 @@ dependencies {
* Dependencies
**********************************************************************************************************************/
allprojects {
tasks.withType(GenerateModuleMetadata).configureEach {
suppressedValidationErrors.add('enforced-platform')
}
if (it.name != 'platform') {
group = "io.kestra"
@@ -145,6 +148,7 @@ allprojects {
implementation group: 'com.fasterxml.jackson.module', name: 'jackson-module-parameter-names'
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-guava'
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310'
implementation group: 'com.fasterxml.uuid', name: 'java-uuid-generator'
// kestra
implementation group: 'com.devskiller.friendly-id', name: 'friendly-id'
@@ -165,7 +169,7 @@ allprojects {
* Test
**********************************************************************************************************************/
subprojects {
if (it.name != 'platform') {
if (it.name != 'platform' && it.name != 'jmh-benchmarks') {
apply plugin: "com.adarshr.test-logger"
java {
@@ -196,6 +200,9 @@ subprojects {
testImplementation 'org.hamcrest:hamcrest'
testImplementation 'org.hamcrest:hamcrest-library'
testImplementation 'org.exparity:hamcrest-date'
//assertj
testImplementation 'org.assertj:assertj-core'
}
test {
@@ -213,8 +220,8 @@ subprojects {
environment 'SECRET_WEBHOOK_KEY', "secretKey".bytes.encodeBase64().toString()
environment 'SECRET_NON_B64_SECRET', "some secret value"
environment 'SECRET_PASSWORD', "cGFzc3dvcmQ="
environment 'KESTRA_TEST1', "true"
environment 'KESTRA_TEST2', "Pass by env"
environment 'ENV_TEST1', "true"
environment 'ENV_TEST2', "Pass by env"
}
testlogger {
@@ -265,7 +272,7 @@ subprojects {
* Allure Reports
**********************************************************************************************************************/
subprojects {
if (it.name != 'platform') {
if (it.name != 'platform' && it.name != 'jmh-benchmarks') {
dependencies {
testImplementation platform("io.qameta.allure:allure-bom")
testImplementation "io.qameta.allure:allure-junit5"
@@ -279,7 +286,7 @@ subprojects {
}
dependencies {
agent "org.aspectj:aspectjweaver:1.9.23"
agent "org.aspectj:aspectjweaver:1.9.24"
}
test {
@@ -292,7 +299,7 @@ subprojects {
* Jacoco
**********************************************************************************************************************/
subprojects {
if (it.name != 'platform') {
if (it.name != 'platform' && it.name != 'jmh-benchmarks') {
apply plugin: 'jacoco'
test {
@@ -411,6 +418,7 @@ distTar.dependsOn shadowJar
startScripts.dependsOn shadowJar
startShadowScripts.dependsOn jar
shadowJar.dependsOn 'ui:assembleFrontend'
shadowJar.dependsOn jar
/**********************************************************************************************************************\
* Executable Jar
@@ -469,117 +477,154 @@ tasks.register('runLocal', JavaExec) {
args 'server', 'local', '--plugins', 'local/plugins'
}
tasks.register('runStandalone', JavaExec) {
group = "application"
description = "Run Kestra as server local"
classpath = project(":cli").sourceSets.main.runtimeClasspath
mainClass = mainClassName
environment 'MICRONAUT_ENVIRONMENTS', 'override'
args 'server', 'standalone', '--plugins', 'local/plugins'
}
/**********************************************************************************************************************\
* Publish
**********************************************************************************************************************/
nexusPublishing {
repositoryDescription = "${project.group}:${rootProject.name}:${project.version}"
useStaging = !project.version.endsWith("-SNAPSHOT")
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
subprojects {subProject ->
subprojects {
apply plugin: "maven-publish"
apply plugin: 'signing'
apply plugin: 'ru.vyarus.pom'
apply plugin: 'ru.vyarus.github-info'
if (subProject.name != 'jmh-benchmarks' && subProject.name != rootProject.name) {
apply plugin: 'signing'
apply plugin: "com.vanniktech.maven.publish"
javadoc {
options {
locale = 'en_US'
encoding = 'UTF-8'
addStringOption("Xdoclint:none", "-quiet")
}
}
tasks.register('sourcesJar', Jar) {
dependsOn = [':core:copyGradleProperties']
dependsOn = [':ui:assembleFrontend']
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
sourcesJar.dependsOn ':core:copyGradleProperties'
sourcesJar.dependsOn ':ui:assembleFrontend'
tasks.register('javadocJar', Jar) {
archiveClassifier.set('javadoc')
from javadoc
}
tasks.register('testsJar', Jar) {
group = 'build'
description = 'Build the tests jar'
archiveClassifier.set('tests')
if (sourceSets.matching { it.name == 'test'}) {
from sourceSets.named('test').get().output
}
}
github {
user 'kestra-io'
license 'Apache'
repository 'kestra'
site 'https://kestra.io'
}
maven.pom {
description = 'The modern, scalable orchestrator & scheduler open source platform'
developers {
developer {
id = "tchiotludo"
name = "Ludovic Dehon"
javadoc {
options {
locale = 'en_US'
encoding = 'UTF-8'
addStringOption("Xdoclint:none", "-quiet")
}
}
}
publishing {
publications {
sonatypePublication(MavenPublication) {
version project.version
tasks.register('sourcesJar', Jar) {
dependsOn = [':core:copyGradleProperties']
dependsOn = [':ui:assembleFrontend']
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
sourcesJar.dependsOn ':core:copyGradleProperties'
sourcesJar.dependsOn ':ui:assembleFrontend'
if (project.name.contains('cli')) {
groupId "io.kestra"
artifactId "kestra"
tasks.register('javadocJar', Jar) {
archiveClassifier.set('javadoc')
from javadoc
}
artifact shadowJar
artifact executableJar
} else if (project.name.contains('platform')){
groupId project.group
artifactId project.name
} else {
from components.java
tasks.register('testsJar', Jar) {
group = 'build'
description = 'Build the tests jar'
groupId project.group
artifactId project.name
archiveClassifier.set('tests')
if (sourceSets.matching { it.name == 'test'}) {
from sourceSets.named('test').get().output
}
}
artifact sourcesJar
artifact javadocJar
artifact testsJar
//These modules should not be published
def unpublishedModules = ["jdbc-mysql", "jdbc-postgres", "webserver"]
if (subProject.name in unpublishedModules){
return
}
mavenPublishing {
publishToMavenCentral(true)
signAllPublications()
coordinates(
"${rootProject.group}",
subProject.name == "cli" ? rootProject.name : subProject.name,
"${rootProject.version}"
)
pom {
name = project.name
description = "${project.group}:${project.name}:${rootProject.version}"
url = "https://github.com/kestra-io/${rootProject.name}"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "tchiotludo"
name = "Ludovic Dehon"
email = "ldehon@kestra.io"
}
}
scm {
connection = 'scm:git:'
url = "https://github.com/kestra-io/${rootProject.name}"
}
}
}
afterEvaluate {
publishing {
publications {
withType(MavenPublication).configureEach { publication ->
if (subProject.name == "platform") {
// Clear all artifacts except the BOM
publication.artifacts.clear()
}
}
}
}
}
if (subProject.name == 'cli') {
/* Make sure the special publication is wired *after* every plugin */
subProject.afterEvaluate {
/* 1. Remove the default java component so Gradle stops expecting
the standard cli-*.jar, sources, javadoc, etc. */
components.removeAll { it.name == "java" }
/* 2. Replace the publications artifacts with shadow + exec */
publishing.publications.withType(MavenPublication).configureEach { pub ->
pub.artifacts.clear()
// main shadow JAR built at root
pub.artifact(rootProject.tasks.named("shadowJar").get()) {
extension = "jar"
}
// executable ZIP built at root
pub.artifact(rootProject.tasks.named("executableJar").get().archiveFile) {
classifier = "exec"
extension = "zip"
}
pub.artifact(tasks.named("sourcesJar").get())
pub.artifact(tasks.named("javadocJar").get())
}
/* 3. Disable Gradle-module metadata for this publication to
avoid the “artifact removed from java component” error. */
tasks.withType(GenerateModuleMetadata).configureEach { it.enabled = false }
/* 4. Make every publish task in :cli wait for the two artifacts */
tasks.matching { it.name.startsWith("publish") }.configureEach {
dependsOn rootProject.tasks.named("shadowJar")
dependsOn rootProject.tasks.named("executableJar")
}
}
}
}
signing {
// only sign JARs that we publish to Sonatype
required { gradle.taskGraph.hasTask("publishSonatypePublicationPublicationToSonatypeRepository") }
sign publishing.publications.sonatypePublication
}
tasks.withType(GenerateModuleMetadata).configureEach {
// Suppression this validation error as we want to enforce the Kestra platform
suppressedValidationErrors.add('enforced-platform')
}
}
/**********************************************************************************************************************\
* Version
**********************************************************************************************************************/

View File

@@ -36,5 +36,5 @@ dependencies {
implementation project(":webserver")
//test
testImplementation "org.wiremock:wiremock"
}
testImplementation "org.wiremock:wiremock-jetty12"
}

View File

@@ -14,16 +14,15 @@ import io.micronaut.http.netty.body.NettyJsonHandler;
import io.micronaut.json.JsonMapper;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import lombok.Builder;
import lombok.Value;
import lombok.extern.jackson.Jacksonized;
import picocli.CommandLine;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import lombok.Builder;
import lombok.Value;
import lombok.extern.jackson.Jacksonized;
import picocli.CommandLine;
public abstract class AbstractApiCommand extends AbstractCommand {
@CommandLine.Option(names = {"--server"}, description = "Kestra server url", defaultValue = "http://localhost:8080")
@@ -35,7 +34,7 @@ public abstract class AbstractApiCommand extends AbstractCommand {
@CommandLine.Option(names = {"--user"}, paramLabel = "<user:password>", description = "Server user and password")
protected String user;
@CommandLine.Option(names = {"--tenant"}, description = "Tenant identifier (EE only, when multi-tenancy is enabled)")
@CommandLine.Option(names = {"--tenant"}, description = "Tenant identifier (EE only)")
protected String tenantId;
@CommandLine.Option(names = {"--api-token"}, description = "API Token (EE only).")
@@ -85,12 +84,12 @@ public abstract class AbstractApiCommand extends AbstractCommand {
return request;
}
protected String apiUri(String path) {
protected String apiUri(String path, String tenantId) {
if (path == null || !path.startsWith("/")) {
throw new IllegalArgumentException("'path' must be non-null and start with '/'");
}
return tenantId == null ? "/api/v1" + path : "/api/v1/" + tenantId + path;
return "/api/v1/" + tenantId + path;
}
@Builder

View File

@@ -40,7 +40,7 @@ import picocli.CommandLine.Option;
)
@Slf4j
@Introspected
abstract public class AbstractCommand implements Callable<Integer> {
public abstract class AbstractCommand implements Callable<Integer> {
@Inject
private ApplicationContext applicationContext;
@@ -93,7 +93,7 @@ abstract public class AbstractCommand implements Callable<Integer> {
this.startupHook.start(this);
}
if (this.pluginsPath != null && loadExternalPlugins()) {
if (pluginRegistryProvider != null && this.pluginsPath != null && loadExternalPlugins()) {
pluginRegistry = pluginRegistryProvider.get();
pluginRegistry.registerIfAbsent(pluginsPath);

View File

@@ -1,5 +1,6 @@
package io.kestra.cli;
import io.kestra.cli.services.TenantIdSelectorService;
import io.kestra.core.models.validations.ModelValidator;
import io.kestra.core.models.validations.ValidateConstraintViolation;
import io.kestra.core.serializers.YamlParser;
@@ -9,6 +10,7 @@ import io.micronaut.http.MediaType;
import io.micronaut.http.MutableHttpRequest;
import io.micronaut.http.client.exceptions.HttpClientResponseException;
import io.micronaut.http.client.netty.DefaultHttpClient;
import jakarta.inject.Inject;
import picocli.CommandLine;
import java.io.IOException;
@@ -31,6 +33,9 @@ public abstract class AbstractValidateCommand extends AbstractApiCommand {
@CommandLine.Parameters(index = "0", description = "the directory containing files to check")
protected Path directory;
@Inject
private TenantIdSelectorService tenantService;
/** {@inheritDoc} **/
@Override
protected boolean loadExternalPlugins() {
@@ -112,7 +117,7 @@ public abstract class AbstractValidateCommand extends AbstractApiCommand {
try(DefaultHttpClient client = client()) {
MutableHttpRequest<String> request = HttpRequest
.POST(apiUri("/flows/validate"), body).contentType(MediaType.APPLICATION_YAML);
.POST(apiUri("/flows/validate", tenantService.getTenantId(tenantId)), body).contentType(MediaType.APPLICATION_YAML);
List<ValidateConstraintViolation> validations = client.toBlocking().retrieve(
this.requestOptions(request),

View File

@@ -2,6 +2,7 @@ package io.kestra.cli;
import io.kestra.cli.commands.configs.sys.ConfigCommand;
import io.kestra.cli.commands.flows.FlowCommand;
import io.kestra.cli.commands.migrations.MigrationCommand;
import io.kestra.cli.commands.namespaces.NamespaceCommand;
import io.kestra.cli.commands.plugins.PluginCommand;
import io.kestra.cli.commands.servers.ServerCommand;
@@ -42,6 +43,7 @@ import java.util.concurrent.Callable;
SysCommand.class,
ConfigCommand.class,
NamespaceCommand.class,
MigrationCommand.class,
}
)
@Introspected
@@ -64,8 +66,14 @@ public class App implements Callable<Integer> {
ApplicationContext applicationContext = App.applicationContext(cls, args);
// Call Picocli command
int exitCode = new CommandLine(cls, new MicronautFactory(applicationContext)).execute(args);
int exitCode = 0;
try {
exitCode = new CommandLine(cls, new MicronautFactory(applicationContext)).execute(args);
} catch (CommandLine.InitializationException e){
System.err.println("Could not initialize picoli ComandLine, err: " + e.getMessage());
e.printStackTrace();
exitCode = 1;
}
applicationContext.close();
// exit code

View File

@@ -2,11 +2,13 @@ package io.kestra.cli.commands.flows;
import io.kestra.cli.AbstractApiCommand;
import io.kestra.cli.AbstractValidateCommand;
import io.kestra.cli.services.TenantIdSelectorService;
import io.micronaut.http.HttpRequest;
import io.micronaut.http.MediaType;
import io.micronaut.http.MutableHttpRequest;
import io.micronaut.http.client.exceptions.HttpClientResponseException;
import io.micronaut.http.client.netty.DefaultHttpClient;
import jakarta.inject.Inject;
import lombok.extern.slf4j.Slf4j;
import picocli.CommandLine;
@@ -23,6 +25,9 @@ public class FlowCreateCommand extends AbstractApiCommand {
@CommandLine.Parameters(index = "0", description = "The file containing the flow")
public Path flowFile;
@Inject
private TenantIdSelectorService tenantService;
@SuppressWarnings("deprecation")
@Override
public Integer call() throws Exception {
@@ -34,7 +39,7 @@ public class FlowCreateCommand extends AbstractApiCommand {
try(DefaultHttpClient client = client()) {
MutableHttpRequest<String> request = HttpRequest
.POST(apiUri("/flows"), body).contentType(MediaType.APPLICATION_YAML);
.POST(apiUri("/flows", tenantService.getTenantId(tenantId)), body).contentType(MediaType.APPLICATION_YAML);
client.toBlocking().retrieve(
this.requestOptions(request),

View File

@@ -2,10 +2,12 @@ package io.kestra.cli.commands.flows;
import io.kestra.cli.AbstractApiCommand;
import io.kestra.cli.AbstractValidateCommand;
import io.kestra.cli.services.TenantIdSelectorService;
import io.micronaut.http.HttpRequest;
import io.micronaut.http.MutableHttpRequest;
import io.micronaut.http.client.exceptions.HttpClientResponseException;
import io.micronaut.http.client.netty.DefaultHttpClient;
import jakarta.inject.Inject;
import lombok.extern.slf4j.Slf4j;
import picocli.CommandLine;
@@ -23,6 +25,9 @@ public class FlowDeleteCommand extends AbstractApiCommand {
@CommandLine.Parameters(index = "1", description = "The ID of the flow")
public String id;
@Inject
private TenantIdSelectorService tenantService;
@SuppressWarnings("deprecation")
@Override
public Integer call() throws Exception {
@@ -30,7 +35,7 @@ public class FlowDeleteCommand extends AbstractApiCommand {
try(DefaultHttpClient client = client()) {
MutableHttpRequest<String> request = HttpRequest
.DELETE(apiUri("/flows/" + namespace + "/" + id ));
.DELETE(apiUri("/flows/" + namespace + "/" + id, tenantService.getTenantId(tenantId)));
client.toBlocking().exchange(
this.requestOptions(request)

View File

@@ -2,7 +2,7 @@ package io.kestra.cli.commands.flows;
import io.kestra.cli.AbstractApiCommand;
import io.kestra.cli.AbstractValidateCommand;
import io.micronaut.context.ApplicationContext;
import io.kestra.cli.services.TenantIdSelectorService;
import io.micronaut.http.HttpRequest;
import io.micronaut.http.HttpResponse;
import io.micronaut.http.MediaType;
@@ -25,9 +25,8 @@ import java.nio.file.Path;
public class FlowExportCommand extends AbstractApiCommand {
private static final String DEFAULT_FILE_NAME = "flows.zip";
// @FIXME: Keep it for bug in micronaut that need to have inject on top level command to inject on abstract classe
@Inject
private ApplicationContext applicationContext;
private TenantIdSelectorService tenantService;
@CommandLine.Option(names = {"--namespace"}, description = "The namespace of flows to export")
public String namespace;
@@ -41,7 +40,7 @@ public class FlowExportCommand extends AbstractApiCommand {
try(DefaultHttpClient client = client()) {
MutableHttpRequest<Object> request = HttpRequest
.GET(apiUri("/flows/export/by-query") + (namespace != null ? "?namespace=" + namespace : ""))
.GET(apiUri("/flows/export/by-query", tenantService.getTenantId(tenantId)) + (namespace != null ? "?namespace=" + namespace : ""))
.accept(MediaType.APPLICATION_OCTET_STREAM);
HttpResponse<byte[]> response = client.toBlocking().exchange(this.requestOptions(request), byte[].class);

View File

@@ -1,7 +1,8 @@
package io.kestra.cli.commands.flows;
import com.google.common.collect.ImmutableMap;
import io.kestra.cli.AbstractCommand;
import io.kestra.cli.AbstractApiCommand;
import io.kestra.cli.services.TenantIdSelectorService;
import io.kestra.core.models.flows.Flow;
import io.kestra.core.repositories.FlowRepositoryInterface;
import io.kestra.core.repositories.LocalFlowRepositoryLoader;
@@ -30,7 +31,7 @@ import java.util.concurrent.TimeoutException;
description = "Test a flow"
)
@Slf4j
public class FlowTestCommand extends AbstractCommand {
public class FlowTestCommand extends AbstractApiCommand {
@Inject
private ApplicationContext applicationContext;
@@ -76,6 +77,7 @@ public class FlowTestCommand extends AbstractCommand {
FlowRepositoryInterface flowRepository = applicationContext.getBean(FlowRepositoryInterface.class);
FlowInputOutput flowInputOutput = applicationContext.getBean(FlowInputOutput.class);
RunnerUtils runnerUtils = applicationContext.getBean(RunnerUtils.class);
TenantIdSelectorService tenantService = applicationContext.getBean(TenantIdSelectorService.class);
Map<String, Object> inputs = new HashMap<>();
@@ -89,7 +91,7 @@ public class FlowTestCommand extends AbstractCommand {
try {
runner.run();
repositoryLoader.load(file.toFile());
repositoryLoader.load(tenantService.getTenantId(tenantId), file.toFile());
List<Flow> all = flowRepository.findAllForAllTenants();
if (all.size() != 1) {

View File

@@ -2,11 +2,13 @@ package io.kestra.cli.commands.flows;
import io.kestra.cli.AbstractApiCommand;
import io.kestra.cli.AbstractValidateCommand;
import io.kestra.cli.services.TenantIdSelectorService;
import io.micronaut.http.HttpRequest;
import io.micronaut.http.MediaType;
import io.micronaut.http.MutableHttpRequest;
import io.micronaut.http.client.exceptions.HttpClientResponseException;
import io.micronaut.http.client.netty.DefaultHttpClient;
import jakarta.inject.Inject;
import lombok.extern.slf4j.Slf4j;
import picocli.CommandLine;
@@ -29,6 +31,9 @@ public class FlowUpdateCommand extends AbstractApiCommand {
@CommandLine.Parameters(index = "2", description = "The ID of the flow")
public String id;
@Inject
private TenantIdSelectorService tenantService;
@SuppressWarnings("deprecation")
@Override
public Integer call() throws Exception {
@@ -40,7 +45,7 @@ public class FlowUpdateCommand extends AbstractApiCommand {
try(DefaultHttpClient client = client()) {
MutableHttpRequest<String> request = HttpRequest
.PUT(apiUri("/flows/" + namespace + "/" + id ), body).contentType(MediaType.APPLICATION_YAML);
.PUT(apiUri("/flows/" + namespace + "/" + id, tenantService.getTenantId(tenantId)), body).contentType(MediaType.APPLICATION_YAML);
client.toBlocking().retrieve(
this.requestOptions(request),

View File

@@ -2,6 +2,7 @@ package io.kestra.cli.commands.flows;
import io.kestra.cli.AbstractApiCommand;
import io.kestra.cli.AbstractValidateCommand;
import io.kestra.cli.services.TenantIdSelectorService;
import io.kestra.core.serializers.YamlParser;
import io.micronaut.core.type.Argument;
import io.micronaut.http.HttpRequest;
@@ -9,6 +10,7 @@ import io.micronaut.http.MediaType;
import io.micronaut.http.MutableHttpRequest;
import io.micronaut.http.client.exceptions.HttpClientResponseException;
import io.micronaut.http.client.netty.DefaultHttpClient;
import jakarta.inject.Inject;
import jakarta.validation.ConstraintViolationException;
import lombok.extern.slf4j.Slf4j;
import picocli.CommandLine;
@@ -36,6 +38,9 @@ public class FlowUpdatesCommand extends AbstractApiCommand {
@CommandLine.Option(names = {"--namespace"}, description = "The parent namespace of the flows, if not set, every namespace are allowed.")
public String namespace;
@Inject
private TenantIdSelectorService tenantIdSelectorService;
@SuppressWarnings("deprecation")
@Override
public Integer call() throws Exception {
@@ -66,7 +71,7 @@ public class FlowUpdatesCommand extends AbstractApiCommand {
namespaceQuery = "&namespace=" + namespace;
}
MutableHttpRequest<String> request = HttpRequest
.POST(apiUri("/flows/bulk") + "?allowNamespaceChild=true&delete=" + delete + namespaceQuery, body).contentType(MediaType.APPLICATION_YAML);
.POST(apiUri("/flows/bulk", tenantIdSelectorService.getTenantId(tenantId)) + "?allowNamespaceChild=true&delete=" + delete + namespaceQuery, body).contentType(MediaType.APPLICATION_YAML);
List<UpdateResult> updated = client.toBlocking().retrieve(
this.requestOptions(request),

View File

@@ -1,6 +1,7 @@
package io.kestra.cli.commands.flows;
import io.kestra.cli.AbstractValidateCommand;
import io.kestra.cli.services.TenantIdSelectorService;
import io.kestra.core.models.flows.FlowWithSource;
import io.kestra.core.models.validations.ModelValidator;
import io.kestra.core.services.FlowService;
@@ -22,6 +23,9 @@ public class FlowValidateCommand extends AbstractValidateCommand {
@Inject
private FlowService flowService;
@Inject
private TenantIdSelectorService tenantService;
@Override
public Integer call() throws Exception {
return this.call(
@@ -35,7 +39,7 @@ public class FlowValidateCommand extends AbstractValidateCommand {
FlowWithSource flow = (FlowWithSource) object;
List<String> warnings = new ArrayList<>();
warnings.addAll(flowService.deprecationPaths(flow).stream().map(deprecation -> deprecation + " is deprecated").toList());
warnings.addAll(flowService.warnings(flow, this.tenantId));
warnings.addAll(flowService.warnings(flow, tenantService.getTenantId(tenantId)));
return warnings;
},
(Object object) -> {

View File

@@ -3,6 +3,7 @@ package io.kestra.cli.commands.flows.namespaces;
import io.kestra.cli.AbstractValidateCommand;
import io.kestra.cli.commands.AbstractServiceNamespaceUpdateCommand;
import io.kestra.cli.commands.flows.IncludeHelperExpander;
import io.kestra.cli.services.TenantIdSelectorService;
import io.kestra.core.serializers.YamlParser;
import io.micronaut.core.type.Argument;
import io.micronaut.http.HttpRequest;
@@ -10,6 +11,7 @@ import io.micronaut.http.MediaType;
import io.micronaut.http.MutableHttpRequest;
import io.micronaut.http.client.exceptions.HttpClientResponseException;
import io.micronaut.http.client.netty.DefaultHttpClient;
import jakarta.inject.Inject;
import jakarta.validation.ConstraintViolationException;
import lombok.extern.slf4j.Slf4j;
import picocli.CommandLine;
@@ -30,6 +32,9 @@ public class FlowNamespaceUpdateCommand extends AbstractServiceNamespaceUpdateCo
@CommandLine.Option(names = {"--override-namespaces"}, negatable = true, description = "Replace namespace of all flows by the one provided")
public boolean override = false;
@Inject
private TenantIdSelectorService tenantService;
@SuppressWarnings("deprecation")
@Override
public Integer call() throws Exception {
@@ -59,7 +64,7 @@ public class FlowNamespaceUpdateCommand extends AbstractServiceNamespaceUpdateCo
}
try(DefaultHttpClient client = client()) {
MutableHttpRequest<String> request = HttpRequest
.POST(apiUri("/flows/") + namespace + "?delete=" + delete, body).contentType(MediaType.APPLICATION_YAML);
.POST(apiUri("/flows/", tenantService.getTenantId(tenantId)) + namespace + "?delete=" + delete, body).contentType(MediaType.APPLICATION_YAML);
List<UpdateResult> updated = client.toBlocking().retrieve(
this.requestOptions(request),

View File

@@ -0,0 +1,29 @@
package io.kestra.cli.commands.migrations;
import io.kestra.cli.AbstractCommand;
import io.kestra.cli.App;
import io.micronaut.configuration.picocli.PicocliRunner;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import picocli.CommandLine;
@CommandLine.Command(
name = "migrate",
description = "handle migrations",
mixinStandardHelpOptions = true,
subcommands = {
TenantMigrationCommand.class,
}
)
@Slf4j
public class MigrationCommand extends AbstractCommand {
@SneakyThrows
@Override
public Integer call() throws Exception {
super.call();
PicocliRunner.call(App.class, "migrate", "--help");
return 0;
}
}

View File

@@ -0,0 +1,49 @@
package io.kestra.cli.commands.migrations;
import io.kestra.cli.AbstractCommand;
import io.kestra.core.repositories.TenantMigrationInterface;
import io.micronaut.context.ApplicationContext;
import jakarta.inject.Inject;
import lombok.extern.slf4j.Slf4j;
import picocli.CommandLine;
import picocli.CommandLine.Option;
@CommandLine.Command(
name = "default-tenant",
description = "migrate every elements from no tenant to the main tenant"
)
@Slf4j
public class TenantMigrationCommand extends AbstractCommand {
@Inject
private ApplicationContext applicationContext;
@Option(names = "--tenant-id", description = "tenant identifier")
String tenantId;
@Option(names = "--tenant-name", description = "tenant name")
String tenantName;
@Option(names = "--dry-run", description = "Preview only, do not update")
boolean dryRun;
@Override
public Integer call() throws Exception {
super.call();
if (dryRun) {
System.out.println("🧪 Dry-run mode enabled. No changes will be applied.");
}
TenantMigrationService migrationService = this.applicationContext.getBean(TenantMigrationService.class);
try {
migrationService.migrateTenant(tenantId, tenantName, dryRun);
System.out.println("✅ Tenant migration complete.");
} catch (Exception e) {
System.err.println("❌ Tenant migration failed: " + e.getMessage());
e.printStackTrace();
return 1;
}
return 0;
}
}

View File

@@ -0,0 +1,56 @@
package io.kestra.cli.commands.migrations;
import static io.kestra.core.tenant.TenantService.MAIN_TENANT;
import com.github.javaparser.utils.Log;
import io.kestra.core.exceptions.KestraRuntimeException;
import io.kestra.core.models.flows.FlowInterface;
import io.kestra.core.queues.QueueException;
import io.kestra.core.queues.QueueFactoryInterface;
import io.kestra.core.queues.QueueInterface;
import io.kestra.core.repositories.FlowRepositoryInterface;
import io.kestra.core.repositories.TenantMigrationInterface;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import jakarta.inject.Singleton;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
@Singleton
@Slf4j
public class TenantMigrationService {
@Inject
private TenantMigrationInterface tenantMigrationInterface;
@Inject
private FlowRepositoryInterface flowRepository;
@Inject
@Named(QueueFactoryInterface.FLOW_NAMED)
private QueueInterface<FlowInterface> flowQueue;
public void migrateTenant(String tenantId, String tenantName, boolean dryRun) {
if (StringUtils.isNotBlank(tenantId) && !MAIN_TENANT.equals(tenantId)){
throw new KestraRuntimeException("Tenant configuration is an enterprise feature. It can only be main in OSS");
}
Log.info("🔁 Starting tenant migration...");
tenantMigrationInterface.migrateTenant(MAIN_TENANT, dryRun);
migrateQueue(dryRun);
}
protected void migrateQueue(boolean dryRun) {
if (!dryRun){
log.info("🔁 Starting restoring queue...");
flowRepository.findAllWithSourceForAllTenants().forEach(flow -> {
try {
flowQueue.emit(flow);
} catch (QueueException e) {
log.warn("Unable to send the flow {} to the queue", flow.uid(), e);
}
});
}
}
}

View File

@@ -2,12 +2,14 @@ package io.kestra.cli.commands.namespaces.files;
import io.kestra.cli.AbstractApiCommand;
import io.kestra.cli.AbstractValidateCommand;
import io.kestra.cli.services.TenantIdSelectorService;
import io.kestra.core.utils.KestraIgnore;
import io.micronaut.http.HttpRequest;
import io.micronaut.http.MediaType;
import io.micronaut.http.client.exceptions.HttpClientResponseException;
import io.micronaut.http.client.multipart.MultipartBody;
import io.micronaut.http.client.netty.DefaultHttpClient;
import jakarta.inject.Inject;
import lombok.extern.slf4j.Slf4j;
import picocli.CommandLine;
@@ -34,6 +36,9 @@ public class NamespaceFilesUpdateCommand extends AbstractApiCommand {
@CommandLine.Option(names = {"--delete"}, negatable = true, description = "Whether missing should be deleted")
public boolean delete = false;
@Inject
private TenantIdSelectorService tenantService;
private static final String KESTRA_IGNORE_FILE = ".kestraignore";
@Override
@@ -44,7 +49,7 @@ public class NamespaceFilesUpdateCommand extends AbstractApiCommand {
try (var files = Files.walk(from); DefaultHttpClient client = client()) {
if (delete) {
client.toBlocking().exchange(this.requestOptions(HttpRequest.DELETE(apiUri("/namespaces/") + namespace + "/files?path=" + to, null)));
client.toBlocking().exchange(this.requestOptions(HttpRequest.DELETE(apiUri("/namespaces/", tenantService.getTenantId(tenantId)) + namespace + "/files?path=" + to, null)));
}
KestraIgnore kestraIgnore = new KestraIgnore(from);
@@ -62,7 +67,7 @@ public class NamespaceFilesUpdateCommand extends AbstractApiCommand {
client.toBlocking().exchange(
this.requestOptions(
HttpRequest.POST(
apiUri("/namespaces/") + namespace + "/files?path=" + destination,
apiUri("/namespaces/", tenantService.getTenantId(tenantId)) + namespace + "/files?path=" + destination,
body
).contentType(MediaType.MULTIPART_FORM_DATA)
)

View File

@@ -3,11 +3,13 @@ package io.kestra.cli.commands.namespaces.kv;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.kestra.cli.AbstractApiCommand;
import io.kestra.cli.services.TenantIdSelectorService;
import io.kestra.core.serializers.JacksonMapper;
import io.micronaut.http.HttpRequest;
import io.micronaut.http.MediaType;
import io.micronaut.http.MutableHttpRequest;
import io.micronaut.http.client.netty.DefaultHttpClient;
import jakarta.inject.Inject;
import lombok.extern.slf4j.Slf4j;
import picocli.CommandLine;
import picocli.CommandLine.Option;
@@ -42,6 +44,9 @@ public class KvUpdateCommand extends AbstractApiCommand {
@Option(names = {"-f", "--file-value"}, description = "The file from which to read the value to set. If this is provided, it will take precedence over any specified value.")
public Path fileValue;
@Inject
private TenantIdSelectorService tenantService;
@Override
public Integer call() throws Exception {
super.call();
@@ -56,7 +61,7 @@ public class KvUpdateCommand extends AbstractApiCommand {
Duration ttl = expiration == null ? null : Duration.parse(expiration);
MutableHttpRequest<String> request = HttpRequest
.PUT(apiUri("/namespaces/") + namespace + "/kv/" + key, value)
.PUT(apiUri("/namespaces/", tenantService.getTenantId(tenantId)) + namespace + "/kv/" + key, value)
.contentType(MediaType.APPLICATION_JSON_TYPE);
if (ttl != null) {

View File

@@ -18,6 +18,8 @@ import java.nio.file.Paths;
import java.util.Base64;
import java.util.List;
import static io.kestra.core.models.Plugin.isDeprecated;
@CommandLine.Command(
name = "doc",
description = "Generate documentation for all plugins currently installed"
@@ -38,6 +40,9 @@ public class PluginDocCommand extends AbstractCommand {
@CommandLine.Option(names = {"--schema"}, description = "Also write JSON Schema for each task")
private boolean schema = false;
@CommandLine.Option(names = {"--skip-deprecated"},description = "Skip deprecated plugins when generating documentations")
private boolean skipDeprecated = false;
@Override
public Integer call() throws Exception {
super.call();
@@ -45,6 +50,11 @@ public class PluginDocCommand extends AbstractCommand {
PluginRegistry registry = pluginRegistryProvider.get();
List<RegisteredPlugin> plugins = core ? registry.plugins() : registry.externalPlugins();
if (skipDeprecated) {
plugins = plugins.stream()
.filter(plugin -> !isDeprecated(plugin.getClass()))
.toList();
}
boolean hasFailures = false;
for (RegisteredPlugin registeredPlugin : plugins) {

View File

@@ -1,6 +1,7 @@
package io.kestra.cli.commands.plugins;
import io.kestra.core.contexts.MavenPluginRepositoryConfig;
import io.kestra.core.exceptions.KestraRuntimeException;
import io.kestra.core.plugins.LocalPluginManager;
import io.kestra.core.plugins.MavenPluginDownloader;
import io.kestra.core.plugins.PluginArtifact;
@@ -51,7 +52,7 @@ public class PluginInstallCommand extends AbstractCommand {
Provider<MavenPluginDownloader> mavenPluginRepositoryProvider;
@Inject
@Client("api") HttpClient httpClient;
Provider<PluginCatalogService> pluginCatalogService;
@Override
public Integer call() throws Exception {
@@ -85,7 +86,7 @@ public class PluginInstallCommand extends AbstractCommand {
}
if (all) {
PluginCatalogService service = new PluginCatalogService(httpClient, false, true);
PluginCatalogService service = pluginCatalogService.get();
dependencies = service.get().stream().map(Objects::toString).toList();
}
@@ -103,12 +104,21 @@ public class PluginInstallCommand extends AbstractCommand {
}
try (final PluginManager pluginManager = getPluginManager()) {
List<PluginArtifact> installed = pluginManager.install(
pluginArtifacts,
repositoryConfigs,
false,
pluginsPath
);
List<PluginArtifact> installed;
if (all) {
installed = new ArrayList<>(pluginArtifacts.size());
for (PluginArtifact pluginArtifact : pluginArtifacts) {
try {
installed.add(pluginManager.install(pluginArtifact, repositoryConfigs, false, pluginsPath));
} catch (KestraRuntimeException e) {
String cause = e.getCause() != null ? e.getCause().getMessage() : e.getMessage();
stdErr("Failed to install plugin {0}. Cause: {1}", pluginArtifact, cause);
}
}
} else {
installed = pluginManager.install(pluginArtifacts, repositoryConfigs, false, pluginsPath);
}
List<URI> uris = installed.stream().map(PluginArtifact::uri).toList();
stdOut("Successfully installed plugins {0} into {1}", dependencies, uris);

View File

@@ -2,6 +2,7 @@ package io.kestra.cli.commands.servers;
import com.google.common.collect.ImmutableMap;
import io.kestra.cli.services.FileChangedEventListener;
import io.kestra.cli.services.TenantIdSelectorService;
import io.kestra.core.contexts.KestraContext;
import io.kestra.core.models.ServerType;
import io.kestra.core.repositories.LocalFlowRepositoryLoader;
@@ -44,6 +45,9 @@ public class StandAloneCommand extends AbstractServerCommand {
@CommandLine.Option(names = {"-f", "--flow-path"}, description = "the flow path containing flow to inject at startup (when running with a memory flow repository)")
private File flowPath;
@CommandLine.Option(names = "--tenant", description = "Tenant identifier, Required to load flows from path with the enterprise edition")
private String tenantId;
@CommandLine.Option(names = {"--worker-thread"}, description = "the number of worker threads, defaults to four times the number of available processors. Set it to 0 to avoid starting a worker.")
private int workerThread = defaultWorkerThread();
@@ -98,7 +102,8 @@ public class StandAloneCommand extends AbstractServerCommand {
if (flowPath != null) {
try {
LocalFlowRepositoryLoader localFlowRepositoryLoader = applicationContext.getBean(LocalFlowRepositoryLoader.class);
localFlowRepositoryLoader.load(this.flowPath);
TenantIdSelectorService tenantIdSelectorService = applicationContext.getBean(TenantIdSelectorService.class);
localFlowRepositoryLoader.load(tenantIdSelectorService.getTenantId(this.tenantId), this.flowPath);
} catch (IOException e) {
throw new CommandLine.ParameterException(this.spec.commandLine(), "Invalid flow path", e);
}

View File

@@ -2,8 +2,8 @@ package io.kestra.cli.commands.templates;
import io.kestra.cli.AbstractApiCommand;
import io.kestra.cli.AbstractValidateCommand;
import io.kestra.cli.services.TenantIdSelectorService;
import io.kestra.core.models.templates.TemplateEnabled;
import io.micronaut.context.ApplicationContext;
import io.micronaut.http.HttpRequest;
import io.micronaut.http.HttpResponse;
import io.micronaut.http.MediaType;
@@ -27,9 +27,8 @@ import java.nio.file.Path;
public class TemplateExportCommand extends AbstractApiCommand {
private static final String DEFAULT_FILE_NAME = "templates.zip";
// @FIXME: Keep it for bug in micronaut that need to have inject on top level command to inject on abstract classe
@Inject
private ApplicationContext applicationContext;
private TenantIdSelectorService tenantService;
@CommandLine.Option(names = {"--namespace"}, description = "The namespace of templates to export")
public String namespace;
@@ -43,7 +42,7 @@ public class TemplateExportCommand extends AbstractApiCommand {
try(DefaultHttpClient client = client()) {
MutableHttpRequest<Object> request = HttpRequest
.GET(apiUri("/templates/export/by-query") + (namespace != null ? "?namespace=" + namespace : ""))
.GET(apiUri("/templates/export/by-query", tenantService.getTenantId(tenantId)) + (namespace != null ? "?namespace=" + namespace : ""))
.accept(MediaType.APPLICATION_OCTET_STREAM);
HttpResponse<byte[]> response = client.toBlocking().exchange(this.requestOptions(request), byte[].class);

View File

@@ -2,6 +2,7 @@ package io.kestra.cli.commands.templates.namespaces;
import io.kestra.cli.AbstractValidateCommand;
import io.kestra.cli.commands.AbstractServiceNamespaceUpdateCommand;
import io.kestra.cli.services.TenantIdSelectorService;
import io.kestra.core.models.templates.Template;
import io.kestra.core.models.templates.TemplateEnabled;
import io.kestra.core.serializers.YamlParser;
@@ -10,6 +11,7 @@ import io.micronaut.http.HttpRequest;
import io.micronaut.http.MutableHttpRequest;
import io.micronaut.http.client.exceptions.HttpClientResponseException;
import io.micronaut.http.client.netty.DefaultHttpClient;
import jakarta.inject.Inject;
import lombok.extern.slf4j.Slf4j;
import picocli.CommandLine;
@@ -27,6 +29,9 @@ import jakarta.validation.ConstraintViolationException;
@TemplateEnabled
public class TemplateNamespaceUpdateCommand extends AbstractServiceNamespaceUpdateCommand {
@Inject
private TenantIdSelectorService tenantService;
@Override
public Integer call() throws Exception {
super.call();
@@ -44,7 +49,7 @@ public class TemplateNamespaceUpdateCommand extends AbstractServiceNamespaceUpda
try (DefaultHttpClient client = client()) {
MutableHttpRequest<List<Template>> request = HttpRequest
.POST(apiUri("/templates/") + namespace + "?delete=" + delete, templates);
.POST(apiUri("/templates/", tenantService.getTenantId(tenantId)) + namespace + "?delete=" + delete, templates);
List<UpdateResult> updated = client.toBlocking().retrieve(
this.requestOptions(request),

View File

@@ -1,6 +1,6 @@
package io.kestra.cli.services;
import io.kestra.core.exceptions.DeserializationException;
import io.kestra.core.exceptions.FlowProcessingException;
import io.kestra.core.models.flows.FlowInterface;
import io.kestra.core.models.flows.FlowWithPath;
import io.kestra.core.models.flows.FlowWithSource;
@@ -12,8 +12,8 @@ import io.kestra.core.services.PluginDefaultService;
import io.micronaut.context.annotation.Requires;
import io.micronaut.context.annotation.Value;
import io.micronaut.scheduling.io.watch.FileWatchConfiguration;
import jakarta.inject.Inject;
import jakarta.annotation.Nullable;
import jakarta.inject.Inject;
import jakarta.inject.Singleton;
import jakarta.validation.ConstraintViolationException;
import lombok.extern.slf4j.Slf4j;
@@ -26,6 +26,8 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import static io.kestra.core.tenant.TenantService.MAIN_TENANT;
@Singleton
@Slf4j
@Requires(property = "micronaut.io.watch.enabled", value = "true")
@@ -111,6 +113,8 @@ public class FileChangedEventListener {
}
public void startListening(List<Path> paths) throws IOException, InterruptedException {
String tenantId = this.tenantId != null ? this.tenantId : MAIN_TENANT;
for (Path path : paths) {
path.register(watchService, StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE, StandardWatchEventKinds.ENTRY_MODIFY);
}
@@ -189,6 +193,8 @@ public class FileChangedEventListener {
}
private void loadFlowsFromFolder(Path folder) {
String tenantId = this.tenantId != null ? this.tenantId : MAIN_TENANT;
try {
Files.walkFileTree(folder, new SimpleFileVisitor<Path>() {
@Override
@@ -232,11 +238,13 @@ public class FileChangedEventListener {
}
private Optional<FlowWithSource> parseFlow(String content, Path entry) {
String tenantId = this.tenantId != null ? this.tenantId : MAIN_TENANT;
try {
FlowWithSource flow = pluginDefaultService.parseFlowWithAllDefaults(tenantId, content, false);
modelValidator.validate(flow);
return Optional.of(flow);
} catch (DeserializationException | ConstraintViolationException e) {
} catch (ConstraintViolationException | FlowProcessingException e) {
log.warn("Error while parsing flow: {}", entry, e);
}
return Optional.empty();

View File

@@ -15,7 +15,7 @@ public class LocalFlowFileWatcher implements FlowFilesManager {
@Override
public FlowWithSource createOrUpdateFlow(final GenericFlow flow) {
return flowRepository.findById(null, flow.getNamespace(), flow.getId())
return flowRepository.findById(flow.getTenantId(), flow.getNamespace(), flow.getId())
.map(previous -> flowRepository.update(flow, previous))
.orElseGet(() -> flowRepository.create(flow));
}

View File

@@ -0,0 +1,19 @@
package io.kestra.cli.services;
import static io.kestra.core.tenant.TenantService.MAIN_TENANT;
import io.kestra.core.exceptions.KestraRuntimeException;
import jakarta.inject.Singleton;
import org.apache.commons.lang3.StringUtils;
@Singleton
public class TenantIdSelectorService {
//For override purpose in Kestra EE
public String getTenantId(String tenantId) {
if (StringUtils.isNotBlank(tenantId) && !MAIN_TENANT.equals(tenantId)){
throw new KestraRuntimeException("Tenant id can only be 'main'");
}
return MAIN_TENANT;
}
}

View File

@@ -15,6 +15,9 @@ micronaut:
static:
paths: classpath:static
mapping: /static/**
root:
paths: classpath:root
mapping: /**
server:
max-request-size: 10GB
multipart:
@@ -24,13 +27,14 @@ micronaut:
write-idle-timeout: 60m
idle-timeout: 60m
netty:
max-zstd-encode-size: 67108864 # increased to 64MB from the default of 32MB
max-chunk-size: 10MB
max-header-size: 32768 # increased from the default of 8k
responses:
file:
cache-seconds: 86400
cache-control:
public: true
responses:
file:
cache-seconds: 86400
cache-control:
public: true
# Access log configuration, see https://docs.micronaut.io/latest/guide/index.html#accessLogger
access-logger:
@@ -138,8 +142,8 @@ kestra:
jdbc:
queues:
min-poll-interval: 25ms
max-poll-interval: 1000ms
poll-switch-interval: 5s
max-poll-interval: 500ms
poll-switch-interval: 60s
cleaner:
initial-delay: 1h
@@ -168,7 +172,7 @@ kestra:
values:
recoverMissedSchedules: ALL
variables:
env-vars-prefix: KESTRA_
env-vars-prefix: ENV_
cache-enabled: true
cache-size: 1000
@@ -180,7 +184,6 @@ kestra:
server:
basic-auth:
enabled: false
# These URLs will not be authenticated, by default we open some of the Micronaut default endpoints but not all for security reasons
open-urls:
- "/ping"
@@ -195,13 +198,18 @@ kestra:
liveness:
enabled: true
# The expected time between liveness probe.
interval: 5s
interval: 10s
# The timeout used to detect service failures.
timeout: 45s
timeout: 1m
# The time to wait before executing a liveness probe.
initialDelay: 45s
initialDelay: 1m
# The expected time between service heartbeats.
heartbeatInterval: 3s
service:
purge:
initial-delay: 1h
fixed-delay: 1d
retention: 30d
anonymous-usage-report:
enabled: true
uri: https://api.kestra.io/v1/reports/usages
@@ -220,4 +228,4 @@ otel:
- /health
- /env
- /prometheus
propagators: tracecontext, baggage
propagators: tracecontext, baggage

View File

@@ -13,8 +13,7 @@ import picocli.CommandLine;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertTrue;
class AppTest {
@@ -26,7 +25,7 @@ class AppTest {
try (ApplicationContext ctx = ApplicationContext.run(Environment.CLI, Environment.TEST)) {
PicocliRunner.call(App.class, ctx, "--help");
assertThat(out.toString(), containsString("kestra"));
assertThat(out.toString()).contains("kestra");
}
}
@@ -42,7 +41,7 @@ class AppTest {
new CommandLine(App.class, new MicronautFactory(ctx)).execute(args);
assertTrue(ctx.getProperty("kestra.server-type", ServerType.class).isEmpty());
assertThat(out.toString(), startsWith("Usage: kestra server " + serverType));
assertThat(out.toString()).startsWith("Usage: kestra server " + serverType);
}
}
@@ -56,9 +55,9 @@ class AppTest {
try (ApplicationContext ctx = App.applicationContext(App.class, argsWithMissingParams)) {
new CommandLine(App.class, new MicronautFactory(ctx)).execute(argsWithMissingParams);
assertThat(out.toString(), startsWith("Missing required parameters: "));
assertThat(out.toString(), containsString("Usage: kestra flow namespace update "));
assertThat(out.toString(), not(containsString("MissingParameterException: ")));
assertThat(out.toString()).startsWith("Missing required parameters: ");
assertThat(out.toString()).contains("Usage: kestra flow namespace update ");
assertThat(out.toString()).doesNotContain("MissingParameterException: ");
}
}
}

View File

@@ -4,12 +4,14 @@ import io.micronaut.configuration.picocli.PicocliRunner;
import io.micronaut.context.ApplicationContext;
import io.micronaut.context.env.Environment;
import org.junit.jupiter.api.Test;
import org.yaml.snakeyaml.Yaml;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.Map;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.StringContains.containsString;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.AssertionsForClassTypes.catchThrowable;
class ConfigPropertiesCommandTest {
@Test
@@ -20,8 +22,52 @@ class ConfigPropertiesCommandTest {
try (ApplicationContext ctx = ApplicationContext.run(Environment.CLI, Environment.TEST)) {
PicocliRunner.call(ConfigPropertiesCommand.class, ctx);
assertThat(out.toString(), containsString("activeEnvironments:"));
assertThat(out.toString(), containsString("- test"));
assertThat(out.toString()).contains("activeEnvironments:");
assertThat(out.toString()).contains("- test");
}
}
@Test
void shouldOutputCustomEnvironment() {
ByteArrayOutputStream out = new ByteArrayOutputStream();
System.setOut(new PrintStream(out));
try (ApplicationContext ctx = ApplicationContext.run(Environment.CLI, "custom-env")) {
PicocliRunner.call(ConfigPropertiesCommand.class, ctx);
assertThat(out.toString()).contains("activeEnvironments:");
assertThat(out.toString()).contains("- custom-env");
}
}
@Test
void shouldReturnZeroOnSuccess() throws Exception {
ByteArrayOutputStream out = new ByteArrayOutputStream();
System.setOut(new PrintStream(out));
try (ApplicationContext ctx = ApplicationContext.run(Environment.CLI, Environment.TEST)) {
ConfigPropertiesCommand cmd = ctx.createBean(ConfigPropertiesCommand.class);
int result = cmd.call();
assertThat(result).isZero();
}
}
@Test
void shouldOutputValidYaml() {
ByteArrayOutputStream out = new ByteArrayOutputStream();
System.setOut(new PrintStream(out));
try (ApplicationContext ctx = ApplicationContext.run(Environment.CLI, Environment.TEST)) {
PicocliRunner.call(ConfigPropertiesCommand.class, ctx);
String output = out.toString();
Yaml yaml = new Yaml();
Throwable thrown = catchThrowable(() -> {
Map<?, ?> parsed = yaml.load(output);
assertThat(parsed).isInstanceOf(Map.class);
});
assertThat(thrown).isNull();
}
}
}

View File

@@ -11,9 +11,7 @@ import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.net.URL;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.StringContains.containsString;
import static org.assertj.core.api.Assertions.assertThat;
class FlowCreateOrUpdateCommandTest {
@RetryingTest(5) // flaky on CI but cannot be reproduced even with 100 repetitions
@@ -38,7 +36,7 @@ class FlowCreateOrUpdateCommandTest {
};
PicocliRunner.call(FlowUpdatesCommand.class, ctx, args);
assertThat(out.toString(), containsString("4 flow(s)"));
assertThat(out.toString()).contains("4 flow(s)");
out.reset();
args = new String[]{
@@ -53,7 +51,7 @@ class FlowCreateOrUpdateCommandTest {
PicocliRunner.call(FlowUpdatesCommand.class, ctx, args);
// 2 delete + 1 update
assertThat(out.toString(), containsString("4 flow(s)"));
assertThat(out.toString()).contains("4 flow(s)");
}
}
@@ -80,7 +78,7 @@ class FlowCreateOrUpdateCommandTest {
};
PicocliRunner.call(FlowUpdatesCommand.class, ctx, args);
assertThat(out.toString(), containsString("4 flow(s)"));
assertThat(out.toString()).contains("4 flow(s)");
out.reset();
// no "delete" arg should behave as no-delete
@@ -93,7 +91,7 @@ class FlowCreateOrUpdateCommandTest {
};
PicocliRunner.call(FlowUpdatesCommand.class, ctx, args);
assertThat(out.toString(), containsString("1 flow(s)"));
assertThat(out.toString()).contains("1 flow(s)");
out.reset();
args = new String[]{
@@ -106,7 +104,35 @@ class FlowCreateOrUpdateCommandTest {
};
PicocliRunner.call(FlowUpdatesCommand.class, ctx, args);
assertThat(out.toString(), containsString("1 flow(s)"));
assertThat(out.toString()).contains("1 flow(s)");
}
}
@Test
void should_fail_with_incorrect_tenant() {
URL directory = FlowCreateOrUpdateCommandTest.class.getClassLoader().getResource("flows");
ByteArrayOutputStream err = new ByteArrayOutputStream();
System.setErr(new PrintStream(err));
try (ApplicationContext ctx = ApplicationContext.run(Environment.CLI, Environment.TEST)) {
EmbeddedServer embeddedServer = ctx.getBean(EmbeddedServer.class);
embeddedServer.start();
String[] args = {
"--server",
embeddedServer.getURL().toString(),
"--user",
"myuser:pass:word",
"--tenant", "incorrect",
directory.getPath(),
};
PicocliRunner.call(FlowUpdatesCommand.class, ctx, args);
assertThat(err.toString()).contains("Tenant id can only be 'main'");
err.reset();
}
}
@@ -131,8 +157,8 @@ class FlowCreateOrUpdateCommandTest {
};
Integer call = PicocliRunner.call(FlowUpdatesCommand.class, ctx, args);
assertThat(call, is(0));
assertThat(out.toString(), containsString("1 flow(s)"));
assertThat(call).isZero();
assertThat(out.toString()).contains("1 flow(s)");
}
}
}

View File

@@ -9,9 +9,7 @@ import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.net.URL;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.StringContains.containsString;
import static org.assertj.core.api.Assertions.assertThat;
class FlowDotCommandTest {
@Test
@@ -26,8 +24,8 @@ class FlowDotCommandTest {
};
Integer call = PicocliRunner.call(FlowDotCommand.class, ctx, args);
assertThat(call, is(0));
assertThat(out.toString(), containsString("\"root.date\"[shape=box];"));
assertThat(call).isZero();
assertThat(out.toString()).contains("\"root.date\"[shape=box];");
}
}
}

View File

@@ -7,8 +7,7 @@ import org.junit.jupiter.api.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.assertj.core.api.Assertions.assertThat;
class FlowExpandCommandTest {
@SuppressWarnings("deprecation")
@@ -23,22 +22,20 @@ class FlowExpandCommandTest {
};
Integer call = PicocliRunner.call(FlowExpandCommand.class, ctx, args);
assertThat(call, is(0));
assertThat(out.toString(), is(
"id: include\n" +
"namespace: io.kestra.cli\n" +
"\n" +
"# The list of tasks\n" +
"tasks:\n" +
"- id: t1\n" +
" type: io.kestra.plugin.core.debug.Return\n" +
" format: \"Lorem ipsum dolor sit amet\"\n" +
"- id: t2\n" +
" type: io.kestra.plugin.core.debug.Return\n" +
" format: |\n" +
" Lorem ipsum dolor sit amet\n" +
" Lorem ipsum dolor sit amet\n"
));
assertThat(call).isZero();
assertThat(out.toString()).isEqualTo("id: include\n" +
"namespace: io.kestra.cli\n" +
"\n" +
"# The list of tasks\n" +
"tasks:\n" +
"- id: t1\n" +
" type: io.kestra.plugin.core.debug.Return\n" +
" format: \"Lorem ipsum dolor sit amet\"\n" +
"- id: t2\n" +
" type: io.kestra.plugin.core.debug.Return\n" +
" format: |\n" +
" Lorem ipsum dolor sit amet\n" +
" Lorem ipsum dolor sit amet\n");
}
}
}

View File

@@ -14,10 +14,7 @@ import java.io.PrintStream;
import java.net.URL;
import java.util.zip.ZipFile;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.StringContains.containsString;
import static org.assertj.core.api.Assertions.assertThat;
class FlowExportCommandTest {
@Test
@@ -42,7 +39,7 @@ class FlowExportCommandTest {
directory.getPath(),
};
PicocliRunner.call(FlowNamespaceUpdateCommand.class, ctx, updateArgs);
assertThat(out.toString(), containsString("3 flow(s)"));
assertThat(out.toString()).contains("3 flow(s)");
// then we export them
String[] exportArgs = {
@@ -58,11 +55,11 @@ class FlowExportCommandTest {
};
PicocliRunner.call(FlowExportCommand.class, ctx, exportArgs);
File file = new File("/tmp/flows.zip");
assertThat(file.exists(), is(true));
assertThat(file.exists()).isTrue();
ZipFile zipFile = new ZipFile(file);
// When launching the test in a suite, there is 4 flows but when lauching individualy there is only 3
assertThat(zipFile.stream().count(), greaterThanOrEqualTo(3L));
assertThat(zipFile.stream().count()).isGreaterThanOrEqualTo(3L);
file.delete();
}

View File

@@ -10,9 +10,7 @@ import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.net.URL;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.StringContains.containsString;
import static org.assertj.core.api.Assertions.assertThat;
class FlowUpdatesCommandTest {
@Test
@@ -39,7 +37,7 @@ class FlowUpdatesCommandTest {
};
PicocliRunner.call(FlowUpdatesCommand.class, ctx, args);
assertThat(out.toString(), containsString("successfully updated !"));
assertThat(out.toString()).contains("successfully updated !");
out.reset();
args = new String[]{
@@ -56,7 +54,7 @@ class FlowUpdatesCommandTest {
PicocliRunner.call(FlowUpdatesCommand.class, ctx, args);
// 2 delete + 1 update
assertThat(out.toString(), containsString("successfully updated !"));
assertThat(out.toString()).contains("successfully updated !");
}
}
@@ -85,7 +83,7 @@ class FlowUpdatesCommandTest {
};
PicocliRunner.call(FlowUpdatesCommand.class, ctx, args);
assertThat(out.toString(), containsString("4 flow(s)"));
assertThat(out.toString()).contains("4 flow(s)");
out.reset();
// no "delete" arg should behave as no-delete
@@ -100,7 +98,7 @@ class FlowUpdatesCommandTest {
};
PicocliRunner.call(FlowUpdatesCommand.class, ctx, args);
assertThat(out.toString(), containsString("1 flow(s)"));
assertThat(out.toString()).contains("1 flow(s)");
out.reset();
args = new String[]{
@@ -115,7 +113,7 @@ class FlowUpdatesCommandTest {
};
PicocliRunner.call(FlowUpdatesCommand.class, ctx, args);
assertThat(out.toString(), containsString("1 flow(s)"));
assertThat(out.toString()).contains("1 flow(s)");
}
}
@@ -144,7 +142,7 @@ class FlowUpdatesCommandTest {
};
PicocliRunner.call(FlowUpdatesCommand.class, ctx, args);
assertThat(out.toString(), containsString("Invalid entity: flow.namespace: io.kestra.outsider_quattro_-1 - flow namespace is invalid"));
assertThat(out.toString()).contains("Invalid entity: flow.namespace: main_io.kestra.outsider_quattro_-1 - flow namespace is invalid");
}
}
@@ -171,8 +169,8 @@ class FlowUpdatesCommandTest {
};
Integer call = PicocliRunner.call(FlowUpdatesCommand.class, ctx, args);
assertThat(call, is(0));
assertThat(out.toString(), containsString("1 flow(s)"));
assertThat(call).isZero();
assertThat(out.toString()).contains("1 flow(s)");
}
}
}

View File

@@ -7,9 +7,7 @@ import org.junit.jupiter.api.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.StringContains.containsString;
import static org.assertj.core.api.Assertions.assertThat;
class FlowValidateCommandTest {
@Test
@@ -24,8 +22,8 @@ class FlowValidateCommandTest {
};
Integer call = PicocliRunner.call(FlowValidateCommand.class, ctx, args);
assertThat(call, is(0));
assertThat(out.toString(), containsString("✓ - io.kestra.cli / include"));
assertThat(call).isZero();
assertThat(out.toString()).contains("✓ - io.kestra.cli / include");
}
}
@@ -41,10 +39,10 @@ class FlowValidateCommandTest {
};
Integer call = PicocliRunner.call(FlowValidateCommand.class, ctx, args);
assertThat(call, is(0));
assertThat(out.toString(), containsString("✓ - system / warning"));
assertThat(out.toString(), containsString("⚠ - tasks[0] is deprecated"));
assertThat(out.toString(), containsString(" - io.kestra.core.tasks.log.Log is replaced by io.kestra.plugin.core.log.Log"));
assertThat(call).isZero();
assertThat(out.toString()).contains("✓ - system / warning");
assertThat(out.toString()).contains("⚠ - tasks[0] is deprecated");
assertThat(out.toString()).contains(" - io.kestra.core.tasks.log.Log is replaced by io.kestra.plugin.core.log.Log");
}
}
}

View File

@@ -10,15 +10,13 @@ import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.net.URL;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.StringContains.containsString;
public class SingleFlowCommandsTest {
import static org.assertj.core.api.Assertions.assertThat;
class SingleFlowCommandsTest {
@Test
void all() {
URL flow = SingleFlowCommandsTest.class.getClassLoader().getResource("flows/quattro.yml");
URL flow = SingleFlowCommandsTest.class.getClassLoader().getResource("crudFlow/date.yml");
ByteArrayOutputStream out = new ByteArrayOutputStream();
System.setOut(new PrintStream(out));
@@ -27,19 +25,6 @@ public class SingleFlowCommandsTest {
EmbeddedServer embeddedServer = ctx.getBean(EmbeddedServer.class);
embeddedServer.start();
String[] deleteArgs = {
"--server",
embeddedServer.getURL().toString(),
"--user",
"myuser:pass:word",
"io.kestra.outsider",
"quattro"
};
PicocliRunner.call(FlowDeleteCommand.class, ctx, deleteArgs);
assertThat(out.toString(), containsString("Flow successfully deleted !"));
out.reset();
String[] createArgs = {
"--server",
embeddedServer.getURL().toString(),
@@ -49,23 +34,36 @@ public class SingleFlowCommandsTest {
};
PicocliRunner.call(FlowCreateCommand.class, ctx, createArgs);
assertThat(out.toString(), containsString("Flow successfully created !"));
assertThat(out.toString()).contains("Flow successfully created !");
out.reset();
out.reset();String[] updateArgs = {
String[] updateArgs = {
"--server",
embeddedServer.getURL().toString(),
"--user",
"myuser:pass:word",
flow.getPath(),
"io.kestra.outsider",
"quattro"
"io.kestra.cli",
"date"
};
PicocliRunner.call(FlowUpdateCommand.class, ctx, updateArgs);
assertThat(out.toString(), containsString("Flow successfully updated !"));
assertThat(out.toString()).contains("Flow successfully updated !");
out.reset();
String[] deleteArgs = {
"--server",
embeddedServer.getURL().toString(),
"--user",
"myuser:pass:word",
"io.kestra.cli",
"date"
};
PicocliRunner.call(FlowDeleteCommand.class, ctx, deleteArgs);
assertThat(out.toString()).contains("Flow successfully deleted !");
}
}
}

View File

@@ -10,9 +10,7 @@ import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.net.URL;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.StringContains.containsString;
import static org.assertj.core.api.Assertions.assertThat;
class TemplateValidateCommandTest {
@Test
@@ -28,9 +26,9 @@ class TemplateValidateCommandTest {
};
Integer call = PicocliRunner.call(FlowValidateCommand.class, ctx, args);
assertThat(call, is(1));
assertThat(out.toString(), containsString("Unable to parse flow"));
assertThat(out.toString(), containsString("must not be empty"));
assertThat(call).isEqualTo(1);
assertThat(out.toString()).contains("Unable to parse flow");
assertThat(out.toString()).contains("must not be empty");
}
}
@@ -56,9 +54,9 @@ class TemplateValidateCommandTest {
};
Integer call = PicocliRunner.call(FlowValidateCommand.class, ctx, args);
assertThat(call, is(1));
assertThat(out.toString(), containsString("Unable to parse flow"));
assertThat(out.toString(), containsString("must not be empty"));
assertThat(call).isEqualTo(1);
assertThat(out.toString()).contains("Unable to parse flow");
assertThat(out.toString()).contains("must not be empty");
}
}
}

View File

@@ -7,9 +7,7 @@ import org.junit.jupiter.api.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.core.Is.is;
import static org.assertj.core.api.Assertions.assertThat;
class FlowNamespaceCommandTest {
@Test
@@ -21,8 +19,8 @@ class FlowNamespaceCommandTest {
String[] args = {};
Integer call = PicocliRunner.call(FlowNamespaceCommand.class, ctx, args);
assertThat(call, is(0));
assertThat(out.toString(), containsString("Usage: kestra flow namespace"));
assertThat(call).isZero();
assertThat(out.toString()).contains("Usage: kestra flow namespace");
}
}
}

View File

@@ -10,10 +10,7 @@ import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.net.URL;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.core.StringContains.containsString;
import static org.hamcrest.core.Is.is;
import static org.assertj.core.api.Assertions.assertThat;
class FlowNamespaceUpdateCommandTest {
@Test
@@ -39,7 +36,7 @@ class FlowNamespaceUpdateCommandTest {
};
PicocliRunner.call(FlowNamespaceUpdateCommand.class, ctx, args);
assertThat(out.toString(), containsString("namespace 'io.kestra.cli' successfully updated"));
assertThat(out.toString()).contains("namespace 'io.kestra.cli' successfully updated");
out.reset();
args = new String[]{
@@ -55,7 +52,7 @@ class FlowNamespaceUpdateCommandTest {
PicocliRunner.call(FlowNamespaceUpdateCommand.class, ctx, args);
// 2 delete + 1 update
assertThat(out.toString(), containsString("namespace 'io.kestra.cli' successfully updated"));
assertThat(out.toString()).contains("namespace 'io.kestra.cli' successfully updated");
}
}
@@ -81,9 +78,9 @@ class FlowNamespaceUpdateCommandTest {
};
Integer call = PicocliRunner.call(FlowNamespaceUpdateCommand.class, ctx, args);
assertThat(call, is(1));
assertThat(out.toString(), containsString("Unable to parse flows"));
assertThat(out.toString(), containsString("must not be empty"));
assertThat(call).isEqualTo(1);
assertThat(out.toString()).contains("Unable to parse flows");
assertThat(out.toString()).contains("must not be empty");
}
}
@@ -111,7 +108,7 @@ class FlowNamespaceUpdateCommandTest {
};
PicocliRunner.call(FlowNamespaceUpdateCommand.class, ctx, args);
assertThat(out.toString(), containsString("3 flow(s)"));
assertThat(out.toString()).contains("3 flow(s)");
out.reset();
// no "delete" arg should behave as no-delete
@@ -125,7 +122,7 @@ class FlowNamespaceUpdateCommandTest {
};
PicocliRunner.call(FlowNamespaceUpdateCommand.class, ctx, args);
assertThat(out.toString(), containsString("1 flow(s)"));
assertThat(out.toString()).contains("1 flow(s)");
out.reset();
args = new String[]{
@@ -139,7 +136,7 @@ class FlowNamespaceUpdateCommandTest {
};
PicocliRunner.call(FlowNamespaceUpdateCommand.class, ctx, args);
assertThat(out.toString(), containsString("1 flow(s)"));
assertThat(out.toString()).contains("1 flow(s)");
}
}
@@ -165,8 +162,8 @@ class FlowNamespaceUpdateCommandTest {
};
Integer call = PicocliRunner.call(FlowNamespaceUpdateCommand.class, ctx, args);
assertThat(call, is(0));
assertThat(out.toString(), containsString("1 flow(s)"));
assertThat(call).isZero();
assertThat(out.toString()).contains("1 flow(s)");
}
}
@@ -195,8 +192,8 @@ class FlowNamespaceUpdateCommandTest {
};
PicocliRunner.call(FlowNamespaceUpdateCommand.class, ctx, args);
assertThat(out.toString(), containsString("io.kestra.override"));
assertThat(out.toString(), not(containsString("io.kestra.cli")));
assertThat(out.toString()).contains("io.kestra.override");
assertThat(out.toString()).doesNotContain("io.kestra.cli");
}
}

View File

@@ -7,9 +7,7 @@ import org.junit.jupiter.api.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.core.Is.is;
import static org.assertj.core.api.Assertions.assertThat;
class NamespaceCommandTest {
@Test
@@ -21,8 +19,8 @@ class NamespaceCommandTest {
String[] args = {};
Integer call = PicocliRunner.call(NamespaceCommand.class, ctx, args);
assertThat(call, is(0));
assertThat(out.toString(), containsString("Usage: kestra namespace"));
assertThat(call).isZero();
assertThat(out.toString()).contains("Usage: kestra namespace");
}
}
}

View File

@@ -7,9 +7,7 @@ import org.junit.jupiter.api.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.core.Is.is;
import static org.assertj.core.api.Assertions.assertThat;
class NamespaceFilesCommandTest {
@Test
@@ -21,8 +19,8 @@ class NamespaceFilesCommandTest {
String[] args = {};
Integer call = PicocliRunner.call(NamespaceFilesCommand.class, ctx, args);
assertThat(call, is(0));
assertThat(out.toString(), containsString("Usage: kestra namespace files"));
assertThat(call).isZero();
assertThat(out.toString()).contains("Usage: kestra namespace files");
}
}
}

View File

@@ -14,8 +14,8 @@ import java.net.URISyntaxException;
import java.net.URL;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.core.StringContains.containsString;
class NamespaceFilesUpdateCommandTest {
@Test

View File

@@ -7,9 +7,7 @@ import org.junit.jupiter.api.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.core.Is.is;
import static org.assertj.core.api.Assertions.assertThat;
class KvCommandTest {
@Test
@@ -21,8 +19,8 @@ class KvCommandTest {
String[] args = {};
Integer call = PicocliRunner.call(KvCommand.class, ctx, args);
assertThat(call, is(0));
assertThat(out.toString(), containsString("Usage: kestra namespace kv"));
assertThat(call).isZero();
assertThat(out.toString()).contains("Usage: kestra namespace kv");
}
}
}

View File

@@ -16,8 +16,8 @@ import java.io.IOException;
import java.nio.file.Files;
import java.util.Map;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static io.kestra.core.tenant.TenantService.MAIN_TENANT;
import static org.assertj.core.api.Assertions.assertThat;
class KvUpdateCommandTest {
@Test
@@ -41,10 +41,10 @@ class KvUpdateCommandTest {
PicocliRunner.call(KvUpdateCommand.class, ctx, args);
KVStoreService kvStoreService = ctx.getBean(KVStoreService.class);
KVStore kvStore = kvStoreService.get(null, "io.kestra.cli", null);
KVStore kvStore = kvStoreService.get(MAIN_TENANT, "io.kestra.cli", null);
assertThat(kvStore.getValue("string").get(), is(new KVValue("stringValue")));
assertThat(((InternalKVStore)kvStore).getRawValue("string").get(), is("\"stringValue\""));
assertThat(kvStore.getValue("string").get()).isEqualTo(new KVValue("stringValue"));
assertThat(((InternalKVStore) kvStore).getRawValue("string").get()).isEqualTo("\"stringValue\"");
}
}
@@ -69,10 +69,10 @@ class KvUpdateCommandTest {
PicocliRunner.call(KvUpdateCommand.class, ctx, args);
KVStoreService kvStoreService = ctx.getBean(KVStoreService.class);
KVStore kvStore = kvStoreService.get(null, "io.kestra.cli", null);
KVStore kvStore = kvStoreService.get(MAIN_TENANT, "io.kestra.cli", null);
assertThat(kvStore.getValue("int").get(), is(new KVValue(1)));
assertThat(((InternalKVStore)kvStore).getRawValue("int").get(), is("1"));
assertThat(kvStore.getValue("int").get()).isEqualTo(new KVValue(1));
assertThat(((InternalKVStore) kvStore).getRawValue("int").get()).isEqualTo("1");
}
}
@@ -99,10 +99,10 @@ class KvUpdateCommandTest {
PicocliRunner.call(KvUpdateCommand.class, ctx, args);
KVStoreService kvStoreService = ctx.getBean(KVStoreService.class);
KVStore kvStore = kvStoreService.get(null, "io.kestra.cli", null);
KVStore kvStore = kvStoreService.get(MAIN_TENANT, "io.kestra.cli", null);
assertThat(kvStore.getValue("intStr").get(), is(new KVValue("1")));
assertThat(((InternalKVStore)kvStore).getRawValue("intStr").get(), is("\"1\""));
assertThat(kvStore.getValue("intStr").get()).isEqualTo(new KVValue("1"));
assertThat(((InternalKVStore) kvStore).getRawValue("intStr").get()).isEqualTo("\"1\"");
}
}
@@ -127,10 +127,10 @@ class KvUpdateCommandTest {
PicocliRunner.call(KvUpdateCommand.class, ctx, args);
KVStoreService kvStoreService = ctx.getBean(KVStoreService.class);
KVStore kvStore = kvStoreService.get(null, "io.kestra.cli", null);
KVStore kvStore = kvStoreService.get(MAIN_TENANT, "io.kestra.cli", null);
assertThat(kvStore.getValue("object").get(), is(new KVValue(Map.of("some", "json"))));
assertThat(((InternalKVStore)kvStore).getRawValue("object").get(), is("{some:\"json\"}"));
assertThat(kvStore.getValue("object").get()).isEqualTo(new KVValue(Map.of("some", "json")));
assertThat(((InternalKVStore) kvStore).getRawValue("object").get()).isEqualTo("{some:\"json\"}");
}
}
@@ -157,10 +157,10 @@ class KvUpdateCommandTest {
PicocliRunner.call(KvUpdateCommand.class, ctx, args);
KVStoreService kvStoreService = ctx.getBean(KVStoreService.class);
KVStore kvStore = kvStoreService.get(null, "io.kestra.cli", null);
KVStore kvStore = kvStoreService.get(MAIN_TENANT, "io.kestra.cli", null);
assertThat(kvStore.getValue("objectStr").get(), is(new KVValue("{\"some\":\"json\"}")));
assertThat(((InternalKVStore)kvStore).getRawValue("objectStr").get(), is("\"{\\\"some\\\":\\\"json\\\"}\""));
assertThat(kvStore.getValue("objectStr").get()).isEqualTo(new KVValue("{\"some\":\"json\"}"));
assertThat(((InternalKVStore) kvStore).getRawValue("objectStr").get()).isEqualTo("\"{\\\"some\\\":\\\"json\\\"}\"");
}
}
@@ -191,10 +191,10 @@ class KvUpdateCommandTest {
PicocliRunner.call(KvUpdateCommand.class, ctx, args);
KVStoreService kvStoreService = ctx.getBean(KVStoreService.class);
KVStore kvStore = kvStoreService.get(null, "io.kestra.cli", null);
KVStore kvStore = kvStoreService.get(MAIN_TENANT, "io.kestra.cli", null);
assertThat(kvStore.getValue("objectFromFile").get(), is(new KVValue(Map.of("some", "json", "from", "file"))));
assertThat(((InternalKVStore)kvStore).getRawValue("objectFromFile").get(), is("{some:\"json\",from:\"file\"}"));
assertThat(kvStore.getValue("objectFromFile").get()).isEqualTo(new KVValue(Map.of("some", "json", "from", "file")));
assertThat(((InternalKVStore) kvStore).getRawValue("objectFromFile").get()).isEqualTo("{some:\"json\",from:\"file\"}");
}
}
}

View File

@@ -8,8 +8,7 @@ import org.junit.jupiter.api.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.StringContains.containsString;
import static org.assertj.core.api.Assertions.assertThat;
class PluginCommandTest {
@@ -21,7 +20,35 @@ class PluginCommandTest {
try (ApplicationContext ctx = ApplicationContext.run(Environment.CLI, Environment.TEST)) {
PicocliRunner.call(PluginCommand.class, ctx);
assertThat(out.toString(), containsString("Usage: kestra plugins"));
assertThat(out.toString()).contains("Usage: kestra plugins");
}
}
}
// Additional Coverage:
@Test
void shouldListSubcommandsInHelp() throws Exception {
ByteArrayOutputStream out = new ByteArrayOutputStream();
PrintStream originalOut = System.out;
System.setOut(new PrintStream(out));
try {
PluginCommand cmd = new PluginCommand();
cmd.call();
String output = out.toString();
assertThat(output).contains("install");
assertThat(output).contains("uninstall");
assertThat(output).contains("list");
assertThat(output).contains("doc");
assertThat(output).contains("search");
} finally {
System.setOut(originalOut);
}
}
// Passes
@Test
void shouldNotLoadExternalPlugins() {
PluginCommand cmd = new PluginCommand();
assertThat(cmd.loadExternalPlugins()).isFalse();
}
}

View File

@@ -17,12 +17,11 @@ import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.assertj.core.api.Assertions.assertThat;
class PluginDocCommandTest {
public static final String PLUGIN_TEMPLATE_TEST = "plugin-template-test-0.18.0-SNAPSHOT.jar";
public static final String PLUGIN_TEMPLATE_TEST = "plugin-template-test-0.24.0-SNAPSHOT.jar";
@Test
void run() throws IOException, URISyntaxException {
@@ -44,16 +43,16 @@ class PluginDocCommandTest {
List<Path> files = Files.list(docPath).toList();
assertThat(files.size(), is(1));
assertThat(files.getFirst().getFileName().toString(), is("plugin-template-test"));
assertThat(files.size()).isEqualTo(1);
assertThat(files.getFirst().getFileName().toString()).isEqualTo("plugin-template-test");
var directory = files.getFirst().toFile();
assertThat(directory.isDirectory(), is(true));
assertThat(directory.listFiles().length, is(3));
assertThat(directory.isDirectory()).isTrue();
assertThat(directory.listFiles().length).isEqualTo(3);
var readme = directory.toPath().resolve("index.md");
var readmeContent = new String(Files.readAllBytes(readme));
assertThat(readmeContent, containsString("""
assertThat(readmeContent).contains("""
---
title: Template test
description: "Plugin template for Kestra"
@@ -61,18 +60,17 @@ class PluginDocCommandTest {
---
# Template test
"""));
""");
assertThat(readmeContent, containsString("""
assertThat(readmeContent).contains("""
Plugin template for Kestra
This is a more complex description of the plugin.
This is in markdown and will be inline inside the plugin page.
"""));
""");
assertThat(readmeContent, containsString(
"""
assertThat(readmeContent).contains("""
/> Subgroup title
Subgroup description
@@ -89,20 +87,20 @@ class PluginDocCommandTest {
\s
* [Reporting](./guides/reporting.md)
\s
"""));
""");
// check @PluginProperty from an interface
var task = directory.toPath().resolve("tasks/io.kestra.plugin.templates.ExampleTask.md");
String taskDoc = new String(Files.readAllBytes(task));
assertThat(taskDoc, containsString("""
assertThat(taskDoc).contains("""
### `example`
* **Type:** ==string==
* **Dynamic:** ✔️
* **Required:** ❌
**Example interface**
"""));
assertThat(taskDoc, containsString("""
""");
assertThat(taskDoc).contains("""
### `from`
* **Type:**
* ==string==
@@ -110,12 +108,12 @@ class PluginDocCommandTest {
* [==Example==](#io.kestra.core.models.annotations.example)
* **Dynamic:** ✔️
* **Required:** ✔️
"""));
""");
var authenticationGuide = directory.toPath().resolve("guides/authentication.md");
assertThat(new String(Files.readAllBytes(authenticationGuide)), containsString("This is how to authenticate for this plugin:"));
assertThat(new String(Files.readAllBytes(authenticationGuide))).contains("This is how to authenticate for this plugin:");
var reportingGuide = directory.toPath().resolve("guides/reporting.md");
assertThat(new String(Files.readAllBytes(reportingGuide)), containsString("This is the reporting of the plugin:"));
assertThat(new String(Files.readAllBytes(reportingGuide))).contains("This is the reporting of the plugin:");
}
}
}

View File

@@ -10,8 +10,7 @@ import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.assertj.core.api.Assertions.assertThat;
class PluginInstallCommandTest {
@@ -26,8 +25,8 @@ class PluginInstallCommandTest {
List<Path> files = Files.list(pluginsPath).toList();
assertThat(files.size(), is(1));
assertThat(files.getFirst().getFileName().toString(), is("io_kestra_plugin__plugin-notifications__0_6_0.jar"));
assertThat(files.size()).isEqualTo(1);
assertThat(files.getFirst().getFileName().toString()).isEqualTo("io_kestra_plugin__plugin-notifications__0_6_0.jar");
}
}
@@ -42,9 +41,9 @@ class PluginInstallCommandTest {
List<Path> files = Files.list(pluginsPath).toList();
assertThat(files.size(), is(1));
assertThat(files.getFirst().getFileName().toString(), startsWith("io_kestra_plugin__plugin-notifications__"));
assertThat(files.getFirst().getFileName().toString(), not(containsString("LATEST")));
assertThat(files.size()).isEqualTo(1);
assertThat(files.getFirst().getFileName().toString()).startsWith("io_kestra_plugin__plugin-notifications__");
assertThat(files.getFirst().getFileName().toString()).doesNotContain("LATEST");
}
}
@@ -60,8 +59,8 @@ class PluginInstallCommandTest {
List<Path> files = Files.list(pluginsPath).toList();
assertThat(files.size(), is(1));
assertThat(files.getFirst().getFileName().toString(), is("io_kestra_storage__storage-s3__0_12_1.jar"));
assertThat(files.size()).isEqualTo(1);
assertThat(files.getFirst().getFileName().toString()).isEqualTo("io_kestra_storage__storage-s3__0_12_1.jar");
}
}
}

View File

@@ -16,12 +16,11 @@ import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Objects;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.StringContains.containsString;
import static org.assertj.core.api.Assertions.assertThat;
class PluginListCommandTest {
private static final String PLUGIN_TEMPLATE_TEST = "plugin-template-test-0.18.0-SNAPSHOT.jar";
private static final String PLUGIN_TEMPLATE_TEST = "plugin-template-test-0.24.0-SNAPSHOT.jar";
@Test
void shouldListPluginsInstalledLocally() throws IOException, URISyntaxException {
@@ -41,7 +40,7 @@ class PluginListCommandTest {
String[] args = {"--plugins", pluginsPath.toAbsolutePath().toString()};
PicocliRunner.call(PluginListCommand.class, ctx, args);
assertThat(out.toString(), containsString("io.kestra.plugin.templates.Example"));
assertThat(out.toString()).contains("io.kestra.plugin.templates.Example");
}
}
}

View File

@@ -13,8 +13,7 @@ import java.io.PrintStream;
import java.util.Map;
import static com.github.tomakehurst.wiremock.client.WireMock.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.assertj.core.api.Assertions.assertThat;
@WireMockTest(httpPort = 28181)
class PluginSearchCommandTest {
@@ -61,9 +60,9 @@ class PluginSearchCommandTest {
PicocliRunner.call(PluginSearchCommand.class, ctx, args);
String output = outputStreamCaptor.toString().trim();
assertThat(output, containsString("Found 1 plugins matching 'notifications'"));
assertThat(output, containsString("plugin-notifications"));
assertThat(output, not(containsString("plugin-scripts")));
assertThat(output).contains("Found 1 plugins matching 'notifications'");
assertThat(output).contains("plugin-notifications");
assertThat(output).doesNotContain("plugin-scripts");
}
}
@@ -97,9 +96,9 @@ class PluginSearchCommandTest {
PicocliRunner.call(PluginSearchCommand.class, ctx, args);
String output = outputStreamCaptor.toString().trim();
assertThat(output, containsString("Found 2 plugins"));
assertThat(output, containsString("plugin-notifications"));
assertThat(output, containsString("plugin-scripts"));
assertThat(output).contains("Found 2 plugins");
assertThat(output).contains("plugin-notifications");
assertThat(output).contains("plugin-scripts");
}
}
}

View File

@@ -0,0 +1,33 @@
package io.kestra.cli.commands.servers;
import static org.assertj.core.api.Assertions.assertThat;
import io.kestra.cli.App;
import io.micronaut.configuration.picocli.PicocliRunner;
import io.micronaut.context.ApplicationContext;
import io.micronaut.context.env.Environment;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import org.junit.jupiter.api.Test;
public class TenantIdSelectorServiceTest {
@Test
void should_fail_without_tenant_id() {
ByteArrayOutputStream err = new ByteArrayOutputStream();
System.setErr(new PrintStream(err));
try (ApplicationContext ctx = ApplicationContext.run(Environment.CLI, Environment.TEST)) {
String[] start = {
"server", "standalone",
"-f", "unused",
"--tenant", "wrong_tenant"
};
PicocliRunner.call(App.class, ctx, start);
assertThat(err.toString()).contains("Tenant id can only be 'main'");
err.reset();
}
}
}

View File

@@ -11,9 +11,7 @@ import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.net.URL;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.StringContains.containsString;
import static org.assertj.core.api.Assertions.assertThat;
class ReindexCommandTest {
@Test
@@ -36,7 +34,7 @@ class ReindexCommandTest {
directory.getPath(),
};
PicocliRunner.call(FlowNamespaceUpdateCommand.class, ctx, updateArgs);
assertThat(out.toString(), containsString("3 flow(s)"));
assertThat(out.toString()).contains("3 flow(s)");
// then we reindex them
String[] reindexArgs = {
@@ -44,9 +42,9 @@ class ReindexCommandTest {
"flow",
};
Integer call = PicocliRunner.call(ReindexCommand.class, ctx, reindexArgs);
assertThat(call, is(0));
assertThat(call).isZero();
// in local it reindex 3 flows and in CI 4 for an unknown reason
assertThat(out.toString(), containsString("Successfully reindex"));
assertThat(out.toString()).contains("Successfully reindex");
}
}
}

View File

@@ -7,9 +7,7 @@ import org.junit.jupiter.api.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.core.Is.is;
import static org.assertj.core.api.Assertions.assertThat;
class DatabaseCommandTest {
@Test
@@ -21,8 +19,8 @@ class DatabaseCommandTest {
String[] args = {};
Integer call = PicocliRunner.call(DatabaseCommand.class, ctx, args);
assertThat(call, is(0));
assertThat(out.toString(), containsString("Usage: kestra sys database"));
assertThat(call).isZero();
assertThat(out.toString()).contains("Usage: kestra sys database");
}
}
}

View File

@@ -8,9 +8,7 @@ import org.junit.jupiter.api.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.core.Is.is;
import static org.assertj.core.api.Assertions.assertThat;
class StateStoreCommandTest {
@Test
@@ -22,8 +20,8 @@ class StateStoreCommandTest {
String[] args = {};
Integer call = PicocliRunner.call(StateStoreCommand.class, ctx, args);
assertThat(call, is(0));
assertThat(out.toString(), containsString("Usage: kestra sys state-store"));
assertThat(call).isZero();
assertThat(out.toString()).contains("Usage: kestra sys state-store");
}
}
}

View File

@@ -25,8 +25,7 @@ import java.net.URI;
import java.util.List;
import java.util.Map;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.assertj.core.api.Assertions.assertThat;
class StateStoreMigrateCommandTest {
@Test
@@ -54,10 +53,7 @@ class StateStoreMigrateCommandTest {
oldStateStoreUri,
new ByteArrayInputStream("my-value".getBytes())
);
assertThat(
storage.exists(tenantId, flow.getNamespace(), oldStateStoreUri),
is(true)
);
assertThat(storage.exists(tenantId, flow.getNamespace(), oldStateStoreUri)).isTrue();
RunContext runContext = ctx.getBean(RunContextFactory.class).of(flow, Map.of("flow", Map.of(
"tenantId", tenantId,
@@ -70,13 +66,10 @@ class StateStoreMigrateCommandTest {
String[] args = {};
Integer call = PicocliRunner.call(StateStoreMigrateCommand.class, ctx, args);
assertThat(new String(stateStore.getState(true, "my-state", "sub-name", "my-taskrun-value").readAllBytes()), is("my-value"));
assertThat(
storage.exists(tenantId, flow.getNamespace(), oldStateStoreUri),
is(false)
);
assertThat(new String(stateStore.getState(true, "my-state", "sub-name", "my-taskrun-value").readAllBytes())).isEqualTo("my-value");
assertThat(storage.exists(tenantId, flow.getNamespace(), oldStateStoreUri)).isFalse();
assertThat(call, is(0));
assertThat(call).isZero();
}
}
}

View File

@@ -15,9 +15,7 @@ import java.net.URL;
import java.util.Map;
import java.util.zip.ZipFile;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.StringContains.containsString;
import static org.hamcrest.core.Is.is;
import static org.assertj.core.api.Assertions.assertThat;
class TemplateExportCommandTest {
@Test
@@ -42,7 +40,7 @@ class TemplateExportCommandTest {
};
PicocliRunner.call(TemplateNamespaceUpdateCommand.class, ctx, args);
assertThat(out.toString(), containsString("3 template(s)"));
assertThat(out.toString()).contains("3 template(s)");
// then we export them
String[] exportArgs = {
@@ -56,9 +54,9 @@ class TemplateExportCommandTest {
};
PicocliRunner.call(TemplateExportCommand.class, ctx, exportArgs);
File file = new File("/tmp/templates.zip");
assertThat(file.exists(), is(true));
assertThat(file.exists()).isTrue();
ZipFile zipFile = new ZipFile(file);
assertThat(zipFile.stream().count(), is(3L));
assertThat(zipFile.stream().count()).isEqualTo(3L);
file.delete();
}

View File

@@ -11,11 +11,9 @@ import java.io.PrintStream;
import java.net.URL;
import java.util.Map;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.StringContains.containsString;
import static org.assertj.core.api.Assertions.assertThat;
public class TemplateValidateCommandTest {
class TemplateValidateCommandTest {
@Test
void runLocal() {
URL directory = TemplateValidateCommandTest.class.getClassLoader().getResource("invalidsTemplates/template.yml");
@@ -29,9 +27,9 @@ public class TemplateValidateCommandTest {
};
Integer call = PicocliRunner.call(TemplateValidateCommand.class, ctx, args);
assertThat(call, is(1));
assertThat(out.toString(), containsString("Unable to parse template"));
assertThat(out.toString(), containsString("must not be empty"));
assertThat(call).isEqualTo(1);
assertThat(out.toString()).contains("Unable to parse template");
assertThat(out.toString()).contains("must not be empty");
}
}
@@ -55,9 +53,9 @@ public class TemplateValidateCommandTest {
};
Integer call = PicocliRunner.call(TemplateValidateCommand.class, ctx, args);
assertThat(call, is(1));
assertThat(out.toString(), containsString("Unable to parse template"));
assertThat(out.toString(), containsString("must not be empty"));
assertThat(call).isEqualTo(1);
assertThat(out.toString()).contains("Unable to parse template");
assertThat(out.toString()).contains("must not be empty");
}
}
}

View File

@@ -7,9 +7,7 @@ import org.junit.jupiter.api.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.core.Is.is;
import static org.assertj.core.api.Assertions.assertThat;
class TemplateNamespaceCommandTest {
@Test
@@ -21,8 +19,8 @@ class TemplateNamespaceCommandTest {
String[] args = {};
Integer call = PicocliRunner.call(TemplateNamespaceCommand.class, ctx, args);
assertThat(call, is(0));
assertThat(out.toString(), containsString("Usage: kestra template namespace"));
assertThat(call).isZero();
assertThat(out.toString()).contains("Usage: kestra template namespace");
}
}
}

View File

@@ -11,8 +11,7 @@ import java.io.PrintStream;
import java.net.URL;
import java.util.Map;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.StringContains.containsString;
import static org.assertj.core.api.Assertions.assertThat;
class TemplateNamespaceUpdateCommandTest {
@Test
@@ -37,7 +36,7 @@ class TemplateNamespaceUpdateCommandTest {
};
PicocliRunner.call(TemplateNamespaceUpdateCommand.class, ctx, args);
assertThat(out.toString(), containsString("3 template(s)"));
assertThat(out.toString()).contains("3 template(s)");
}
}
@@ -64,8 +63,8 @@ class TemplateNamespaceUpdateCommandTest {
Integer call = PicocliRunner.call(TemplateNamespaceUpdateCommand.class, ctx, args);
// assertThat(call, is(1));
assertThat(out.toString(), containsString("Unable to parse templates"));
assertThat(out.toString(), containsString("must not be empty"));
assertThat(out.toString()).contains("Unable to parse templates");
assertThat(out.toString()).contains("must not be empty");
}
}
@@ -93,7 +92,7 @@ class TemplateNamespaceUpdateCommandTest {
};
PicocliRunner.call(TemplateNamespaceUpdateCommand.class, ctx, args);
assertThat(out.toString(), containsString("3 template(s)"));
assertThat(out.toString()).contains("3 template(s)");
String[] newArgs = {
"--server",
@@ -107,7 +106,7 @@ class TemplateNamespaceUpdateCommandTest {
};
PicocliRunner.call(TemplateNamespaceUpdateCommand.class, ctx, newArgs);
assertThat(out.toString(), containsString("1 template(s)"));
assertThat(out.toString()).contains("1 template(s)");
}
}
}

View File

@@ -10,8 +10,7 @@ import java.io.IOException;
import java.nio.file.Files;
import java.util.Map;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.assertj.core.api.Assertions.assertThat;
class DeleteConfigurationApplicationListenersTest {
@@ -28,7 +27,7 @@ class DeleteConfigurationApplicationListenersTest {
);
try (ApplicationContext ctx = ApplicationContext.run(mapPropertySource, Environment.CLI, Environment.TEST)) {
assertThat(tempFile.exists(), is(false));
assertThat(tempFile.exists()).isFalse();
}
}
}

View File

@@ -18,9 +18,9 @@ import java.util.concurrent.Executors;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicBoolean;
import static io.kestra.core.tenant.TenantService.MAIN_TENANT;
import static io.kestra.core.utils.Rethrow.throwRunnable;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.assertj.core.api.Assertions.assertThat;
@MicronautTest(environments = {"test", "file-watch"}, transactional = false)
class FileChangedEventListenerTest {
@@ -44,6 +44,7 @@ class FileChangedEventListenerTest {
@AfterAll
static void tearDown() throws IOException {
if (Files.exists(Path.of(FILE_WATCH))) {
FileUtils.cleanDirectory(Path.of(FILE_WATCH).toFile());
FileUtils.deleteDirectory(Path.of(FILE_WATCH).toFile());
}
}
@@ -58,7 +59,7 @@ class FileChangedEventListenerTest {
@RetryingTest(5) // Flaky on CI but always pass locally
void test() throws IOException, TimeoutException {
// remove the flow if it already exists
flowRepository.findByIdWithSource(null, "io.kestra.tests.watch", "myflow").ifPresent(flow -> flowRepository.delete(flow));
flowRepository.findByIdWithSource(MAIN_TENANT, "io.kestra.tests.watch", "myflow").ifPresent(flow -> flowRepository.delete(flow));
// create a basic flow
String flow = """
@@ -72,19 +73,19 @@ class FileChangedEventListenerTest {
""";
Files.write(Path.of(FILE_WATCH + "/myflow.yaml"), flow.getBytes());
Await.until(
() -> flowRepository.findById(null, "io.kestra.tests.watch", "myflow").isPresent(),
() -> flowRepository.findById(MAIN_TENANT, "io.kestra.tests.watch", "myflow").isPresent(),
Duration.ofMillis(100),
Duration.ofSeconds(10)
);
Flow myflow = flowRepository.findById(null, "io.kestra.tests.watch", "myflow").orElseThrow();
assertThat(myflow.getTasks(), hasSize(1));
assertThat(myflow.getTasks().getFirst().getId(), is("hello"));
assertThat(myflow.getTasks().getFirst().getType(), is("io.kestra.plugin.core.log.Log"));
Flow myflow = flowRepository.findById(MAIN_TENANT, "io.kestra.tests.watch", "myflow").orElseThrow();
assertThat(myflow.getTasks()).hasSize(1);
assertThat(myflow.getTasks().getFirst().getId()).isEqualTo("hello");
assertThat(myflow.getTasks().getFirst().getType()).isEqualTo("io.kestra.plugin.core.log.Log");
// delete the flow
Files.delete(Path.of(FILE_WATCH + "/myflow.yaml"));
Await.until(
() -> flowRepository.findById(null, "io.kestra.tests.watch", "myflow").isEmpty(),
() -> flowRepository.findById(MAIN_TENANT, "io.kestra.tests.watch", "myflow").isEmpty(),
Duration.ofMillis(100),
Duration.ofSeconds(10)
);
@@ -93,7 +94,7 @@ class FileChangedEventListenerTest {
@RetryingTest(5) // Flaky on CI but always pass locally
void testWithPluginDefault() throws IOException, TimeoutException {
// remove the flow if it already exists
flowRepository.findByIdWithSource(null, "io.kestra.tests.watch", "pluginDefault").ifPresent(flow -> flowRepository.delete(flow));
flowRepository.findByIdWithSource(MAIN_TENANT, "io.kestra.tests.watch", "pluginDefault").ifPresent(flow -> flowRepository.delete(flow));
// create a flow with plugin default
String pluginDefault = """
@@ -111,19 +112,19 @@ class FileChangedEventListenerTest {
""";
Files.write(Path.of(FILE_WATCH + "/plugin-default.yaml"), pluginDefault.getBytes());
Await.until(
() -> flowRepository.findById(null, "io.kestra.tests.watch", "pluginDefault").isPresent(),
() -> flowRepository.findById(MAIN_TENANT, "io.kestra.tests.watch", "pluginDefault").isPresent(),
Duration.ofMillis(100),
Duration.ofSeconds(10)
);
Flow pluginDefaultFlow = flowRepository.findById(null, "io.kestra.tests.watch", "pluginDefault").orElseThrow();
assertThat(pluginDefaultFlow.getTasks(), hasSize(1));
assertThat(pluginDefaultFlow.getTasks().getFirst().getId(), is("helloWithDefault"));
assertThat(pluginDefaultFlow.getTasks().getFirst().getType(), is("io.kestra.plugin.core.log.Log"));
Flow pluginDefaultFlow = flowRepository.findById(MAIN_TENANT, "io.kestra.tests.watch", "pluginDefault").orElseThrow();
assertThat(pluginDefaultFlow.getTasks()).hasSize(1);
assertThat(pluginDefaultFlow.getTasks().getFirst().getId()).isEqualTo("helloWithDefault");
assertThat(pluginDefaultFlow.getTasks().getFirst().getType()).isEqualTo("io.kestra.plugin.core.log.Log");
// delete both files
Files.delete(Path.of(FILE_WATCH + "/plugin-default.yaml"));
Await.until(
() -> flowRepository.findById(null, "io.kestra.tests.watch", "pluginDefault").isEmpty(),
() -> flowRepository.findById(MAIN_TENANT, "io.kestra.tests.watch", "pluginDefault").isEmpty(),
Duration.ofMillis(100),
Duration.ofSeconds(10)
);

View File

@@ -2,6 +2,7 @@ micronaut:
io:
watch:
enabled: true
tenantId: main
paths:
- build/file-watch

View File

@@ -17,7 +17,7 @@ kestra:
central:
url: https://repo.maven.apache.org/maven2/
sonatype:
url: https://s01.oss.sonatype.org/content/repositories/snapshots/
url: https://central.sonatype.com/repository/maven-snapshots/
server:
liveness:
enabled: false

View File

@@ -0,0 +1,7 @@
id: date
namespace: io.kestra.cli
tasks:
- id: date
type: io.kestra.plugin.core.debug.Return
format: "{{taskrun.startDate}}"

View File

@@ -56,21 +56,23 @@ component_management:
name: Tests
paths:
- tests/**
- component_id: ui
name: Ui
paths:
- ui/**
- component_id: webserver
name: Webserver
paths:
- webserver/**
ignore:
- ui/**
# we are not mature yet to have a ui code coverage
flag_management:
default_rules:
carryforward: true
statuses:
- type: project
target: 80%
threshold: 1%
target: 70%
threshold: 10%
- type: patch
target: 90%
target: 75%
threshold: 10%

View File

@@ -36,6 +36,8 @@ dependencies {
implementation group: 'de.focus-shift', name: 'jollyday-jaxb'
implementation 'nl.basjes.gitignore:gitignore-reader'
implementation group: 'dev.failsafe', name: 'failsafe'
implementation 'com.github.ben-manes.caffeine:caffeine'
implementation 'com.github.ksuid:ksuid:1.1.3'
api 'org.apache.httpcomponents.client5:httpclient5'
// plugins
@@ -73,7 +75,9 @@ dependencies {
testImplementation "io.micronaut:micronaut-http-server-netty"
testImplementation "io.micronaut:micronaut-management"
testImplementation "org.testcontainers:testcontainers:1.20.6"
testImplementation "org.testcontainers:junit-jupiter:1.20.6"
testImplementation "org.bouncycastle:bcpkix-jdk18on:1.80"
testImplementation "org.testcontainers:testcontainers:1.21.3"
testImplementation "org.testcontainers:junit-jupiter:1.21.3"
testImplementation "org.bouncycastle:bcpkix-jdk18on:1.81"
testImplementation "org.wiremock:wiremock-jetty12"
}

View File

@@ -0,0 +1,92 @@
package io.kestra.core.cache;
import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Policy;
import com.github.benmanes.caffeine.cache.stats.CacheStats;
import org.jspecify.annotations.NonNull;
import org.jspecify.annotations.Nullable;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.function.Function;
/**
* A No-Op implementation of a Caffeine Cache.
* Useful to disable caching but still use a cache to avoid if/else chains
*/
public class NoopCache<K, V> implements Cache<K, V> {
private static final ConcurrentMap<?, ?> EMPTY_MAP = new ConcurrentHashMap<>(0);
@Override
public @Nullable V getIfPresent(K key) {
return null;
}
@Override
public V get(K key, Function<? super K, ? extends V> mappingFunction) {
return mappingFunction.apply(key);
}
@Override
public Map<K, @NonNull V> getAllPresent(Iterable<? extends K> keys) {
return Collections.emptyMap();
}
@Override
public Map<K, @NonNull V> getAll(Iterable<? extends K> keys, Function<? super Set<? extends K>, ? extends Map<? extends K, ? extends @NonNull V>> mappingFunction) {
return Collections.emptyMap();
}
@Override
public void put(K key, @NonNull V value) {
// just do nothing
}
@Override
public void putAll(Map<? extends K, ? extends @NonNull V> map) {
// just do nothing
}
@Override
public void invalidate(K key) {
// just do nothing
}
@Override
public void invalidateAll(Iterable<? extends K> keys) {
// just do nothing
}
@Override
public void invalidateAll() {
// just do nothing
}
@Override
public long estimatedSize() {
return 0;
}
@Override
public CacheStats stats() {
return CacheStats.empty();
}
@Override
public ConcurrentMap<K, @NonNull V> asMap() {
return (ConcurrentMap<K, V>) EMPTY_MAP;
}
@Override
public void cleanUp() {
// just do nothing
}
@Override
public Policy<K, @NonNull V> policy() {
throw new UnsupportedOperationException();
}
}

View File

@@ -2,6 +2,7 @@ package io.kestra.core.contexts;
import io.kestra.core.exceptions.KestraRuntimeException;
import io.kestra.core.plugins.DefaultPluginRegistry;
import io.kestra.core.plugins.PluginCatalogService;
import io.kestra.core.plugins.PluginRegistry;
import io.kestra.core.storages.StorageInterface;
import io.kestra.core.storages.StorageInterfaceFactory;
@@ -13,6 +14,8 @@ import io.micronaut.context.annotation.Value;
import io.micronaut.core.annotation.Nullable;
import io.micronaut.core.convert.format.MapFormat;
import io.micronaut.core.naming.conventions.StringConvention;
import io.micronaut.http.client.HttpClient;
import io.micronaut.http.client.annotation.Client;
import jakarta.inject.Inject;
import jakarta.inject.Singleton;
import jakarta.validation.Validator;
@@ -35,6 +38,11 @@ public class KestraBeansFactory {
@Value("${kestra.storage.type}")
protected Optional<String> storageType;
@Singleton
public PluginCatalogService pluginCatalogService(@Client("api") HttpClient httpClient) {
return new PluginCatalogService(httpClient, false, true);
}
@Requires(missingBeans = PluginRegistry.class)
@Singleton
public PluginRegistry pluginRegistry() {

View File

@@ -2,11 +2,13 @@ package io.kestra.core.contexts;
import io.kestra.core.models.ServerType;
import io.kestra.core.plugins.PluginRegistry;
import io.kestra.core.storages.StorageInterface;
import io.kestra.core.utils.VersionProvider;
import io.micronaut.context.ApplicationContext;
import io.micronaut.context.annotation.Context;
import io.micronaut.context.annotation.Requires;
import io.micronaut.context.env.Environment;
import io.micronaut.context.env.PropertySource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -80,6 +82,8 @@ public abstract class KestraContext {
*/
public abstract PluginRegistry getPluginRegistry();
public abstract StorageInterface getStorageInterface();
/**
* Shutdowns the Kestra application.
*/
@@ -146,7 +150,7 @@ public abstract class KestraContext {
.ifPresent(val -> configs.put(KESTRA_WORKER_GROUP_KEY, val));
if (!configs.isEmpty()) {
environment.addPropertySource("kestra-runtime", configs);
environment.addPropertySource(PropertySource.of("kestra-runtime", configs));
}
}
@@ -172,5 +176,11 @@ public abstract class KestraContext {
// Lazy init of the PluginRegistry.
return this.applicationContext.getBean(PluginRegistry.class);
}
@Override
public StorageInterface getStorageInterface() {
// Lazy init of the PluginRegistry.
return this.applicationContext.getBean(StorageInterface.class);
}
}
}

View File

@@ -0,0 +1,26 @@
package io.kestra.core.debug;
import jakarta.annotation.Nullable;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
@Getter
public class Breakpoint {
@NotNull
private String id;
@Nullable
private String value;
public static Breakpoint of(String breakpoint) {
if (breakpoint.indexOf('.') > 0) {
return new Breakpoint(breakpoint.substring(0, breakpoint.indexOf('.')), breakpoint.substring(breakpoint.indexOf('.') + 1));
} else {
return new Breakpoint(breakpoint, null);
}
}
}

View File

@@ -1,9 +1,6 @@
package io.kestra.core.docs;
import com.google.common.base.CaseFormat;
import io.kestra.core.models.Plugin;
import io.kestra.core.models.tasks.retrys.AbstractRetry;
import io.kestra.core.models.tasks.runners.TaskRunner;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
@@ -59,7 +56,7 @@ public abstract class AbstractClassDocumentation<T> {
.filter(entry -> (baseCls == null) || !entry.getKey().startsWith("io.kestra.core.models.flows.input."))
.map(entry -> {
Map<String, Object> value = (Map<String, Object>) entry.getValue();
value.put("properties", flatten(properties(value), required(value), isTypeToKeep(entry.getKey())));
value.put("properties", flatten(properties(value), required(value), null));
return new AbstractMap.SimpleEntry<>(
entry.getKey(),
@@ -92,20 +89,13 @@ public abstract class AbstractClassDocumentation<T> {
}
if (this.propertiesSchema.containsKey("properties")) {
this.inputs = flatten(properties(this.propertiesSchema), required(this.propertiesSchema));
this.inputs = flattenWithoutType(properties(this.propertiesSchema), required(this.propertiesSchema));
}
}
protected static Map<String, Object> flatten(Map<String, Object> map, List<String> required) {
protected static Map<String, Object> flattenWithoutType(Map<String, Object> map, List<String> required) {
map.remove("type");
return flatten(map, required, (String) null);
}
protected static Map<String, Object> flatten(Map<String, Object> map, List<String> required, Boolean keepType) {
if (!keepType) {
map.remove("type");
}
return flatten(map, required, (String) null);
return flatten(map, required, null);
}
@SuppressWarnings("unchecked")
@@ -141,23 +131,6 @@ public abstract class AbstractClassDocumentation<T> {
return result;
}
// Some task can have the `type` property but not to represent the task
// so we cant to keep it in the doc
private Boolean isTypeToKeep(String key){
try {
if (AbstractRetry.class.isAssignableFrom(Class.forName(key))) {
return true;
}
if (TaskRunner.class.isAssignableFrom(Class.forName(key))) {
return true;
}
} catch (ClassNotFoundException ignored) {
log.debug(ignored.getMessage(), ignored);
}
return false;
}
protected static String flattenKey(String current, String parent) {
return (parent != null ? parent + "." : "") + current;
}

View File

@@ -1,14 +1,22 @@
package io.kestra.core.docs;
import io.kestra.core.plugins.PluginClassAndMetadata;
import lombok.*;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import java.util.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.concurrent.ConcurrentHashMap;
@Getter
@EqualsAndHashCode
@ToString
public class ClassPluginDocumentation<T> extends AbstractClassDocumentation<T> {
private static final Map<PluginDocIdentifier, ClassPluginDocumentation<?>> CACHE = new ConcurrentHashMap<>();
private String icon;
private String group;
protected String docLicense;
@@ -50,7 +58,7 @@ public class ClassPluginDocumentation<T> extends AbstractClassDocumentation<T> {
}
if (this.outputsSchema.containsKey("properties")) {
this.outputs = flatten(properties(this.outputsSchema), required(this.outputsSchema));
this.outputs = flattenWithoutType(properties(this.outputsSchema), required(this.outputsSchema));
}
// metrics
@@ -73,8 +81,12 @@ public class ClassPluginDocumentation<T> extends AbstractClassDocumentation<T> {
}
}
public static <T> ClassPluginDocumentation<T> of(JsonSchemaGenerator jsonSchemaGenerator, PluginClassAndMetadata<T> plugin, boolean allProperties) {
return new ClassPluginDocumentation<>(jsonSchemaGenerator, plugin, allProperties);
public static <T> ClassPluginDocumentation<T> of(JsonSchemaGenerator jsonSchemaGenerator, PluginClassAndMetadata<T> plugin, String version, boolean allProperties) {
//noinspection unchecked
return (ClassPluginDocumentation<T>) CACHE.computeIfAbsent(
new PluginDocIdentifier(plugin.type(), version, allProperties),
(key) -> new ClassPluginDocumentation<>(jsonSchemaGenerator, plugin, allProperties)
);
}
@AllArgsConstructor
@@ -85,5 +97,11 @@ public class ClassPluginDocumentation<T> extends AbstractClassDocumentation<T> {
String unit;
String description;
}
private record PluginDocIdentifier(String pluginClassAndVersion, boolean allProperties) {
public PluginDocIdentifier(Class<?> pluginClass, String version, boolean allProperties) {
this(pluginClass.getName() + ":" + version, allProperties);
}
}
}

View File

@@ -7,6 +7,7 @@ import io.kestra.core.models.tasks.logs.LogExporter;
import io.kestra.core.models.tasks.runners.TaskRunner;
import io.kestra.core.models.tasks.Task;
import io.kestra.core.models.triggers.AbstractTrigger;
import io.kestra.core.plugins.AdditionalPlugin;
import io.kestra.core.plugins.PluginClassAndMetadata;
import io.kestra.core.plugins.RegisteredPlugin;
import io.kestra.core.runners.pebble.Extension;
@@ -75,6 +76,7 @@ public class DocumentationGenerator {
//noinspection unchecked
result.addAll(this.generate(registeredPlugin, registeredPlugin.getTaskRunners(), (Class) TaskRunner.class, "task-runners"));
result.addAll(this.generate(registeredPlugin, registeredPlugin.getLogExporters(), (Class) LogExporter.class, "log-exporters"));
result.addAll(this.generate(registeredPlugin, registeredPlugin.getAdditionalPlugins(), AdditionalPlugin.class, "additional-plugins"));
result.addAll(guides(registeredPlugin));
@@ -225,7 +227,7 @@ public class DocumentationGenerator {
baseCls,
null
);
return ClassPluginDocumentation.of(jsonSchemaGenerator, metadata, true);
return ClassPluginDocumentation.of(jsonSchemaGenerator, metadata, registeredPlugin.version(), true);
})
.map(pluginDocumentation -> {
try {

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