Douwe Maan
7e0eb486ed
Don't allow a merge request to be merged when its title starts with "WIP".
2015-04-30 15:46:36 +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
Nihad Abbasov
c3f2de68b5
Merge pull request #8831 from bladealslayer/fix/api-user-tests
...
Fix user API tests succeeding for the wrong reason
2015-04-22 16:55:27 +05:00
Boyan Tabakov
e5b32f3c20
Fix user API tests succeeding for the wrong reason
...
The requests were missing multiple required attributes, while testing for single attribute missing.
Added test for checking username as required attribute.
2015-04-22 08:03:38 +03:00
Douwe Maan
2b2bd402dc
Track who created a group or project member.
2015-04-14 12:06:42 +02:00
Cristian Medina
f045490568
Modified lib/api/entities.rb to expose Project class tag_list property to the API
...
Updated projects.md to show tag_list field when performing GETs
Updated projects_spec.rb to include check for tag_list key in project list
Added changes to the CHANGELOG
2015-04-03 04:35:12 -04:00
Robert Schilling and Jakub Jirutka
9769c2d7fd
Fix #6417 : users with group permission should be able to create groups via API
2015-03-31 18:32:24 +02:00
Douwe Maan
1d829ca151
Fix tests.
2015-03-27 11:10:56 +01:00
Douwe Maan
dfe0f9eedf
Use more specific regexes.
2015-03-27 11:09:29 +01:00
Vinnie Okada
928fc94c3d
Enforce restricted visibilities for snippets
...
Add new service classes to create and update project and personal
snippets. These classes are responsible for enforcing restricted
visibility settings for non-admin users.
2015-03-08 17:57:08 -06: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
Vinnie Okada
5f232b5687
Improve error messages when file editing fails
...
Give more specific errors in API responses and web UI flash messages
when a file update fails.
2015-02-22 16:01:49 -07:00
Dmitriy Zaporozhets
558dd81197
Improve broadcast message API
2015-02-18 14:58:20 -08:00
Douwe Maan
421e882ea4
Fix specs.
2015-02-13 14:43:31 +01:00
Dmitriy Zaporozhets
1343b2dfac
Merge pull request #8785 from jvanbaarsen/rspec-upgrade
...
Rspec upgrade
2015-02-12 16:47:06 -08:00
Dmitriy Zaporozhets
2be3a012ff
Merge branch 'master' of github.com:gitlabhq/gitlabhq
2015-02-12 14:43:02 -08:00
Jeroen van Baarsen
0c4a70a306
Updated rspec to rspec 3.x syntax
...
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com >
2015-02-12 19:17:35 +01:00
Jeroen van Baarsen
d9f84f6867
Merge pull request #8445 from jvanbaarsen/project-spec-speed-up
...
requests/api/project_spec.rb speed up
2015-02-12 11:26:09 +01:00
Vinnie Okada
b0dacc8eb0
Edit group members via API
...
Add an API endpoint to update the access level of an existing group
member.
2015-02-11 18:53:07 -07:00
Douwe Maan
42422dcc6a
Add internal broadcast message API.
2015-02-07 16:41:30 +01:00
Dmitriy Zaporozhets
f9e6f66898
Fix tests
2015-02-05 22:40:35 -08:00
Dmitriy Zaporozhets
bdfb349ff7
Refactor and improve sorting objects in API for projects, issues and merge requests
2015-02-05 22:00:54 -08:00
Dmitriy Zaporozhets
50e8e5943f
Merge branch 'redirect-sign_up' into 'master'
...
Redirect signup page to signin page.
Resolves #1916 .
See merge request !1468
2015-02-05 16:47:11 +00:00
Douwe Maan
ab22caa97e
Redirect signup page to signin page.
...
Resolves #1916 .
2015-02-05 15:56:28 +01:00
Dmitriy Zaporozhets
fc13ea7137
Merge pull request #8712 from jvanbaarsen/add-merge-request-files-endpoint
...
Added a way to retrieve MR files
2015-02-04 14:46:54 -08:00
Jeroen van Baarsen
b60d06eb2c
Added a way to retrieve MR files
...
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com >
2015-02-04 10:24:25 +01:00
Jeroen van Baarsen
0ef495734d
Improved speed of the project_spec.rb
...
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com >
2015-02-03 18:26:17 +01:00
jubianchi
4e97f26649
Acces groups with their path in API
2015-02-03 13:42:38 +01:00
Dmitriy Zaporozhets
7155507af5
Merge pull request #8609 from jubianchi/issues/6289-api-handle-error-project-repo
...
Handle errors on API when a project does not have a repository
2015-01-27 12:51:18 -08:00
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
Hannes Rosenögger
47625ab75e
Fix tests and CHANGELOG entry for project edit via API
2015-01-22 17:46:34 +01:00
Mika Mäenpää and Hannes Rosenögger
7dd5656a5b
Implement edit via API for projects
2015-01-22 16:58:01 +01:00
Hannes Rosenögger
e03f1af00a
Fix the test and add documentation for the "per-milestone issues API call"
2015-01-22 12:14:53 +01:00
Justin Whear and Hannes Rosenögger
9d271538a8
Add per-milestone issues API call
2015-01-22 12:08:45 +01:00
jubianchi
39e54e21cb
Handle errors on API when a project does not have a repository ( Closes #6289 )
2015-01-19 14:13:30 +01:00
Marin Jankovski
ef0cf7b42d
Fix the api project ordering spec.
2015-01-12 11:49:07 +01:00
Marin Jankovski
8689ce1efe
Add search filter option on project api for authorized projects.
2015-01-12 11:08:53 +01:00
Dmitriy Zaporozhets
939c046a98
Fix feature and tests
2015-01-08 13:21:00 -08:00
Marin Jankovski
8dd672776e
Fix failing tests due to updates on the return messages.
2015-01-07 11:39:20 +01:00
Marin Jankovski
0da5154b5a
Fix api tests.
2014-12-30 15:40:11 +01:00
Dmitriy Zaporozhets
a9cf84e5ac
Merge pull request #7675 from yglukhov/patch_notes_api
...
Implemented notes (body) patching in API.
2014-12-29 21:06:49 +02:00
uran and yglukhov
1fbc010241
Implemented notes (body) patching in API.
2014-12-25 14:28:40 +02:00
Valery Sizov
e41dadcb33
Doorkeeper integration
2014-12-24 15:38:07 +02:00
Dmitriy Zaporozhets
f775809910
Fix test
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-12-22 19:11:15 +02:00
Valery Sizov
3a5ed5260b
Supporting for multiple omniauth provider for the same user
2014-12-04 13:03:55 +02:00
Dmitriy Zaporozhets
612b8806dd
Fix internal API for missing project or key
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-12-01 16:55:33 +02:00
Valery Sizov
53bf52f191
Better message for failed pushes because of git hooks
...
Conflicts:
lib/gitlab/git_access.rb
spec/lib/gitlab/git_access_spec.rb
2014-11-18 13:10:07 +02:00
Dmitriy Zaporozhets
940ed58e76
Merge branch 'commit-comments' of https://gitlab.com/jeroenj/gitlab-ce into jeroenj/gitlab-ce-commit-comments
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
CHANGELOG
2014-11-12 13:19:35 +02:00
Dmitriy Zaporozhets
1dc99b4cbb
Merge pull request #8251 from cirosantilli/factor-regex-message-spec
...
Factor regex error messages with spec API tests
2014-11-12 12:16:59 +02:00
Ciro Santilli
e4a38e4471
Factor using Repository#path_to_repo
2014-11-05 17:51:49 +01:00