Kamil Trzcinski
5a7e4dfd33
Merge branch 'after-script' into make-before-after-overridable
...
* after-script:
Add CHANGELOG and documentation
Rename finally_script to after_script
Conflicts:
lib/ci/gitlab_ci_yaml_processor.rb
spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
2016-04-17 09:06:55 -04:00
Kamil Trzcinski
cc57d61023
Rename finally_script to after_script
2016-04-17 08:59:57 -04:00
Kamil Trzcinski
4cc9a02ee0
Allow the before_script and finally_script to be overwritten in context of job
2016-04-16 19:22:49 +02:00
Kamil Trzcinski
b340b59743
Implement finally_script which allows to do cleanups as part of the build process
2016-04-16 19:22:48 +02:00
Robert Speicher
2e4d9c1de6
Merge branch 'fix/project-import_url' into 'master'
...
Fix for import_url fields on projects containing third-party credentials
Fixes https://dev.gitlab.org/gitlab/gitlabhq/issues/2658
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/13955
See merge request !3066
2016-04-15 21:52:00 +00:00
Robert Speicher
34b0561560
Merge branch 'pmq20/gitlab-ce-psvr/change-head' into 'master'
...
Use rugged to change HEAD
_Originally opened at !2850 by @pmq20._
Needless to invoke gitlab_shell here, which is slow.
See merge request !3705
2016-04-15 16:44:21 +00:00
Rémy Coutable
8b7bf2a0e0
Merge branch 'rugged-delete-tag' into 'master'
...
Delete tags via rugged
Improve the performance by directly using rugged instead of shelling out to a git operation.
See merge request !3748
2016-04-15 14:42:05 +00:00
Robert Schilling
3c704c33e0
Delete tags via rugged
2016-04-15 16:05:04 +02:00
Robert Schilling
106c443e76
Remove unused backend methods
2016-04-15 13:30:33 +02:00
Rémy Coutable
f8e8a61c9c
Remove Gitlab::Shell#update_repository_head since it's not used anymore
...
Signed-off-by: Rémy Coutable <remy@rymai.me >
2016-04-15 11:38:59 +02:00
James Lopez
05985b49a4
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into fix/project-import_url
2016-04-15 08:49:08 +02:00
Robert Speicher
1f0274e55e
Merge branch 'remove-ci-nginx-config' into 'master'
...
Remove deprecated NGINX CI config
[ci skip]
See merge request !3728
2016-04-14 19:34:57 +00:00
Robert Speicher
97fd9616ac
Merge branch 'emoji_category_fix' into 'master'
...
Emoji categories fix
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/14020
See merge request !3727
2016-04-14 18:22:49 +00:00
Valery Sizov
6ae2680ce7
Emoji categories fix
2016-04-14 20:45:55 +03:00
Achilleas Pipinellis
2165bbc785
Remove deprecated NGINX CI config
2016-04-14 20:31:19 +03:00
Robert Speicher
95a867e0af
Merge branch 'auto-fsck' into 'master'
...
Auto git fsck
Closes https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3232
See merge request !3232
2016-04-14 17:15:58 +00:00
James Lopez
e5f7a54530
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into fix/project-import_url
2016-04-14 18:12:10 +02:00
Rémy Coutable
dd9ced0af9
Merge branch 'connorshea/gitlab-ce-revoke-authorized-application' into 'master'
...
Fix revoking of authorized OAuth applications
Users were not able to revoke access to authorized OAuth applications. Clicking the "Revoke" button would result in a 404 page, and the application would still be authorized.
Added a spec and also found that the `gon` variables were not being set for this view.
Closes #14370
See merge request !3690
2016-04-14 15:26:09 +00:00
Stan Hu
e450892f56
Include GonHelper separately and remove created_at in factory
2016-04-14 07:25:27 -07:00
Stan Hu
c7e384aab2
Add spec for deletion of authorized OAuth2 application
...
Closes #14370
Move gon function into its own helper
2016-04-14 07:24:58 -07:00
Yorick Peterse
a54af831ba
Use rake db:reset instead of db:setup
...
Using db:reset ensures existing tables are first dropped. This in turn
ensures that we can drop tables regardless of any foreign key
constraints. While CE currently doesn't have any foreign keys EE defines
the following relation:
remote_mirrors.project_id -> projects.id
MySQL will complain whenever you try to drop the "projects" table first
even when using "DROP TABLE ... CASCADE".
2016-04-14 15:53:54 +02:00
Rémy Coutable
c71cdb194f
Merge branch 'simplify-gitlab-url_builder-15202' into 'master'
...
Refactor and expose only Gitlab::UrlBuilder.build(record)
```
$ git grep Gitlab::UrlBuilder
app/models/commit.rb: url: Gitlab::UrlBuilder.build(self),
app/services/issues/base_service.rb: issue_url = Gitlab::UrlBuilder.build(issue)
app/services/merge_requests/base_service.rb: hook_data[:object_attributes][:url] = Gitlab::UrlBuilder.build(merge_request)
app/views/search/results/_note.html.haml:- note_url = Gitlab::UrlBuilder.build(note)
lib/gitlab/note_data_builder.rb: base_data[:object_attributes][:url] = Gitlab::UrlBuilder.build(note)
spec/lib/gitlab/note_data_builder_spec.rb: expect(data[:object_attributes][:url]).to eq(Gitlab::UrlBuilder.build(note))
spec/lib/gitlab/url_builder_spec.rb:describe Gitlab::UrlBuilder, lib: true do
```
Fixes #15202 .
See merge request !3696
2016-04-14 10:27:49 +00:00
James Lopez
efff7e9e54
updated migration based on testing findings
2016-04-14 12:03:45 +02:00
Rémy Coutable
a872a29ebd
Merge branch 'api-issue-update-and-note-create-backdating-14947' into 'master'
...
API issue update and note create back dating
Closes #14947
See merge request !3551
2016-04-14 07:51:57 +00:00
Valery Sizov
c0678f2d28
Merge branch 'redis_config_consistency' into 'master'
...
Redis configuration consistency
Related https://gitlab.com/gitlab-org/gitlab-ce/commit/cf669551f69edd66913d22c96cf1de1302e7990e
See merge request !3697
2016-04-13 18:34:11 +00:00
Valery Sizov
2244aaf98f
Redis configuration consistency
2016-04-13 20:57:19 +03:00
Michael Greene
c1467f5d97
Allow back dating notes on creation
2016-04-13 12:04:09 -05:00
Michael Greene
28a7fe25fd
Allow back dating issues on update
2016-04-13 12:04:09 -05:00
Robert Speicher
2b28fa14b3
Merge branch 'redis_improvements' into 'master'
...
Clean up ExclusiveLease
See merge request !3695
2016-04-13 16:22:45 +00:00
Rémy Coutable
c8560894f7
Merge branch 'api-subscribe-issue-mr' into 'master'
...
API: Subscribe and unsubscribe from issues and merge requests
* Closes #6024
This MR is based on !3611 , which must be merged first.
See merge request !3615
2016-04-13 15:54:31 +00:00
Jacob Vosmaer
f07316f27c
Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into auto-fsck
2016-04-13 17:38:59 +02:00
Robert Schilling
a9200d93d3
Ensure that issues and merge requests are found
2016-04-13 17:15:42 +02:00
Rémy Coutable
94e130cec3
Merge branch 'api-star-project' into 'master'
...
API: Star and unstar a project
Add two new endpoints `POST /projects/:id/star` and `POST /projects/:id/unstar` to star and unstar a project.
* Closes #12739
See merge request !3578
2016-04-13 15:05:21 +00:00
Robert Schilling
54231aa4e0
Styling changes to code and docs
2016-04-13 16:25:24 +02:00
Rémy Coutable
02cfbf0db5
Refactor and expose only Gitlab::UrlBuilder.build(record)
...
Signed-off-by: Rémy Coutable <remy@rymai.me >
2016-04-13 16:07:04 +02:00
Marin Jankovski
c746046992
Merge branch 'external-omniauth-providers' into 'master'
...
Allow Omniauth providers to be marked as external
Related to #4009
With this MR we will be able to allow the user to set which Omniauth Providers they would like to have as external. All users login in via these providers will be marked as external, even if they already had an account before. If the provider is removed form the list of external providers, the users will be marked as internal at their next login.
MR for Omnibus: gitlab-org/omnibus-gitlab!727
/cc @dblessing @DouweM
See merge request !3657
2016-04-13 13:09:47 +00:00
Dmitriy Zaporozhets
ab4ea3720c
Merge branch 'rs-archive-cache-worker-cron' into 'master'
...
Move RepositoryArchiveCacheWorker to sidekiq-cron
Closes #15105
See merge request !3663
2016-04-13 12:53:01 +00:00
Dmitriy Zaporozhets
59c735bd1e
Merge branch 'rs-gitlab-com-check' into 'master'
...
Add `Gitlab.com?` method
To be used as a feature flag for GitLab.com-only features, such as
welcome emails.
We will be careful to only use this to disable features or functionality
that do not make sense for any installations that aren't GitLab.com. We
will not use this to restrict features from other installations or keep
them "exclusive" to GitLab.com.
See merge request !3682
2016-04-13 12:27:17 +00:00
Robert Schilling
3ab9ea8dae
Make staring API more restful
2016-04-13 14:26:41 +02:00
Robert Schilling
ea2193aaeb
API: Star and unstar a project
2016-04-13 14:26:40 +02:00
Robert Schilling
fa3009095f
Make subscription API more RESTful
2016-04-13 13:52:13 +02:00
Robert Schilling
f875189b39
API: Ability to subscribe and unsubscribe from a merge request
2016-04-13 13:45:01 +02:00
Robert Schilling
bd0be13f5b
API: Ability to subscribe and unsubscribe from an issue
2016-04-13 13:45:00 +02:00
Rémy Coutable
cf306b17bf
Merge branch 'api-group-leaking' into 'master'
...
API: Return 404 if user does not have access to group
Closes #15185
After !3587 is merged, I'll update this one to also fix the return code of the tests in !3587 .
See merge request !3683
2016-04-13 11:32:25 +00:00
Rémy Coutable
861e685e18
Merge branch 'api-move-issues' into 'master'
...
API: Ability to move an issue
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/14741
See merge request !3593
2016-04-13 10:55:12 +00:00
Valery Sizov
33f786b5d3
clean up ExclusiveLease
2016-04-13 13:12:05 +03:00
Robert Schilling
2b036025d6
Update tests for moving issues via API
2016-04-13 11:31:50 +02:00
Robert Schilling
482f67edb4
API: Ability to move an issue
2016-04-13 11:23:42 +02:00
Yorick Peterse
3240ecfbef
Added ability to add custom tags to transactions
...
One use case for this is manually setting the "action" tag for Grape API
calls. Due to Grape running blocks there are no human readable method
names that can be used for the "action" tag, thus we have to set these
manually on a case by case basis.
2016-04-13 11:22:37 +02:00
Robert Schilling
b2f48d8c46
API: Return 404 if user does not have access to group
2016-04-13 11:11:09 +02:00