Nick Thomas
013f7cd24c
Inherit from ApplicationRecord instead of ActiveRecord::Base
2019-03-28 16:18:23 +00:00
Steve Azzopardi
1b388c798b
Add trigger information for job API
...
Create new entity called TriggerVariablesEnitity for trigger variables,
to aid reuseablity in the future.
Update JSON schema to include trigger information in the response.
Refactor rspec tests a bit to reduce duplication and for the `context`
to make sense.
closes https://gitlab.com/gitlab-org/gitlab-ce/issues/50989
2018-09-12 11:00:39 +02:00
gfyoung
388cb319d5
Enable frozen string for app/models/**/*.rb
...
Partially addresses #47424 .
2018-08-03 01:44:16 -07:00
Maxim Rydkin
c295d3362b
move lib/ci/model.rb
into lib/gitlab/ci/model.rb
2017-09-12 22:32:01 +03:00
Shinya Maeda
cff104ec4b
Fix spec
2017-09-04 21:55:26 +09:00
Shinya Maeda
75130a41ba
Remove CreateTriggerRequestService and forbit to save variables on Ci::TriggerRequest
2017-09-04 21:55:26 +09:00
Yorick Peterse
e1a3bf30b6
Rename ActiverecordSerialize cop
...
This cop has been renamed to ActiveRecordSerialize to match the way
"ActiveRecord" is usually written.
2017-07-06 12:01:36 +02:00
Yorick Peterse
cd74c1434e
Added Cop to blacklist the use of serialize
...
This Cop blacklists the use of ActiveRecord's "serialize" method, except
for cases where we already use this.
2017-05-31 14:03:37 +02:00
David Wagner
03b6108f6f
Remove redundant class_name and foreign_key overrides
...
They were Rails' default and are unnecessarily overridden.
Signed-off-by: David Wagner <david@marvid.fr>
2016-10-24 22:29:48 +02:00
Kamil Trzcinski
c3882eb4ee
Improve implementation of variables
2016-07-20 13:17:21 +02:00
Douwe Maan
3286dd7a1d
Don't garbage collect commits that have related DB records like comments
2016-07-04 00:11:33 -04:00
Kamil Trzcinski
921c356b5e
Rename commit to pipeline in TriggerRequest
2016-06-09 17:57:07 +02:00
Kamil Trzcinski
4d5f7aa008
Fix more places where we should rename ci_commit to pipeline
2016-06-03 14:46:17 +02:00
Kamil Trzcinski
021d3810c3
Rename Ci::Commit to Ci::Pipeline and rename some of the ci_commit to pipeline
2016-06-02 16:59:04 +02:00
Jeroen van Baarsen
f1479b56b7
Remove the annotate gem and delete old annotations
...
In 8278b763d9
the default behaviour of annotation
has changes, which was causing a lot of noise in diffs. We decided in #17382
that it is better to get rid of the whole annotate gem, and instead let people
look at schema.rb for the columns in a table.
Fixes : #17382
2016-05-09 18:00:28 +02:00
Dmitriy Zaporozhets
a237999f00
Annotate models
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-11-13 19:22:46 +01:00
Douwe Maan
046b283127
Groundwork for merging CI into CE
2015-08-25 18:42:46 -07:00