Kamil Trzcinski
6febe1007e
Discover branches for commit statuses ref-less when doing merge when succeeded
2016-02-19 23:24:31 +01:00
Kamil Trzcinski
56449cc674
Fix Merge When Succeeded for multiple stages
...
Use around_transition to trigger build creation for next stages
2016-02-19 23:24:31 +01:00
Kamil Trzciński
bcc2332061
Merge branch 'commit-status-fix' into 'master'
...
Fix missing ignored? for GenericCommitStatus
This is pretty important fix. We should not release 8.5 without this.
It critical error when handling GenericCommitStatus:
```
undefined method `ignored?' for #<GenericCommitStatus:0x007fe1a2a20fe0>
```
cc @grzesiek
See merge request !2899
2016-02-19 19:22:25 +00:00
Kamil Trzcinski
aa812dbfcc
Fix missing ignored? for GenericCommitStatus
2016-02-19 19:58:43 +01:00
Kamil Trzcinski
73be775cd7
Fix ci_build trace trait
2016-02-19 19:31:57 +01:00
Rubén Dávila and Robert Speicher
b8295fc323
Fix build and add specs
2016-02-19 13:14:53 -05:00
Rubén Dávila and Robert Speicher
b6fe51b901
Some updates from last code review.
2016-02-19 13:14:50 -05:00
Rubén Dávila and Robert Speicher
df5f362c34
Add some specs plus some refactor.
2016-02-19 13:14:50 -05:00
Rubén Dávila and Robert Speicher
f56ee9d3b9
Save merge commit id when MR is merged
2016-02-19 13:14:49 -05:00
Kamil Trzcinski
55701d9c6c
Fix specs
2016-02-19 18:30:43 +01:00
Kamil Trzcinski
921cfb66e6
Introduce API for serving the artifacts archive
2016-02-19 18:30:13 +01:00
Grzegorz Bizon
73c9d80bdc
Record user that erased a build through API
2016-02-19 17:24:59 +01:00
Grzegorz Bizon
7d5a182624
Use POST method instead of DELETE when erasing a build
...
Discussion:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2560#note_3742042
2016-02-19 17:24:59 +01:00
Grzegorz Bizon
86a49dfb88
Move build erasable implementation from concern to model
...
Discussion:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2560#note_3659905
2016-02-19 17:24:59 +01:00
Grzegorz Bizon
287cc838ce
Fix build api specs after rebase
2016-02-19 17:24:59 +01:00
Grzegorz Bizon
293999cabb
Fix name of build erasable, remove superfluous method from it
2016-02-19 17:24:59 +01:00
Grzegorz Bizon and Grzegorz Bizon
13f92521c2
Move build eraseable API to proper API context
2016-02-19 17:24:59 +01:00
Grzegorz Bizon and Grzegorz Bizon
df313634d0
Do not allow to modify build if it has been erased
2016-02-19 17:24:59 +01:00
Grzegorz Bizon and Grzegorz Bizon
21152d7d51
Use DELETE verb for erasing a build content
...
Also added API specs for that
2016-02-19 17:24:59 +01:00
Grzegorz Bizon and Grzegorz Bizon
c850ceec5d
Create method that checks if build has been erased
...
+ minor improvements
2016-02-19 17:24:59 +01:00
Grzegorz Bizon and Grzegorz Bizon
2c7f36f430
Update relevant build fields when build is erased
2016-02-19 17:24:59 +01:00
Grzegorz Bizon and Grzegorz Bizon
f3e92fb4d0
Make CI build eraseable only if build is completed
2016-02-19 17:24:59 +01:00
Grzegorz Bizon and Grzegorz Bizon
c8102d938b
Add build eraseable feature implementation
2016-02-19 17:24:03 +01:00
Grzegorz Bizon and Grzegorz Bizon
89b181204c
Use build artifacts trait in build specs
2016-02-19 17:24:03 +01:00
Grzegorz Bizon and Grzegorz Bizon
5e1edd372f
Add artifacts trait to build factory in specs
2016-02-19 17:24:03 +01:00
Patricio Cano
75ad91822d
Merge branch 'saml-decoupling' into 'master'
2016-02-19 10:41:54 -05:00
Tomasz Maczukin
49d5c35b69
Fix old usages of ci_runner factory
2016-02-19 13:18:49 +01:00
Tomasz Maczukin
acfe25edc0
Refactorize ci_runner factory and let definitions in runners API spec
2016-02-19 13:18:49 +01:00
Tomasz Maczukin
f8f492e589
Remove unnecessary parameters
2016-02-19 13:18:49 +01:00
Tomasz Maczukin
a5540b385d
Modify expectations for update runner feature
2016-02-19 13:18:48 +01:00
Tomasz Maczukin
d38322b895
Change .map{...}.inject{...} to any?{...} for searching shared runners
2016-02-19 13:18:48 +01:00
Tomasz Maczukin
957c4de9b1
Reorganize let statements in spec/requests/api/runners_spec.rb
2016-02-19 13:18:48 +01:00
Tomasz Maczukin
b36116f9ad
Move :runner_id param to POST body when enabling specific runner in project
2016-02-19 13:18:48 +01:00
Tomasz Maczukin
dc182dc50e
Add some modifications to spec/requests/api/runners_spec.rb
2016-02-19 13:18:48 +01:00
Tomasz Maczukin
36e7ffea5d
Fix runners filtering
2016-02-19 13:18:47 +01:00
Tomasz Maczukin
16b3368af3
Fix runners API spec
2016-02-19 13:18:47 +01:00
Tomasz Maczukin
81ced6f55b
Split /runners entrypoint to /runners and /runners/all
2016-02-19 13:18:47 +01:00
Tomasz Maczukin
53f775ae6d
Fix runners filtering in API
2016-02-19 13:18:46 +01:00
Tomasz Maczukin
d42ced44d9
Add feature to enable/disable runner in project
2016-02-19 13:18:46 +01:00
Tomasz Maczukin
128be3c010
Add basic runners management API
...
- add feature to list runners
- add feature to show runners details
- add feature to delete runner
- add feature to update runner
2016-02-19 13:18:46 +01:00
Zeger-Jan van de Weg
aba1aa49a9
Improve #set_award! on the Note model
2016-02-19 10:10:55 +01:00
Zeger-Jan van de Weg
11ed1cbbb7
Emoji reponses on diffs aren't award emoji
2016-02-19 10:04:38 +01:00
Douwe Maan
ad12f11f3e
Merge branch 'rs-emoji' into 'master'
...
Update Gemojione for new hotness ✨
Before | After
------ | -----
 | 
See merge request !2800
2016-02-19 08:11:02 +00:00
Douwe Maan
c58a02e82f
Merge branch 'rs-show-owner-label' into 'master'
...
Allow `ProjectTeam#human_max_access` to return "Owner"
See merge request !2881
2016-02-19 07:50:05 +00:00
Robert Speicher
8c454b3624
Add a Blob model that wraps Gitlab::Git::Blob
...
This allows us to take advantage of Rails' `to_partial_path` to render
the correct partial based on the Blob type, rather than cluttering the
view with conditionals.
It also allows (and will allow in the future) better encapsulation for
Blob-related logic which makes sense for our Rails app but might not
make as much sense for the core `gitlab_git` library, such as detecting
if the blob is an SVG.
2016-02-18 22:45:30 -05:00
Robert Speicher
dfca5bfa47
Move a few controller specs to their correct locations
2016-02-18 21:50:49 -05:00
Patricio Cano
bb4fa3a185
Make new allow_single_sign_on feature backwards compatible
2016-02-18 17:02:43 -05:00
Patricio Cano
06376be56a
Decouple SAML authentication from the default Omniauth logic
2016-02-18 17:01:07 -05:00
Robert Speicher
924463907d
Allow ProjectTeam#human_max_access to return "Owner"
2016-02-18 16:39:59 -05:00
Douwe Maan
873b0db220
Revert "Merge branch 'saml-decoupling' into 'master'
"
...
This reverts commit c04e22fba8 , reversing
changes made to 0feab326d5 .
2016-02-18 22:14:53 +01:00