Douwe Maan
b8066e2cd0
No more web url
2015-07-30 11:56:15 +02:00
Douwe Maan
a784b996b3
Add project star and fork count, group avatar URL and user/group web URL attributes to API
2015-07-28 15:49:44 +02:00
Stan Hu
6c9f527b3f
Return comments in created order in merge request API
...
Closes #1832
2015-07-16 22:33:58 -07:00
Stan Hu
daed441dfe
Merge branch 'merge-request-wip-information' into 'master'
...
api: expose work_in_progress flag
See merge request !948
2015-07-15 01:13:05 +00:00
Douwe Maan and Robert Speicher
b93053695a
Fix transferring of project to another group using the API.
2015-07-11 16:47:33 -04:00
Ben Boeckel
414cacd7f4
api: expose work_in_progress flag
2015-07-10 10:33:43 -04:00
Stan Hu
4c586dc7c2
Revert "api: add 'system', 'upvote', and 'downvote' fields to note queries"
...
This reverts commit dd4fee5fdb .
2015-07-09 12:35:53 -07:00
Ben Boeckel
dd4fee5fdb
api: add 'system', 'upvote', and 'downvote' fields to note queries
2015-07-09 11:24:28 -04:00
Dmitriy Zaporozhets
f76092c06d
Merge branch 'settings-via-api' into 'master'
...
API to set application settings for admin
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
See merge request !934
2015-07-07 10:57:41 +00:00
Dmitriy Zaporozhets
603ceea21a
Add tests and improve logic
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-06 16:47:19 +02:00
Dmitriy Zaporozhets
b28714b6a9
Add docs and empty specs for applicaiton settings API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-06 15:53:08 +02:00
Dmitriy Zaporozhets
c2ee6862c8
API to set application settings for admin
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-03 16:50:21 +02:00
Steve Norman
b3a751112d
Allow user to be blocked and unblocked via the API
2015-07-03 11:17:57 +00:00
Dmitriy Zaporozhets
9f166a8649
Merge branch 'rename-abilities' into 'master'
...
Rename abilities to correspond contoller/model action names
write_ was renamed to create_
modify_ was renamed to update_
So now in update action we have next code
```
def create
can?(current_user, :create_issue, @issue)
end
def update
can?(current_user, :update_issue, @issue)
end
```
See merge request !896
2015-06-26 16:39:17 +00:00
Dmitriy Zaporozhets
58ceb8e950
Only people who can manage issue can assign labels to it
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-26 16:02:57 +02:00
Dmitriy Zaporozhets
342d553709
Rename abilities to correspond contoller/model action names
...
write_ was renamed to create_
modify_ was renamed to update_
So now in update action we have next code
def create
can?(current_user, :create_issue, @issue)
end
def update
can?(current_user, :update_issue, @issue)
end
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-26 15:55:56 +02:00
Stan Hu
6548e9b48c
Add 2FA status to user admin API
...
Closes https://github.com/gitlabhq/gitlabhq/issues/9391
2015-06-23 22:41:59 -07:00
Stan Hu
e80d7a804f
Fix error when deleting a user who has projects
...
Closes #1856
Closes https://github.com/gitlabhq/gitlabhq/issues/9394
2015-06-23 04:39:49 -07:00
Dmitriy Zaporozhets
7bde6ae540
Fix editing files via API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-05 17:16:51 +02:00
Dmitriy Zaporozhets
b7d20f14c6
Merge branch 'maser/gitlab-ce-order-commit-comments-in-api' into 'master'
...
Order commit comments in API chronologically
When fetching commit comments via API, the comments were not ordered,
but just returned in the order Postgresql finds them. Now the API always
returns comments in chronological order.
Same as !628 but with CI
See merge request !768
2015-06-05 08:38:19 +00:00
Dmitriy Zaporozhets
b9219469f7
Merge branch 'make-namespaces-api-available-to-all-users' into 'master'
...
Make namespace API available to all users
### What does this MR do?
This MR makes it possible for a user to query namespaces to which he/she has access. Also, it adds documentation for the existing API.
### Why was this MR needed?
Even though the `groups` API exists, it might still be useful to have an endpoint that tells the namespace type (e.g. `user` vs. `group`), especially if a user has access to a number of different projects.
### What are the relevant issue numbers?
Closes https://github.com/gitlabhq/gitlabhq/issues/9328
See merge request !708
2015-06-04 15:59:17 +00:00
Dmitriy Zaporozhets
61cfd1d273
Wrap group removal into service
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-03 14:07:20 +02:00
Stan Hu
85145d1d77
Disable changing of the source branch in merge request update API
2015-05-29 09:40:35 -07:00
Stan Hu
67992b9be6
Make namespace API available to all users
...
Closes https://github.com/gitlabhq/gitlabhq/issues/9328
2015-05-28 11:39:12 -07:00
Dmitriy Zaporozhets
499154518a
You can not remove user if he/she is an only owner of group
...
To prevent loose of group data you need to transfer or remove group
first before you can remove user
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-05-28 12:00:02 +02:00
Stan Hu
deeff56967
Add support for Webhook note events
...
Closes https://github.com/gitlabhq/gitlabhq/issues/6745
2015-05-21 23:48:16 -04:00
Jakub Jirutka
ed3298fc01
Allow to configure gitlab_shell_secret location
2015-05-16 21:46:06 +02:00
Valery Sizov
7c3ca86370
Add order option for projects API
2015-05-14 15:49:09 +03:00
Douwe Maan
1f72c387c9
Improve Git access error messages.
2015-05-13 09:41:55 +02:00
bugagazavr
acac788902
Added X-GitLab-Event header for web hooks
2015-05-08 16:49:03 +03:00
Martin Luder
55f91f3d43
Order commit comments in API chronologically
...
When fetching commit comments via API, the comments were not ordered,
but just returned in the order Postgresql finds them. Now the API always
returns comments in chronological order.
2015-05-08 14:34:10 +02:00
Sven Selberg
361284fec2
Add current_sign_in_at to api User
2015-05-04 09:42:11 +02:00
Dmitriy Zaporozhets
747232eeda
Merge branch 'api-iid' of https://github.com/jubianchi/gitlabhq into jubianchi-api-iid
2015-05-03 14:34:23 +03:00
Dmitriy Zaporozhets
a7ddff8748
Merge pull request #9066 from jirutka/fix-6417
...
Fix #6417 : users with group permission should be able to create groups via API
2015-05-03 14:31:00 +03:00
jubianchi
2c544d43c8
Query issues, merge requests and milestones with their IID through API
2015-05-02 10:44:52 +02:00
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
jubianchi
79d0b69345
Send 500 errors as JSON in the API
2015-04-27 21:27:02 +02:00
Valery Sizov
bc9ba5237c
Revert "Added X-GitLab-Event header for web hooks"
...
This reverts commit 548f182814 .
2015-04-27 16:29:31 +03:00
bugagazavr
548f182814
Added X-GitLab-Event header for web hooks
2015-04-25 21:31:52 +03:00
Douwe Maan
8ed7ac9d44
Use project.commit convenience method.
2015-04-24 12:29:36 +02:00
Douwe Maan
84a1590252
Let commit model know about its project.
2015-04-24 12:29:36 +02:00
Douwe Maan
2b2bd402dc
Track who created a group or project member.
2015-04-14 12:06:42 +02:00
Douwe Maan
e6569defe6
Use through-relation instead of manually mapping.
2015-04-14 12:05:50 +02:00
Douwe Maan
ff3caad4ca
Rename manage_group ability to admin_group for consistency with project.
2015-04-14 12:05:49 +02:00
Christoph Dreis
1fdc610fa5
Include creator_id in project info of API
2015-04-10 18:35:05 +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
Dmitriy Zaporozhets
424cbf46d5
Merge branch 'repository-archive-worker' into 'master'
...
Archive repositories in background worker.
Depends on https://gitlab.com/gitlab-org/gitlab_git/merge_requests/17 being merged, a new `gitlab_git` being released and this MR's `Gemfile.lock` being updated..
See private issue https://dev.gitlab.org/gitlab/gitlabhq/issues/2173 .
To do after this is merged: Update https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/sv-sidekiq-run.erb in omnibus.
See merge request !436
2015-04-02 20:30:55 +00: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
Dmitriy Zaporozhets
eb2339a401
Merge pull request #9023 from dantudor/patch-1
...
Allow ability to delete branches with '/` in name
2015-03-31 19:30:15 +03:00
Dan Tudor
a6c6335671
Added the missing comma
2015-03-31 17:08:33 +01:00