Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(execution): Exclude execution retrieval for Disabled Front50 pipelines #4819

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ interface Front50Service {
@GET("/pipelines/{applicationName}")
List<Map<String, Object>> getPipelines(@Path("applicationName") String applicationName, @Query("refresh") boolean refresh)

@GET("/pipelines/{applicationName}")
List<Map<String, Object>> getPipelines(@Path("applicationName") String applicationName, @Query("refresh") boolean refresh, @Query("enabledPipelines") boolean enabledPipelines)
jasonmcintosh marked this conversation as resolved.
Show resolved Hide resolved

@GET("/pipelines/{pipelineId}/get")
Map<String, Object> getPipeline(@Path("pipelineId") String pipelineId)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ class TaskController {
@Value('${tasks.number-of-old-pipeline-executions-to-include:2}')
int numberOfOldPipelineExecutionsToInclude

@Value('${tasks.exclude-execution-of-disabled-pipelines:false}')
Boolean excludeExecutionsOfDisabledPipelines

Clock clock = Clock.systemUTC()

@PreAuthorize("hasPermission(#application, 'APPLICATION', 'READ')")
Expand Down Expand Up @@ -602,7 +605,7 @@ class TaskController {
statuses: (statuses.split(",") as Collection)
)

def pipelineConfigIds = front50Service.getPipelines(application, false)*.id as List<String>
def pipelineConfigIds = front50Service.getPipelines(application, false, excludeExecutionsOfDisabledPipelines)*.id as List<String>
def strategyConfigIds = front50Service.getStrategies(application)*.id as List<String>
def allIds = pipelineConfigIds + strategyConfigIds

Expand Down
Loading