-
- Downloads
Optimise getting the pipeline status of commits
This adds an optimised way of getting the latest pipeline status for a list of Commit objects (or just a single one).
Showing
- app/controllers/projects/commits_controller.rb 1 addition, 0 deletionsapp/controllers/projects/commits_controller.rb
- app/controllers/projects/merge_requests_controller.rb 2 additions, 1 deletionapp/controllers/projects/merge_requests_controller.rb
- app/models/ci/pipeline.rb 51 additions, 15 deletionsapp/models/ci/pipeline.rb
- app/models/commit.rb 6 additions, 3 deletionsapp/models/commit.rb
- app/models/commit_collection.rb 44 additions, 0 deletionsapp/models/commit_collection.rb
- app/models/merge_request_diff.rb 3 additions, 1 deletionapp/models/merge_request_diff.rb
- app/models/repository.rb 10 additions, 6 deletionsapp/models/repository.rb
- changelogs/unreleased/ci-pipeline-status-query.yml 5 additions, 0 deletionschangelogs/unreleased/ci-pipeline-status-query.yml
- spec/models/ci/pipeline_spec.rb 84 additions, 38 deletionsspec/models/ci/pipeline_spec.rb
- spec/models/commit_collection_spec.rb 59 additions, 0 deletionsspec/models/commit_collection_spec.rb
- spec/models/commit_spec.rb 9 additions, 2 deletionsspec/models/commit_spec.rb
app/models/commit_collection.rb
0 → 100644
spec/models/commit_collection_spec.rb
0 → 100644
Please register or sign in to comment