BigW Consortium Gitlab
This should reduce the number of SQL queries and lookups needed to look up a project of a build and pipeline and vice versa. Before: ``` [1] pry(main)> Ci::Build.reflect_on_association(:project).has_inverse? => false [2] pry(main)> Project.reflect_on_association(:builds).has_inverse? => false [3] pry(main)> Ci::Pipeline.reflect_on_association(:project).has_inverse? => false [4] pry(main)> Project.reflect_on_association(:pipelines).has_inverse? => :project ``` After: ``` [1] pry(main)> Ci::Build.reflect_on_association(:project).has_inverse? => :builds [2] pry(main)> Project.reflect_on_association(:builds).has_inverse? => :project [3] pry(main)> Ci::Pipeline.reflect_on_association(:project).has_inverse? => :pipelines [4] pry(main)> Project.reflect_on_association(:pipelines).has_inverse? => :project ```
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
artifact_blob.rb | Loading commit data... | |
build.rb | Loading commit data... | |
build_trace_section.rb | Loading commit data... | |
build_trace_section_name.rb | Loading commit data... | |
group.rb | Loading commit data... | |
group_variable.rb | Loading commit data... | |
job_artifact.rb | Loading commit data... | |
legacy_stage.rb | Loading commit data... | |
pipeline.rb | Loading commit data... | |
pipeline_schedule.rb | Loading commit data... | |
pipeline_schedule_variable.rb | Loading commit data... | |
pipeline_variable.rb | Loading commit data... | |
runner.rb | Loading commit data... | |
runner_project.rb | Loading commit data... | |
stage.rb | Loading commit data... | |
trigger.rb | Loading commit data... | |
trigger_request.rb | Loading commit data... | |
variable.rb | Loading commit data... |