Valery Sizov
3fcd75a911
Merge CE master into EE master
...
Conflicts:
Gemfile
VERSION
app/assets/javascripts/project.js.coffee
app/assets/javascripts/users_select.js.coffee
app/controllers/projects/services_controller.rb
app/models/project.rb
app/views/groups/edit.html.haml
features/project/service.feature
features/steps/project/services.rb
spec/models/concerns/mentionable_spec.rb
2014-11-13 17:05:12 +02:00
Vinnie Okada
41518a467d
Remove :keep_repo option
...
Always delete repositories from the filesystem when deleting a project.
2014-10-22 21:08:19 -05:00
Vinnie Okada
68b5ac7f18
Add option to keep repo on project delete
...
Update the project API controller to use `Projects::DestroyService`
instead of calling `Project#destroy` directly.
Also add an optional parameter, `:keep_repo`, that allows a project to
be deleted without deleting the repository, wiki, and satellite from
disk.
2014-10-07 15:21:00 -05:00
Dmitriy Zaporozhets
a5972170ad
Merge remote-tracking branch 'origin/master' into ee-7-4
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
app/controllers/projects/team_members_controller.rb
app/finders/projects_finder.rb
app/models/group.rb
app/models/project_team.rb
app/models/users_group.rb
config/gitlab.yml.example
config/initializers/1_settings.rb
config/routes.rb
db/schema.rb
doc/integration/ldap.md
features/steps/group.rb
features/steps/project/project.rb
2014-10-02 13:24:59 +03:00
Bernhard Kaindl
f030ee846e
API: Initial support for forking a project via the API
...
This change adds POST /projects/fork/:id to the API for forking
a project into the namespace of the authenticated user, like the
"create fork" link in the GUI does. It also calls the same code.
Failure and permission checks (except for conflict) are already
implemented and handled in ForkService and the API, so the added
code is simple and does not alter anything.
2014-10-01 10:27:48 +02:00
jubianchi
998cd3cb63
Improve error reporting on users API
...
* users (#6878 , #3526 , #4209 ): Validation error messages are now exposed through 400 responses, 409 response are sent in case of duplicate email or username
* MRs (#5335 ): 409 responses are sent in case of duplicate merge request (source/target branches), 422 responses are sent when submiting MR fo/from unrelated forks
* issues
* labels
* projects
2014-09-16 01:25:24 +02:00
Jacob Vosmaer
ee8836a903
Merge commit '27cf081e1b0b1df166' into merge_ce_27cf081e1b0b1df166
...
Conflicts:
VERSION
app/models/user.rb
app/services/merge_requests/build_service.rb
config/gitlab.yml.example
db/schema.rb
doc/integration/README.md
features/project/merge_requests.feature
features/steps/project/merge_requests.rb
2014-08-15 10:25:23 +02:00
Robert Schilling
9284038dbe
Add, delete labels via API
2014-08-13 12:28:19 +02:00
Dmitriy Zaporozhets
f8eedb4cda
Cleaner variable name
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-08-11 15:25:25 +03:00
Dmitriy Zaporozhets
d10ecacc47
Merge branch 'master' into 'master'
...
Let users limit by archived/not archived projects in GitLab API GET /projects
Adds a boolean parameter, archived, to the /projects endpoint.
See merge request !158
2014-08-11 09:27:24 +00:00
Dmitriy Zaporozhets
70f868b737
Fix tests
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-07-30 16:05:43 +03:00
Sasha Joseph
37c4ba6f8d
Add an option to GET /projects in the GitLab API to exclude archived projects
2014-07-28 12:48:13 -04:00
Dmitriy Zaporozhets
66098dbb59
Merge pull request #7089 from NARKOZ/api-patch
...
API patch
2014-07-23 20:26:36 +03:00
Dmitriy Zaporozhets
b165b097f5
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce-7-to-ee
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
LICENSE
VERSION
app/controllers/omniauth_callbacks_controller.rb
app/helpers/application_helper.rb
app/helpers/merge_requests_helper.rb
app/models/group.rb
app/models/project.rb
app/models/project_team.rb
app/views/admin/groups/edit.html.haml
app/views/groups/_projects.html.haml
app/views/groups/edit.html.haml
db/schema.rb
doc/install/installation.md
doc/integration/README.md
lib/gitlab/git_access.rb
lib/gitlab/markdown.rb
spec/helpers/merge_requests_helper.rb
spec/models/merge_request_spec.rb
2014-06-17 10:53:44 +03:00
Dmitriy Zaporozhets
ae564c97d4
Dont expose user email via API
...
To prevent leaking of users info we reduce amount of user information
retrieved via API for normal users.
What user can get via API:
* if not admin: only id, state, name, username and avatar_url
* if admin: all user information
* about himself: all informaion
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-13 17:46:48 +03:00
Dmitriy Zaporozhets
1355ede49d
Wipe wall notes feature
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-13 14:24:54 +03:00
Nihad Abbasov
7040a42cfc
API: ability to set an import url when creating project for a specified user
2014-06-06 06:31:55 +05:00
Dmitriy Zaporozhets
fae2e540b6
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into upstream-ce-6-8
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
CHANGELOG
Gemfile.lock
README.md
VERSION
app/assets/javascripts/application.js
db/schema.rb
doc/install/installation.md
doc/update/4.2-to-5.0.md
doc/update/5.0-to-5.1.md
doc/update/5.1-to-5.2.md
doc/update/5.2-to-5.3.md
doc/update/5.4-to-6.0.md
doc/update/6.0-to-6.1.md
doc/update/6.0-to-6.7.md
lib/gitlab/git_access.rb
2014-04-10 13:34:56 +03:00
Ábner Silva de Oliveira
e153469f31
changed doc comment for get labels of a project
2014-03-23 19:07:18 -03:00
Ábner Silva de Oliveira
44aa6b90dd
added api method to return labels of a given project
2014-03-21 06:25:25 -03:00
Dmitriy Zaporozhets
e502d785f9
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into code-from-ce-6-7
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
CHANGELOG
VERSION
app/controllers/application_controller.rb
app/models/user.rb
app/views/groups/members.html.haml
app/views/groups/show.html.haml
config/gitlab.yml.example
db/schema.rb
features/steps/project/project_browse_branches.rb
lib/api/projects.rb
lib/gitlab/ldap/access.rb
lib/gitlab/ldap/adapter.rb
lib/gitlab/ldap/person.rb
lib/gitlab/upgrader.rb
2014-03-18 11:15:01 +02:00
Dmitriy Zaporozhets
eea317795e
Add current user permissions info to /api/projects/:id.json
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-03-17 14:33:41 +02:00
Dmitriy Zaporozhets
7c60713e82
Move project members api to separate file
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-03-17 13:44:54 +02:00
Dmitriy Zaporozhets
cf413ffb75
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ce_6_6
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
LICENSE
VERSION
db/schema.rb
features/steps/group/group.rb
lib/api/internal.rb
2014-02-19 14:55:07 +02:00
Dmitriy Zaporozhets
f0f88390c1
project_user selectbox with ajax autocomplete
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-02-13 16:08:26 +02:00
Dmitriy Zaporozhets
903726c846
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into upstream-ce
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
CHANGELOG
Gemfile
VERSION
app/models/group.rb
app/views/groups/edit.html.haml
db/schema.rb
doc/install/installation.md
doc/update/5.4-to-6.0.md
2014-02-11 10:15:13 +02:00
Dmitriy Zaporozhets
2df9a76042
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into 6_5_ce
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
CHANGELOG
VERSION
app/assets/stylesheets/generic/common.scss
app/views/projects/edit.html.haml
config.ru
db/schema.rb
doc/install/installation.md
doc/update/6.0-to-6.1.md
doc/update/6.1-to-6.2.md
lib/gitlab/upgrader.rb
2014-01-21 18:15:49 +02:00
skv
a3f645ef51
Remove deprecated finders
2014-01-19 23:39:56 +04:00
Dmitriy Zaporozhets
efa10c819d
Replace context with service in lib
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-01-16 20:35:21 +02:00
Dmitriy Zaporozhets
1f43fa20d3
Merge branch '6-4-stable' of dev.gitlab.org:gitlab/gitlabhq into 6-4-from-ce
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
Gemfile
Gemfile.lock
VERSION
app/controllers/application_controller.rb
db/schema.rb
doc/install/installation.md
doc/update/6.2-to-6.3.md
2013-12-23 12:57:22 +02:00
Maxime Brugidou
56d4788264
Add import_url param in API projects create
2013-12-09 11:07:32 +01:00
Dmitriy Zaporozhets
4e77b0b52d
Merge branch '6-3-stable' of dev.gitlab.org:gitlab/gitlabhq into release/6-3
...
Conflicts:
Gemfile.lock
VERSION
app/assets/javascripts/api.js.coffee
app/models/user.rb
app/views/help/index.html.haml
doc/install/installation.md
doc/update/5.4-to-6.0.md
doc/update/6.0-to-6.1.md
doc/update/6.1-to-6.2.md
lib/api/api.rb
lib/api/entities.rb
lib/gitlab/ldap/user.rb
lib/tasks/gitlab/check.rake
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-11-29 10:01:43 +02:00
Jason Hollingsworth
d9bb4230cc
Adding authenticated public mode (internal).
...
Added visibility_level icons to project view (rather than just text).
Added public projects to search results.
Added ability to restrict visibility levels standard users can set.
2013-11-26 22:22:07 -06:00
Dmitriy Zaporozhets
a09fc160d0
Add project.all for API if admin
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-11-18 14:15:59 +02:00
Dmitriy Zaporozhets
cfa15d0846
Remove default_branch support from API project creation
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-11-06 19:14:11 +02:00
Dmitriy Zaporozhets
c9a2765515
Merge branch '6-2-stable' of dev.gitlab.org:gitlab/gitlabhq into upstream/6-2-stable
...
Conflicts:
VERSION
app/models/group.rb
app/views/groups/edit.html.haml
db/schema.rb
doc/api/groups.md
doc/api/projects.md
doc/install/installation.md
lib/api/projects.rb
spec/requests/api/groups_spec.rb
spec/requests/api/projects_spec.rb
2013-10-31 14:29:48 +02:00
Dmitriy Zaporozhets
c8e7d6df79
API: new feature - remove project[D
2013-10-09 14:41:41 +03:00
Dmitriy Zaporozhets
1eba936681
New API: share project with group
...
Share project with group using API.
You must be a master or owner of project in order to do it.
POST /projects/:id/share
Parameters:
id (required) - The ID of a project
group_id (required) - The ID of a group
group_access (required) - Level of permissions for sharing
2013-10-03 10:15:50 +03:00
Izaak Alpert
04c7c262a7
Used pagnation function from api helpers
...
Change-Id: I1bdd3608d3b46924b5da3ae282c99f85ee4e0dab
2013-09-24 09:22:46 -04:00
Izaak Alpert
4cfbfbb845
Added search for projects by name to api
...
GITLAB-1283 (GITLAB-869)
Change-Id: I611e7e93f6292de08e1edc8d3ea77cf9087b6ded
Conflicts:
config/initializers/1_settings.rb
2013-09-23 19:36:25 -04:00
Dmitriy Zaporozhets
d6aec3fc1a
Allow specify path when create project via api
2013-08-14 13:41:06 +03:00
Angus MacArthur
ace5c54ab9
enhance project creation apis to allow setting of public attribute
...
Change-Id: Ib71ce8cf993627eada63d7d596fb302ec702f36e
2013-07-12 12:10:42 -04:00
Dmitriy Zaporozhets
8cdfa86b57
Merge pull request #3993 from bke-drewb/3599
...
Issue 3599: Add snippets_enabled flag to projects for API
2013-07-11 09:54:15 -07:00
Angus MacArthur
ea5a006f27
Additon of apis for fork administration.
...
Added ability to add and remove the forked from/to relatioinship
between existing repos.
2013-07-08 17:34:00 -04:00
Drew Blessing
31b06ebd01
Issue 3599: Add snippets_enabled flag to projects for API
...
s 3599: Add snippets_enabled flag to projects for API
Replace missing comma
2013-06-11 21:38:02 -05:00
Dmitriy Zaporozhets
8df699a336
API: project events
2013-06-06 19:19:17 +03:00
Dmitriy Zaporozhets
b05600f28b
Split Project api on several parts: deploy_keys, hooks, snippets etc
2013-06-06 12:37:51 +03:00
babatakao and baba
37a90d5f76
Selectable deploy keys contain master projects
2013-06-05 02:59:30 +09:00
Dmitriy Zaporozhets
bcc4e4dc7e
Merge branch 'gist' of https://github.com/Andrew8xx8/gitlabhq into Andrew8xx8-gist
...
Conflicts:
Gemfile.lock
app/models/ability.rb
app/models/project.rb
app/views/snippets/_form.html.haml
db/schema.rb
features/steps/shared/paths.rb
spec/factories.rb
spec/models/project_spec.rb
2013-06-04 18:36:22 +03:00
Dmitriy Zaporozhets
0611c5c612
Fix deploy key api 500 if key is empty
2013-06-03 21:01:07 +03:00