-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/async-routes
- Loading branch information
Showing
102 changed files
with
2,431 additions
and
697 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
core/src/main/java/io/kestra/core/models/dashboards/GlobalFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.kestra.core.models.dashboards; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
import java.time.ZonedDateTime; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@SuperBuilder | ||
public class GlobalFilter { | ||
private ZonedDateTime startDate; | ||
private ZonedDateTime endDate; | ||
private Integer pageSize; | ||
private Integer pageNumber; | ||
private String namespace; | ||
private Map<String, String> labels; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
core/src/main/java/io/kestra/core/models/property/PropertyValueExtractor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package io.kestra.core.models.property; | ||
|
||
import io.micronaut.context.annotation.Context; | ||
import jakarta.validation.valueextraction.ExtractedValue; | ||
import jakarta.validation.valueextraction.ValueExtractor; | ||
|
||
/** | ||
* Jakarta Bean Validation value extractor for a Property.<br> | ||
* | ||
* This is used by the @{@link io.kestra.core.validations.factory.CustomValidatorFactoryProvider}. | ||
*/ | ||
@Context | ||
public class PropertyValueExtractor implements ValueExtractor<Property<@ExtractedValue ?>> { | ||
|
||
@Override | ||
public void extractValues(Property<?> originalValue, ValueReceiver receiver) { | ||
// this will disable validation at save time but enable it at runtime when the value would be populated | ||
receiver.value( null, originalValue.getValue()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 19 additions & 2 deletions
21
core/src/main/java/io/kestra/core/models/tasks/logs/LogShipper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,31 @@ | ||
package io.kestra.core.models.tasks.logs; | ||
|
||
import io.kestra.core.models.annotations.Plugin; | ||
import io.kestra.core.models.tasks.Output; | ||
import io.kestra.core.models.tasks.runners.TaskRunnerDetailResult; | ||
import io.kestra.core.runners.RunContext; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Pattern; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.SuperBuilder; | ||
import reactor.core.publisher.Flux; | ||
|
||
@Plugin | ||
public abstract class LogShipper implements io.kestra.core.models.Plugin { | ||
@SuperBuilder(toBuilder = true) | ||
@Getter | ||
@NoArgsConstructor | ||
public abstract class LogShipper<T extends Output> implements io.kestra.core.models.Plugin { | ||
@NotNull | ||
@NotBlank | ||
@Pattern(regexp="^[a-zA-Z0-9][a-zA-Z0-9_-]*") | ||
protected String id; | ||
|
||
@NotBlank | ||
@Pattern(regexp="\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*(\\.\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*)*") | ||
protected String type; | ||
|
||
public abstract void sendLogs(RunContext runContext, Flux<LogRecord> logRecord); | ||
public abstract T sendLogs(RunContext runContext, Flux<LogRecord> logRecord) throws Exception; | ||
|
||
} |
11 changes: 0 additions & 11 deletions
11
core/src/main/java/io/kestra/core/models/tasks/runners/RunnerResult.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
core/src/main/java/io/kestra/core/models/tasks/runners/TaskRunnerDetailResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.kestra.core.models.tasks.runners; | ||
|
||
import io.kestra.core.models.tasks.Output; | ||
import lombok.Getter; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
@Getter | ||
@SuperBuilder | ||
public class TaskRunnerDetailResult implements Output { | ||
} |
Oops, something went wrong.