Zeger-Jan van de Weg
3549d7c1d4
PUT becomes POST on archiving endpoints
...
Also the specs have a minor improvement. Mainly the access right spec.
Changes are reflected in the docs
2016-03-24 18:58:42 +01:00
Zeger-Jan van de Weg
2c5bcf2e1b
Add endpoints for archiving and unarchiving
2016-03-23 22:36:35 +01:00
Felipe Artur
8b830b8c3b
Fix specs
2016-03-18 21:04:53 -03:00
Dmitriy Zaporozhets
e8b3b92dde
Bring share project with group API from EE
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2016-03-13 11:52:43 +01:00
Robert Speicher
de944c914b
Add traits for each access_level to ProjectMember factory
2016-03-06 16:53:22 -05:00
Josh Frye
ae6080c791
Add specs. Adjust filter.
2016-01-19 09:57:00 -05:00
Douwe Maan
1886d727f7
Add API project upload endpoint
2016-01-07 13:37:14 +01:00
Stan Hu
086cfc8685
Fix API project lookups when querying with a namespace with dots
...
Attempting to use the /projects/:id API by specifying :id in
"namespace/project" format would always result in a 404 if the namespace
contained a dot.
The reason? From http://guides.rubyonrails.org/routing.html#specifying-constraints :
"By default the :id parameter doesn't accept dots - this is because the dot is
used as a separator for formatted routes. If you need to use a dot within an
:id add a constraint which overrides this - for example id: /[^\/]+/ allows
anything except a slash."
Closes https://github.com/gitlabhq/gitlabhq/issues/9573
2016-01-03 15:08:44 -08:00
Stan Hu
301a30e0ea
Add project permissions to all project API endpoints
...
This standardizes all the project API formats. Also needed to support Huboard.
2015-12-22 10:58:23 -08:00
Zeger-Jan van de Weg
c36821df9f
Api support for requesting starred projects for user
...
Fixes #4112
2015-12-16 21:46:00 +01:00
Dmitriy Zaporozhets
b8570576e8
Merge branch 'add-open-issues-count-to-api' of https://gitlab.com/stanhu/gitlab-ce
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-12-16 16:08:35 +01:00
Stan Hu
3efae53bd7
Add open_issues_count to project API
...
This is needed to support Huboard and a generally useful value.
2015-12-11 23:17:36 -08:00
Kamil Trzcinski
e80e3f5372
Migrate CI::Project to Project
2015-12-11 18:02:09 +01:00
Stan Hu
631a30276e
Fix API setting of 'public' attribute to false will make a project private
...
Closes #3864
2015-12-05 17:39:36 -08:00
Dmitriy Zaporozhets
3227a5ead2
Extent Event and Note API
...
* add note to Events API
* add author section to Events API
* add noteable_id and noteable_type to Notes API
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-12-04 12:22:50 +01:00
Kamil Trzcinski
6384c757b7
Expose CI enable option in project features
...
- Enable CI by default for all new projects
2015-11-13 10:52:50 +01:00
Han Loong Liauw
0bea5ced8b
Made suggested content changes based on MR Review
...
Changed the authentication method for removing fork through API
Reflected changes to new auth method in API specs
2015-10-14 20:19:41 +11:00
Kamil Trzcinski
297f969bab
Fix specs
2015-09-24 16:25:40 +02:00
Valery Sizov and Kamil Trzcinski
a0c1a12dee
remove API calls from CE to CI
2015-09-18 18:02:11 +02:00
Marin Jankovski
302c52551a
Fix failing specs after adding format verification for token and project url in gitlab ci service.
2015-07-17 15:58:26 +02:00
Robert Speicher
cf7c57aaf5
Use stub_application_setting in a few more specs
...
These specs also failed when run by themselves before this change, so
we've likely got some kind of cross-test contamination going on.
2015-07-06 22:39:56 -04:00
Dmitriy Zaporozhets
f40b99d02e
Merge branch 'master' into rubocop-for-tests
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
spec/features/issues_spec.rb
spec/models/forked_project_link_spec.rb
spec/models/hooks/service_hook_spec.rb
spec/models/hooks/web_hook_spec.rb
spec/models/project_services/hipchat_service_spec.rb
spec/requests/api/project_members_spec.rb
spec/requests/api/projects_spec.rb
spec/requests/api/system_hooks_spec.rb
spec/services/archive_repository_service_spec.rb
spec/support/matchers.rb
spec/tasks/gitlab/backup_rake_spec.rb
2015-06-23 10:44:03 +02:00
Dmitriy Zaporozhets
7b9b3c5aab
Fix part of api specs for rubocop
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-22 15:05:19 +02:00
Robert Speicher and Dmitriy Zaporozhets
bf71d53f63
Change to_not calls to not_to
...
Both work, but now we're consistent across the entire app.
2015-06-22 12:13:49 +02:00
Robert Speicher and Dmitriy Zaporozhets
5a9ede4721
Update mock and stub syntax for specs
2015-06-22 12:13:46 +02:00
Robert Speicher
422236c71e
Change foo.should syntax to expect(foo).to in specs
2015-06-13 18:37:30 -04:00
Dmitriy Zaporozhets
58ab8a4a9d
Fix tests and increase delay time before remove repository
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-03 15:09:12 +02:00
Robert Speicher
9789b56a31
Update ffaker gem
...
Adds a version requirement which it didn't have before, at 2.0.0. This
version has breaking API changes in that the namespace is now `FFaker`
instead of `Faker`.
2015-05-20 19:22:00 -04:00
Valery Sizov
7c3ca86370
Add order option for projects API
2015-05-14 15:49:09 +03: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
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
Douwe Maan
421e882ea4
Fix specs.
2015-02-13 14:43:31 +01: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
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
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
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
Marin Jankovski
0da5154b5a
Fix api tests.
2014-12-30 15:40:11 +01:00
Dmitriy Zaporozhets
f775809910
Fix test
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-12-22 19:11:15 +02:00
Ciro Santilli
98db90c4c9
Factor regex error messages with spec API tests
2014-11-05 15:49:35 +01:00
Marin Jankovski
d59f8abea5
Fix tests after change to regex validation message.
2014-11-05 13:58:51 +01:00
Dmitriy Zaporozhets
ef9f8677e6
Expose author username in project events API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-10-31 12:08:45 +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
Marin Jankovski
86d5a63e5e
Fix failing api specs.
2014-10-06 10:19:11 +02:00
Dmitriy Zaporozhets
d0e3ab5826
Merge branch 'api/improve-error-reporting' of https://github.com/jubianchi/gitlabhq into jubianchi-api/improve-error-reporting
2014-09-23 21:35:45 +03:00