summaryrefslogtreecommitdiff
path: root/spec/requests/api/projects_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-091-0/+49
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'"Andreas Brandl2019-04-051-49/+0
| | | This reverts merge request !26823
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-051-0/+49
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ↵jarv/dev-to-gitlab-2019-04-02John Jarvis2019-04-021-5/+11
|\ | | | | | | jarv/dev-to-gitlab-2019-04-02
| * Return cached languages if they've been detected beforeIgor Drozdov2019-03-201-5/+11
| |
* | Show statistics also when repository is disabledPeter Marko2019-03-231-0/+10
|/
* Merge branch 'security-protect-private-repo-information' into 'master'Yorick Peterse2019-03-041-2/+57
|\ | | | | | | | | Fix leaking private repository information in API See merge request gitlab/gitlabhq!2881
| * Prevent leaking of private repo data through APILuke Duncalfe2019-02-181-2/+57
| | | | | | | | | | default_branch, statistics and config_ci_path are now only exposed if the user has permissions to the repository.
* | Merge branch ↵Yorick Peterse2019-03-041-0/+12
|\ \ | | | | | | | | | | | | | | | | | | '2802-security-add-public-internal-groups-as-members-to-your-project-idor' into 'master' Add public/internal groups as members to your Project(IDOR) See merge request gitlab/gitlabhq!2898
| * | Change policy regarding group visibilityMałgorzata Ksionek2019-02-201-0/+12
| |/
* | Added: Documentation for the APINermin Vehabovic2019-02-261-3/+3
| | | | | | | | Added: Specs for the API action
* | Merge branch 'zj-load-languages-from-database' into 'master'Nick Thomas2019-02-251-0/+26
|\ \ | | | | | | | | | | | | | | | | | | Load repository language from the DB if detected Closes #47390 See merge request gitlab-org/gitlab-ce!25518
| * | Load repository language from the DB if detectedZeger-Jan van de Weg2019-02-251-0/+26
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | The repository charts page used to detect the repository language for each request that was made to the page. Given the detection is an expensive operation and the same data is stored in the database the database is now serving the request. The same goes for an API endpoint that serves the languages. When a repository is empty or non-existent the languages will always be empty. And the language detection RPC isn't requested. Closes: https://gitlab.com/gitlab-org/gitlab-ce/issues/47390
* | Add specs: setting path/name to project fork APIBalasankar "Balu" C2019-02-201-0/+48
|/
* Add programming language filtering to `/projects`Dylan MacKenzie2019-02-041-0/+47
|
* Merge branch '51913-api-getting-projects-for-users-with-dot-gets-404' into ↵Rémy Coutable2019-02-011-2/+11
|\ | | | | | | | | | | | | | | | | 'master' API: Support username with dots Closes #51913 See merge request gitlab-org/gitlab-ce!24395
| * API: Support username with dotsRobert Schilling2019-01-151-2/+11
| |
* | Merge branch 'api-nested-group-permission' into 'master'Nick Thomas2019-01-181-0/+34
|\ \ | | | | | | | | | | | | | | | | | | Return the maximum group access level in the projects API Closes #43684 See merge request gitlab-org/gitlab-ce!24403
| * | Return max group access level in the projects APIAlejandro Rodríguez2019-01-161-0/+34
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently if a project is inside a nested group and a user doesn't have specific permissions for that group but does have permissions on a parent group the `GET /projects/:id` API call will return the following permissions: ```json permissions: { project_access: null, group_access: null } ``` It could also happen that the group specific permissions are of lower level than the ones the user has in parent groups. This patch makes it so that the permission returned for `group_access` is the highest from amongst the hierarchy, which is (ostensibly) the information that the API user is interested in for that field.
* | Add group full path to project's shared_with_groupsMathieu Parent2019-01-151-0/+2
|/
* Update specs to rails5 formatblackst0ne-convert-specs-rails5-styleblackst0ne2018-12-191-90/+90
| | | | | | | | | | Updates specs to use new rails5 format. The old format: `get :show, { some: params }, { some: headers }` The new format: `get :show, params: { some: params }, headers: { some: headers }`
* Resolve "Can add an existing group member into a group project with new ↵James Lopez2018-12-061-1/+1
| | | | permissions but permissions are not overridden"
* Feature/add license to project APIJ.D. Bean2018-10-261-0/+38
|
* Remove the `ForkedProjectLink` modelBob Van Landuyt2018-10-191-1/+1
| | | | | | | | | | | | | | This removes the `ForkedProjectLink` model that has been replaced by the `ForkNetworkMember` and `ForkNetwork` combination. All existing relations have been adjusted to use these new models. The `forked_project_link` table has been dropped. The "Forks" count on the admin dashboard has been updated to count all `ForkNetworkMember` rows and deduct the number of `ForkNetwork` rows. This is because now the "root-project" of a fork network also has a `ForkNetworkMember` row. This count could become inaccurate when the root of a fork network is deleted.
* Resolve "500 Internal Server Error: Deleting branch of deleted project"🙈 jacopo beschi 🙉2018-09-121-0/+19
|
* Initialize projects with readmeSteve2018-09-121-0/+8
|
* Merge branch 'api-shared_group_expires-at' into 'master'Sean McGivern2018-08-221-0/+16
|\ | | | | | | | | | | | | API: Add shared project's expiration date Closes #46107 See merge request gitlab-org/gitlab-ce!21104
| * API: Add shared project's expiration dateapi-shared_group_expires-atRobert Schilling2018-08-211-0/+16
| |
* | Allow project owners to set up forking relation through APIToon Claes2018-08-201-34/+74
| | | | | | | | | | | | | | | | Before this change only GitLab admins where allowed to set up forking relation through the API. This changes that so project owners can do this too. Closes gitlab-org/gitlab-ce#40550.
* | Remove some duplicate tests and fix some typosqa-314-project-tests-cleanupsliaquat2018-08-161-100/+5
|/
* Use Projects::UpdateService to archive projectsJames Ramsay2018-08-031-2/+2
| | | | | | System hooks were not being triggered when projects were archived or unarchived. Reuse the Projects::UpdateService to automatically trigger system hooks and increase code reuse.
* Add min_access_level filter to projects APIMarko, Peter2018-07-231-0/+30
| | | | Signed-off-by: Marko, Peter <peter.marko@siemens.com>
* Fix gitlab import project loadFrancisco Javier López2018-07-231-1/+1
|
* Fix archived parameter for projects APIMarko, Peter2018-07-161-0/+33
|
* Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao2018-07-111-7/+7
|
* Fix #48537 - Update avatar only via the projects APIJamie Schembri2018-07-091-0/+14
|
* Updates from `rubocop -a`Lin Jen-Shin2018-07-091-3/+3
|
* Add transfer project endpoint to the Projects APIAram Visser2018-06-271-0/+32
|
* Make all uses of `fixture_file_upload` use relative pathsRobert Speicher2018-06-071-2/+2
|
* Expose readme url in Project APIImre Farkas2018-05-221-2/+3
|
* Fix project creation for user endpoint bugMark Fletcher2018-04-231-1/+2
| | | | | | In this endpoint the `jobs_enabled` parameter must be translated to `builds_enabled` before being passed to the `Projects::CreateService`.
* Feature/add language in repository to apiRoger Rüttimann2018-04-131-0/+48
|
* Resolve "Allow the configuration of a project's merge method via the API"Jan2018-04-041-1/+40
|
* Resolve "Forking with namespace doesn't work (API)"Jan2018-03-261-0/+15
|
* Fix order dependencies in some specsNick Thomas2018-02-161-2/+2
| | | | | | Our automatically-generated project paths are of the form project<N>. If a spec manually specifies a project path of that form, it may conflict with the automatically-generated paths in some circumstances.
* Use hashed storage in the specs40744-hashed-storage-specsNick Thomas2018-02-071-7/+4
|
* use Gitlab::UserSettings directly as a singleton instead of ↵Mario de la Ossa2018-02-021-2/+0
| | | | including/extending it
* Resolve "Projects API: filter 'with_issues_enabled=true' returns projects ↵Jan Christophersen2018-01-191-0/+26
| | | | with 'issues_enabled=false'"
* Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-221-5/+5
|
* Adds Rubocop rule for line break after guard clauseJacopo2017-11-161-0/+2
| | | | Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.