gitlab-org--gitlab-foss/lib
Dmitriy Zaporozhets e49b636497 Merge branch 'feature_api_project_edit' into 'master'
API: Implement edit via API for projects

I've picked up https://github.com/gitlabhq/gitlabhq/pull/8055 fixed the few hound warnings and replaced all double quotes in the spec file where possible.

# From the original PR:

Implements edit via API for projects. Edit was part of missing features in feature request Full CRUD operations via API for projects.
http://feedback.gitlab.com/forums/176466-general/suggestions/3904506-full-crud-operations-via-api-for-projects

Feature is implemented using existing UpdateService for projects. Permission to change visibility level and name are checked in addition to check for permission to administer project.

Doesn't allow updating project namespace id, because there was existing API-method for transferring project to a group.

Documentation added to doc/api/projects.md. Uses API request PUT /projects/:id .

Tests included for:
1. Success for changing path
2. Success for changing name
3. Success for changing visibility level
4. Success for changing all other attributes
5. Success for changing name & path to existing name & path but in different namespace
6. Failure if not authenticated
7. Failure if path exists in project's namespace
8. Failure if name exists in project's namespace
9. Failure if not sufficient permission to change name
10. Failure if not sufficient permission to change visibility level
11. Failure if not sufficient permission to change other attributes

Allows updating following parameters:

* name
* path
* visibility_level
* public
* default_branch
* issues_enabled
* wiki_enabled
* snippets_enabled
* merge_requests_enabled
* description

See merge request !310
2015-01-22 23:02:50 +00:00
..
api Merge branch 'feature_api_project_edit' into 'master' 2015-01-22 23:02:50 +00:00
assets move assets from lib directory to vendor 2012-05-29 17:56:48 +05:00
backup Properly fix wiki restore. 2014-11-30 18:24:05 +02:00
gitlab Stop git zombie creation during force push check 2015-01-22 15:51:20 +01:00
redcarpet/render Replace highlight.js with rouge-fork rugments 2015-01-15 13:41:11 +01:00
support Merge pull request #8273 from bbodenmiller/nginx-updates 2014-11-10 10:20:44 +01:00
tasks Merge branch 'master' into 'master' 2015-01-20 05:03:22 +00:00
disable_email_interceptor.rb Add email interceptor to prevent mail sending if email sending is disabled. 2014-10-27 13:05:50 +01:00
email_validator.rb Test for the apostrophe in the email 2014-06-11 13:36:30 +02:00
event_filter.rb Add parenthesis to function def with arguments. 2014-10-03 09:18:46 +02:00
extracts_path.rb Improve code according to new gitlab_git 2014-02-04 14:46:15 +02:00
file_size_validator.rb Fully embrace Ruby 1.9 hash syntax 2012-08-10 18:25:15 -04:00
gt_one_coercion.rb diff unfold 2014-08-14 15:48:14 +04:00
static_model.rb Fixed styles, ProjectHook specs etc 2013-01-05 00:35:38 +02:00
unfold_form.rb diff unfold 2014-08-14 15:48:14 +04:00