Robert Speicher
ad7ad8745a
Add User#recently_sent_password_reset?
2015-10-01 21:41:56 -04:00
Kamil Trzcinski
b9ccc79cb5
Delegate ci_project parameters to projects
...
- It delegates name, path, gitlab_url, ssh_url_to_repo
- Remove ability to set this parameters using CI API
This fixes GitLab project rename, namespace change, repository rename, etc.
2015-09-30 12:48:40 +02:00
Kamil Trzcinski
0d877d91e7
Make ensure_gitlab_ci_project return ci_project or create a new one
2015-09-29 10:47:04 +02:00
Kamil Trzcinski
0fa4ab5fd8
Rename commits to ci_commits
2015-09-29 10:47:04 +02:00
Kamil Trzcinski
8f8efcfa00
Fix tests
2015-09-29 10:47:03 +02:00
Kamil Trzcinski
2c1f7ccac8
Fix register_build_service tests
2015-09-29 10:47:03 +02:00
Kamil Trzcinski
0e33814708
Fix tests
2015-09-29 10:47:03 +02:00
Kamil Trzcinski
30c78e70cb
WIP
2015-09-29 10:47:03 +02:00
Kamil Trzcinski
1530f68c98
WIP
2015-09-29 10:47:03 +02:00
Dmitriy Zaporozhets
b656419591
Merge branch 'move-runners-page'
2015-09-28 16:47:18 +02:00
Stan Hu
0383afc66a
Add user preference to view project activity and starred project activity as default dashboard
...
Closes #2662
2015-09-26 08:46:05 -07:00
Dmitriy Zaporozhets
352f242d8c
Fix admin runner page -> assign all button
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-25 17:46:03 +02:00
Dmitriy Zaporozhets
b623391720
Merge branch 'stanhu/gitlab-ce-fix-mr-creation-with-large-diffs'
2015-09-25 14:08:30 +02:00
Dmitriy Zaporozhets
f68acbacd9
Merge branch 'fix-stuck-forked-project-import' into 'master'
...
Fix bug where projects would appear to be stuck in the forked import state
A race condition existed between when Rails committed the `import_status` to
`started` and when the Sidekiq worker forked a project. If this fork were quick,
it's possible that the worker would attempt to move into the `finished` state
before the `started` state took effect.
As mentioned in https://github.com/mperham/sidekiq/wiki/Problems-and-Troubleshooting#cannot-find-modelname-with-id12345 ,
we can either delay the worker to ensure the DB has a chance to update, or use the nice `after_commit_queue` gem to schedule the task after the state machine commit. See:
* https://github.com/pluginaweek/state_machine/issues/191
* https://github.com/shellycloud/after_commit_queue
Closes #2736
See merge request !1434
2015-09-25 11:15:03 +00:00
Stan Hu
a44ca15c1d
Fix Error 500 in creating merge requests with > 1000 diffs
...
Closes #2692
2015-09-25 02:40:34 -07:00
Stan Hu
bd2991b461
Use after_commit_queue to schedule import job immediately
2015-09-25 01:46:13 -07:00
Stan Hu
fbe5bf762d
Fix bug where projects would appear to be stuck in the forked import state
...
A race condition existed between when Rails committed the `import_status` to
`started` and when the Sidekiq worker forked a project. If this fork was quick,
it's possible that the worker would attempt to move into the `finished` state
before the `started` state took effect.
As mentioned in https://github.com/mperham/sidekiq/wiki/Problems-and-Troubleshooting#cannot-find-modelname-with-id12345 ,
we should delay the worker to ensure the DB has a chance to update.
Closes #2736
2015-09-25 01:14:54 -07:00
Kamil Trzcinski
7545190c8a
Remove unneeded change
2015-09-24 15:27:14 +02:00
Kamil Trzcinski
64295a18c5
Get GitLabCiService token from CI project
2015-09-24 15:27:13 +02:00
Dmitriy Zaporozhets
fd39414408
Merge branch 'remove-routes-helper' into 'master'
...
Fix Slack notification URL and remove the usage of Ci::RoutesHelper
Fix for #2644
/cc @dzaporozhets @rspeicher
See merge request !1391
2015-09-24 09:53:04 +00:00
Douwe Maan
a58c6e9a95
Merge branch 'cleanup-ci-dashboard' into 'master'
...
Cleanup ci dashboard
Part of #2594 . Based on !1403
* remove rendering GitLab projects with not enabled CI on CI dashboard
* remove enabling CI for projects from CI dashboard (now its done by simply pushing `.gitlab-ci.yml`)
* simplify the projects query for CI dashboard
See merge request !1405
2015-09-24 07:32:29 +00:00
Dmitriy Zaporozhets
0a57c3f610
Refactor Project#enable_ci method
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-23 16:52:26 +02:00
Dmitriy Zaporozhets
31b15e3dce
Simplify CI projects query
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-23 15:30:24 +02:00
Dmitriy Zaporozhets
2eb9a20f36
Enable CI for gitlab when .gitlab-ci.yml is pushed
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-23 13:11:40 +02:00
Dmitriy Zaporozhets
21dfaa000d
Show CI status on all pages where commits list is rendered
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-23 12:23:04 +02:00
Kamil Trzcinski
da20553ab6
Fix CI
2015-09-22 16:51:16 +02:00
Kamil Trzcinski
dabbee65d4
Fix Slack notification URL and remove the usage of Ci::RoutesHelper
2015-09-22 16:09:14 +02:00
Robert Speicher
d4a960161e
Merge branch 'rename-reply-by-email' into 'master'
...
Rename reply_by_email to incoming_email to prepare for the future.
Closes #2579 .
See merge request !1367
2015-09-21 18:52:13 +00:00
Dmitriy Zaporozhets
cbdee053b4
Merge branch 'fix-ci-handling' into 'master'
...
Fixed MR handling when GitLab CI project is not present
This is copy of !1371
/cc @jacobvosmaer @vsizov @dzaporozhets
See merge request !1373
2015-09-21 18:29:29 +00:00
Dmitriy Zaporozhets
3a001a9290
Fetch merge request ref if it is missing when visit MR page
...
This will fix merge problem for merge requests between forks created
before 8.0
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-21 16:25:59 +02:00
Kamil Trzcinski
ca6fd0a27d
Fixed MR handling when GitLab CI project is not present
2015-09-21 14:55:02 +02:00
Kamil Trzcinski
abaa65efc1
Revert "Fixed MR handling when GitLab CI project is not present"
...
This reverts commit 3abcab779e .
2015-09-21 14:52:51 +02:00
Kamil Trzcinski
3abcab779e
Fixed MR handling when GitLab CI project is not present
2015-09-21 13:53:03 +02:00
Douwe Maan
183892fde9
Merge branch 'notification-levels' into 'master'
...
Notification levels can now be set on the Project's main page

The notification settings for a project can now be set directly on the Project's page. The drop down list and the button label reflect the current level.
Saving is done via a remote form submission and if successful shows the user a flash message:

@DouweM can you please review my code. I gave my bestest effort to make in clean and readable.
@rspeicher hopefully we can include it with the 8.0 release, maybe?
/cc @darby
See merge request !1322
2015-09-21 09:19:32 +00:00
Douwe Maan
0c83349867
Merge branch 'master' into rename-reply-by-email
2015-09-21 10:35:56 +02:00
Douwe Maan
ee028d9d60
Rename reply_by_email to incoming_email to prepare for the future.
2015-09-21 10:35:37 +02:00
Dmitriy Zaporozhets
8bb3215d54
Merge branch 'fail-ci-builds-without-yml' into 'master'
...
Fail ci builds without yml
Fix for https://gitlab.com/gitlab-org/gitlab-ce/issues/2551
See merge request !1349
2015-09-21 07:49:18 +00:00
Robert Speicher
ca45e925df
Merge branch 'reply-by-email-diff' into 'master'
...
Fix reply by email for comments on a specific line in a diff/commit.
Fixes #2363 .
See merge request !1364
2015-09-21 00:51:53 +00:00
Kamil Trzcinski
71a5d5a036
Fail builds if no .gitlab-ci.yml is found
2015-09-20 20:46:14 +02:00
Kamil Trzciński
a6f2caf7a2
Merge branch 'fix-ci-link-on-project-page' into 'master'
...
Fix 500 when showing project page and there's no CI project present
This fixes 500 when:
1. GitLabCiService is active
2. There's no project in ci_projects table
See merge request !1338
2015-09-20 18:44:48 +00:00
Douwe Maan
3377808193
Fix reply by email for comments on a specific line in a diff/commit.
2015-09-20 18:18:39 +02:00
Kirilll Zaitsev
9021200ad3
Removed format validation
2015-09-19 14:12:20 +03:00
Kamil Trzcinski
a19a0b431c
Fix 500 when showing project page and there's no CI project present
2015-09-18 21:54:00 +02:00
Valery Sizov and Kamil Trzcinski
a0c1a12dee
remove API calls from CE to CI
2015-09-18 18:02:11 +02:00
Dmitriy Zaporozhets
bdfe6b9603
Merge branch 'merge_request_error' into 'master'
...
Fix CI status in the MR page
https://gitlab.com/gitlab-org/gitlab-ce/issues/2587
See merge request !1347
2015-09-18 15:57:17 +00:00
Valery Sizov
600d6eeff3
Fix CI status in the MR page
2015-09-18 18:02:29 +03:00
Kamil Trzcinski
e41a29b0c3
Allow to disable GitLab CI
2015-09-18 12:46:47 +02:00
Stan Hu
b75e4d7149
Merge pull request #9618 from pjknkda/repo-info-to-issue-hook
...
add repository field to issue hook data
2015-09-17 07:03:47 -07:00
Stan Hu
f481637245
Merge branch 'fix-issue-2382' into 'master'
...
Create a "destroyed Milestone" event and keep Milestone events around in the DB for posterity
Also fix issue where destroying a Milestone would cause odd, transient messages like "created milestone" or "imported milestone".
Now if a milestone is destroyed, at least it will indicate in the activity feed even if it's not clear which milestone was destroyed:

Closes #2382
See merge request !1227
2015-09-17 08:04:37 +00:00
Valery Sizov and Valery Sizov
ce4defaf2f
enable SSL by default
2015-09-17 09:51:24 +03:00