Douglas Barbosa Alexandre
f2005fa566
Flush repository cache before import project data
...
GitHub Pull Requests importer handle with the repository while
importing data, we need to make sure that the cached values are valid.
2016-04-04 19:35:39 -03:00
Douwe Maan
f505c753b0
Merge branch 'fix_remove_fork_link' into 'master'
...
Remove fork link closes all merge requests opened on source project
Currently, if you:
- create a fork
- open a merge request on the source project
- remove the fork link
The created MR cannot be closed.
With this MR, all pending MR is closed when the fork link is removed.
See merge request !3189
2016-04-04 15:37:08 +00:00
Baldinof
65fa716173
Fix rubocop in unlink fork service specs
2016-04-03 15:17:14 +00:00
Baldinof
fa4126acff
Move unlink fork logic to a service
2016-03-22 15:34:35 +01:00
Robert Speicher
c790107854
Merge branch 'no-gc-retry' into 'master'
...
Do not retry "git gc"
To prevent 'git gc' timing out on a large repo and then bouncing
around in the retry queue.
See merge request !3266
2016-03-18 20:26:40 +00:00
Jacob Vosmaer
5d9cf7b415
Fix HousekeepingService tests
2016-03-18 14:46:51 +01:00
Douglas Barbosa Alexandre
7ee528336a
Restrict access for confidential issues on autocomplete
2016-03-17 20:55:59 -03:00
Jacob Vosmaer
30b36c92c3
Use an exception to pass messages
2016-03-15 11:03:43 +01:00
Jacob Vosmaer
0beae70efa
Use strings instead of symbols
2016-03-14 18:46:38 +01:00
Jacob Vosmaer
021d53c96d
Run 'git gc' every 10 pushes
2016-03-14 16:49:24 +01:00
Jacob Vosmaer
a02fe251df
Allow project housekeeping only once an hour
2016-03-14 15:55:45 +01:00
Robert Speicher
b900304c38
Make better use of the visibility_level factory traits
2016-03-08 16:40:45 -05:00
Douglas Barbosa Alexandre
6dd88e090e
Extract Projects::ImportService service from RepositoryImportWorker
2016-01-25 22:58:30 -02:00
Douglas Barbosa Alexandre
2ece1b774a
Fix creator should be added as a master of the project on creation
2016-01-19 13:24:42 -02:00
Douwe Maan
0614793b38
DRY up upload and download services
2016-01-08 17:38:53 +01:00
Tomasz Maczukin
c301ab0404
Add some specs for forked project visibility_level cases
2015-12-24 10:33:26 +01:00
Stan Hu
99fd78d6db
Add spec for invalid options in project creation
2015-12-09 09:50:17 -08:00
Douwe Maan
a2cfb44157
Tag service specs
2015-12-09 11:55:49 +01:00
Douwe Maan
d0ec28827d
Fix specs
2015-11-18 12:02:09 +01:00
Kamil Trzcinski
6384c757b7
Expose CI enable option in project features
...
- Enable CI by default for all new projects
2015-11-13 10:52:50 +01:00
Valery Sizov
8f584d5f2c
Fix: Images cannot show when projects' path was changed
2015-10-14 18:50:35 +03:00
Dmitriy Zaporozhets
3515cb9b2d
Fix tests
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-10-02 11:02:05 +02:00
Dmitriy Zaporozhets
37e9e71ea1
Remove unnecessary fork ci logic
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-10-02 10:26:56 +02:00
Valery Sizov and Kamil Trzcinski
a0c1a12dee
remove API calls from CE to CI
2015-09-18 18:02:11 +02:00
Stan Hu
9995f0806b
Import forked repositories asynchronously to prevent large repositories from timing out
...
Use import_status to track async import status and give feedback to the user
Closes #2388
Closes #2400
2015-09-11 00:34:04 -07:00
Dmitriy Zaporozhets
b05cc8bc9a
Merge branch 'global_labels' into 'master'
...
Global labels
https://dev.gitlab.org/gitlab/gitlabhq/issues/2353
See merge request !1240
2015-09-09 08:57:54 +00:00
Jared Szechy
e156f42079
FogBugz project import
2015-09-08 20:23:01 -04:00
Valery Sizov
6bd3d72bbd
added spinach for glabal labels
2015-09-03 19:02:14 +03:00
Douwe Maan
991c9f6fda
Test Email::AttachmentUploader.
2015-08-20 11:33:35 -07:00
Stan Hu
3e9b612306
Check that project was actually created rather than just validated in import:repos task
...
Add gitlab-shell to error message to give user a clue that something may be wrong there.
Ran into this in #2082 . User was told that repositories were created when they were
not due to hooks symlink being wrong.
2015-07-29 10:49:13 -07:00
Robert Speicher
88aed40962
Create project services on Project creation
2015-07-25 16:43:55 -04:00
Robert Speicher
d92668a05b
Only create :admin user in the one test where it's used
2015-07-25 16:42:28 -04:00
Douwe Maan and Robert Speicher
29cbb2f078
Update specs.
2015-07-11 16:47:33 -04:00
Robert Speicher
cf7c57aaf5
Use stub_application_setting in a few more specs
...
These specs also failed when run by themselves before this change, so
we've likely got some kind of cross-test contamination going on.
2015-07-06 22:39:56 -04:00
Stan Hu
52aa21b12d
Fix Style/IndentationWidth cop violations
2015-06-22 22:25:40 -07:00
Stan Hu
359ed48638
Fix Style/AlignHash cop violations
2015-06-22 22:24:39 -07:00
Robert Speicher
649c9969ba
Fix Style/IndentationConsistency cop violations
2015-06-22 14:33:01 -04:00
Robert Speicher
422236c71e
Change foo.should syntax to expect(foo).to in specs
2015-06-13 18:37:30 -04:00
Robert Speicher
75a40ad5bc
Change foo.should_not syntax to expect(foo).not_to in specs
2015-06-13 18:19:24 -04:00
Dmitriy Zaporozhets
fd1723f0fc
Add tests for project destroy service
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-03 13:08:17 +02:00
Douwe Maan
0cf76a0b70
Use Projects::CreateService to fork projects so that after-create hooks are run.
2015-04-24 22:58:27 +02:00
Dmitriy Zaporozhets
1ff40a7946
Merge branch 'ci_fork' into 'master'
...
Project fork on CI side
https://dev.gitlab.org/gitlab/gitlab-ci/issues/187
!!! GitLab CI side MR - https://gitlab.com/gitlab-org/gitlab-ci/merge_requests/56
See merge request !499
2015-04-09 13:41:37 +00:00
Valery Sizov
bafec400f1
CI forking: tests
2015-04-06 19:45:16 +03:00
Stan Hu
dfd256f29e
Support configurable attachment size via Application Settings
...
Fix bug where error messages from Dropzone would not be displayed on the issues page
Closes #1258
2015-04-02 00:04:08 -07:00
Vinnie Okada
285c534185
Allow admins to override restricted visibility
...
Allow admins to use restricted visibility levels when creating or
updating projects.
2015-03-08 16:10:05 -06:00
Douwe Maan
0283fff591
Merge branch 'master' into extend_markdown_upload
...
# Conflicts:
# app/views/projects/issues/_form.html.haml
# app/views/projects/merge_requests/_form.html.haml
# app/views/projects/merge_requests/_new_submit.html.haml
# app/views/projects/milestones/_form.html.haml
# app/views/projects/notes/_form.html.haml
# app/views/projects/wikis/_form.html.haml
# config/routes.rb
# spec/controllers/projects_controller_spec.rb
2015-02-24 14:54:39 +01:00
Douwe Maan
d2ebdf664b
Refactor.
2015-02-17 22:23:31 +01:00
Hannes Rosenögger and Douwe Maan
9729cc584f
implement Project::UploadsController
2015-02-17 22:21:13 +01:00
Hannes Rosenögger and Douwe Maan
ca504a77fe
Fix tests
2015-02-17 22:20:44 +01:00
Hannes Rosenögger and Douwe Maan
9bf8480b4a
Generalize the image upload in markdown
...
This commit generalizes the image upload via drag and drop so it supports all files.
It also adds access control for these files.
2015-02-17 22:20:44 +01:00