feat: implement Flows as a DataSource for dashboards (#11439)

* feat: implement Flows as a DataSource for dashboards

* chore: review changes

* fix: method signature changes from another commit apply in new flow fetchData method
This commit is contained in:
YannC
2025-10-01 12:57:25 +02:00
committed by GitHub
parent 5d883e0850
commit 296fb2fb7a
9 changed files with 317 additions and 50 deletions

View File

@@ -1,16 +1,15 @@
package io.kestra.repository.postgres;
import io.kestra.core.models.QueryFilter;
import io.kestra.core.models.flows.Flow;
import io.kestra.core.models.flows.FlowInterface;
import io.kestra.jdbc.repository.AbstractJdbcFlowRepository;
import io.kestra.jdbc.services.JdbcFilterService;
import io.micronaut.context.ApplicationContext;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import jakarta.inject.Singleton;
import org.jooq.Condition;
import java.util.List;
import java.util.Map;
@Singleton
@@ -18,8 +17,9 @@ import java.util.Map;
public class PostgresFlowRepository extends AbstractJdbcFlowRepository {
@Inject
public PostgresFlowRepository(@Named("flows") PostgresRepository<FlowInterface> repository,
ApplicationContext applicationContext) {
super(repository, applicationContext);
ApplicationContext applicationContext,
JdbcFilterService filterService) {
super(repository, applicationContext, filterService);
}
@Override