Revert "fix(core): apply timeRange filter in triggers (#12721)" (#12763)

This commit is contained in:
Piyush Bhaskar
2025-11-06 18:55:41 +05:30
committed by GitHub
parent a60bc2e155
commit 0b6a4d2520
2 changed files with 0 additions and 10 deletions

View File

@@ -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);

View File

@@ -78,7 +78,6 @@ class TriggerControllerTest {
.tenantId(TENANT_ID)
.triggerId("trigger-nextexec-schedule")
.date(ZonedDateTime.now())
.nextExecutionDate(ZonedDateTime.now())
.build();
jdbcTriggerRepository.save(trigger);