follow-up from "implement #bridge API endpoint"
In !31370 (merged) we added a new API endpoint to list the bridge jobs for a given pipeline.
There are a few follow-up issues that need to be resolved:
-
move :id/pipelines/:pipeline_id/jobs
tolib/api/pipelines.rb
-
move :id/pipelines/:pipeline_id/bridges
tolib/api/pipelines.rb
-
Refactor both /bridges
and/jobs
to remove duplication:-
Rubocop offenses about ActiveRecord code reuse -
use project.all_pipelines
instead ofproject.ci_pipelines
-
consider implementing a Finder that could work for both Ci::Build
andCi::Bridge
-
Edited by Laura Montemayor