gitlab-org--gitlab-foss/lib
Steve Azzopardi 7ac32ae282
Refactor project.latest_successful_builds_for def
`project.latest_successful_builds_for(ref)` is being used to find a
single job all the time. This results into us having to call `find_by`
inside of the controller which violates our CodeReuse/ActiveRecord
rubocop rule.

Refactor `project.latest_successful_builds_for(ref)` to
`project.latest_successful_build_for(job_name, ref)` which will execute
the `find_by` inside of the model.

Also create `project.latest_successful_build_for!(job_name, ref)` which
raises an exception instead of returning nil.
2019-01-07 17:29:26 +01:00
..
api Refactor project.latest_successful_builds_for def 2019-01-07 17:29:26 +01:00
assets
backup Avoid extra storage bucket perm and query 2018-12-21 10:34:05 -08:00
banzai Merge branch 'security-label-xss' into 'master' 2019-01-02 09:34:13 +00:00
bitbucket
bitbucket_server Fix Bitbucket Server import only including first 25 pull requests 2019-01-06 21:13:00 -08:00
constraints Pass on arguments passed to the FeatureConstrainer 2018-12-14 14:35:05 +01:00
container_registry
declarative_policy
flowdock
generators/rails/post_deployment_migration
gitaly
gitlab Merge branch 'include-project' into 'master' 2019-01-07 09:19:36 +00:00
google_api
haml_lint
json_web_token Set typ field in JSONWebToken::RSAToken 2018-12-29 07:37:08 -08:00
mattermost
microsoft_teams
object_storage
omni_auth/strategies Support RSA and ECDSA algorithms in Omniauth JWT 2018-12-05 18:17:40 +01:00
peek Fix bug where ID is not set 2018-11-20 13:40:45 +01:00
quality
rouge
rspec_flaky
serializers Add config_options|variables to BuildMetadata 2019-01-04 16:38:17 +01:00
support
system_check Extract system check rake task logic 2018-12-03 13:51:46 -08:00
tasks Prevent admins from attempting hashed storage migration on read only DB 2018-12-19 21:10:00 +00:00
after_commit_queue.rb
backup.rb
banzai.rb
carrier_wave_string_file.rb
declarative_policy.rb Remove rails4 specific code 2018-12-16 10:48:41 +01:00
event_filter.rb
expand_variables.rb
extracts_path.rb Remove options assignment from ExtractsPath 2018-11-27 12:07:02 -06:00
feature.rb
file_size_validator.rb
forever.rb
gitlab.rb Improve variables support 2018-11-19 14:09:39 +01:00
gt_one_coercion.rb
milestone_array.rb
mysql_zero_date.rb Remove rails4 specific code 2018-12-16 10:48:41 +01:00
static_model.rb
system_check.rb
unfold_form.rb
uploaded_file.rb
version_check.rb Use class methods for VersionCheck 2018-12-14 13:56:03 -06:00