Skip to content

Commit

Permalink
fix: merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Jul 11, 2024
1 parent 856a5f5 commit 9049235
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 67 deletions.
67 changes: 0 additions & 67 deletions core/src/test/java/io/kestra/plugin/core/storage/PurgeTest.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ protected Condition defaultFilter(String tenantId) {
return tenant.and(field("deleted", Boolean.class).eq(false));
}

protected Condition defaultFilter(String tenantId, Boolean allowDeleted) {
var tenant = buildTenantCondition(tenantId);
return allowDeleted ? tenant : tenant.and(field("deleted", Boolean.class).eq(false));
}

protected Condition buildTenantCondition(String tenantId) {
return tenantId == null ? field("tenant_id").isNull() : field("tenant_id").eq(tenantId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ public Flux<Execution> find(@Nullable String query, @Nullable String tenantId, @
return null;
}

@Override
public Flux<Execution> find(@Nullable String query, @Nullable String tenantId, @Nullable String namespace, @Nullable String flowId, @Nullable ZonedDateTime startDate, @Nullable ZonedDateTime endDate, @Nullable List<State.Type> state, @Nullable Map<String, String> labels, @Nullable String triggerExecutionId, @Nullable ChildFilter childFilter, boolean allowDeleted) {
return null;
}

@Override
public ArrayListTotal<TaskRun> findTaskRun(Pageable pageable, @Nullable String query, @Nullable String tenantId, @Nullable String namespace, @Nullable String flowId, @Nullable ZonedDateTime startDate, @Nullable ZonedDateTime endDate, @Nullable List<State.Type> states, @Nullable Map<String, String> labels, @Nullable String triggerExecutionId, @Nullable ChildFilter childFilter) {
throw new UnsupportedOperationException();
Expand Down

0 comments on commit 9049235

Please sign in to comment.