mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
This commit is contained in:
@@ -33,7 +33,6 @@ import io.micronaut.validation.Validated;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
||||
import io.swagger.v3.oas.annotations.media.ExampleObject;
|
||||
import jakarta.inject.Inject;
|
||||
import jakarta.validation.Valid;
|
||||
import jakarta.validation.constraints.Min;
|
||||
@@ -43,7 +42,6 @@ import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -89,10 +87,6 @@ public class TriggerController {
|
||||
// Deprecated params
|
||||
@Parameter(description = "A string filter",deprecated = true) @Nullable @QueryValue(value = "q") String query,
|
||||
@Parameter(description = "A namespace filter prefix", deprecated = true) @Nullable @QueryValue String namespace,
|
||||
@Parameter(description = "A time range filter relative to the current time", deprecated = true, examples = {
|
||||
@ExampleObject(name = "Filter last 5 minutes", value = "PT5M"),
|
||||
@ExampleObject(name = "Filter last 24 hours", value = "P1D")
|
||||
}) @Nullable @QueryValue Duration timeRange,
|
||||
@Parameter(description = "The identifier of the worker currently evaluating the trigger", deprecated = true) @Nullable @QueryValue String workerId,
|
||||
@Parameter(description = "The flow identifier",deprecated = true) @Nullable @QueryValue String flowId
|
||||
|
||||
@@ -109,9 +103,6 @@ public class TriggerController {
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
timeRange,
|
||||
null,
|
||||
null,
|
||||
workerId,
|
||||
null);
|
||||
|
||||
|
||||
@@ -78,7 +78,6 @@ class TriggerControllerTest {
|
||||
.tenantId(TENANT_ID)
|
||||
.triggerId("trigger-nextexec-schedule")
|
||||
.date(ZonedDateTime.now())
|
||||
.nextExecutionDate(ZonedDateTime.now())
|
||||
.build();
|
||||
|
||||
jdbcTriggerRepository.save(trigger);
|
||||
|
||||
Reference in New Issue
Block a user