summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable frozen string in lib/api and lib/backupgfyoung2018-09-291-0/+2
| | | | | | | | | | Partially addresses #47424. Had to make changes to spec files because stubbing methods on frozen objects is a mess in RSpec and leads to failures: https://github.com/rspec/rspec-mocks/issues/1190
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+4
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Allow project owners to set up forking relation through APIToon Claes2018-08-201-1/+1
| | | | | | | | 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.
* 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.
* Backports EE-1499 to CETiago Botelho2018-07-271-28/+39
|
* Add min_access_level filter to projects APIMarko, Peter2018-07-231-0/+1
| | | | Signed-off-by: Marko, Peter <peter.marko@siemens.com>
* Backport of gitlab-org/gitlab-ee!6137Valery Sizov2018-07-191-3/+18
|
* Fix archived parameter for projects APIMarko, Peter2018-07-161-1/+1
|
* Fix #48537 - Update avatar only via the projects APIJamie Schembri2018-07-091-1/+2
|
* Add transfer project endpoint to the Projects APIAram Visser2018-06-271-0/+17
|
* Only preload member records for the relevant projects/groups/user in ↵dm-api-projects-members-preloadDouwe Maan2018-05-301-7/+0
| | | | projects API
* Fix project creation for user endpoint bugMark Fletcher2018-04-231-2/+8
| | | | | | In this endpoint the `jobs_enabled` parameter must be translated to `builds_enabled` before being passed to the `Projects::CreateService`.
* Resolve "Make a Rubocop that forbids returning from a block"🙈 jacopo beschi 🙉2018-04-181-1/+1
|
* Feature/add language in repository to apiRoger Rüttimann2018-04-131-0/+5
|
* Make the API project params reusableBob Van Landuyt2018-04-041-30/+4
|
* Resolve "Allow the configuration of a project's merge method via the API"Jan2018-04-041-0/+2
|
* Resolve "Forking with namespace doesn't work (API)"Jan2018-03-261-5/+1
|
* Resolve "API: PUT /projects/:id fails when only ci_config_path is specified"Kárpáti László2018-02-211-0/+1
|
* Allow including custom attributes in API responsesMarkus Koller2018-02-081-3/+16
|
* Track and act upon the number of executed queriesquery-countsYorick Peterse2018-02-011-0/+2
| | | | | | | | | | | This ensures that we have more visibility in the number of SQL queries that are executed in web requests. The current threshold is hardcoded to 100 as we will rarely (maybe once or twice) change it. In production and development we use Sentry if enabled, in the test environment we raise an error. This feature is also only enabled in production/staging when running on GitLab.com as it's not very useful to other users.
* Resolve "Projects API: filter 'with_issues_enabled=true' returns projects ↵Jan Christophersen2018-01-191-2/+2
| | | | with 'issues_enabled=false'"
* Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+1
|
* The API isn't using the appropriate services for managing forksFrancisco Javier López2017-12-071-10/+11
|
* Undoing debugging changeFrancisco Lopez2017-12-011-2/+2
|
* Comments from code review applied. Also switched forked_from_project and ↵Francisco Lopez2017-12-011-5/+5
| | | | ForkedProjectLinks to ForkNetworkMember
* Refactored /projects and /user/:user_id/projects endpointsFrancisco Lopez2017-12-011-2/+2
|
* Support custom attributes on projectsMarkus Koller2017-11-061-0/+2
|
* Add an API endpoint to determine the forks of a projectMark Fletcher2017-09-201-4/+19
|
* change collapse to resolve and comments to discussionsAshley Dumaine2017-09-061-2/+2
|
* Add functionality to collapse outdated diff comments regardless of ↵Ashley Dumaine2017-09-061-0/+2
| | | | discussion resolution
* API: Use defined project requirementsrs-api-use-project-requirementsRobert Schilling2017-08-311-2/+2
|
* Add a spec when ressource is not modifiedRobert Schilling2017-08-291-4/+2
|
* Update remaining endpointsRobert Schilling2017-08-281-1/+0
|
* Conditionally destroy a ressourceRobert Schilling2017-08-281-2/+3
|
* API: Respect the 'If-Unmodified-Since' for delete endpointsRobert Schilling2017-08-281-0/+2
|
* Cache the number of forks of a projectforks-count-cacheYorick Peterse2017-08-141-0/+2
| | | | | | | | | | | The number of forks of a project doesn't change very frequently and running a COUNT(*) every time this information is requested can be quite expensive. We also end up running such a COUNT(*) query at least twice on the homepage of a project. By caching this data and refreshing it when necessary we can reduce project homepage loading times by around 60 milliseconds (based on the timings of https://gitlab.com/gitlab-org/gitlab-ce).
* Update grape gemdz-update-grapeDmitriy Zaporozhets2017-07-201-0/+2
| | | | | | | | New version of the gem returns 200 status code on delete with content instead of 204 so we explicitly set status code to keep existing behavior Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix some N+1 queries in the GET /projects APIRémy Coutable2017-07-071-0/+8
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch '33657-user-projects-api' into 'master'Rémy Coutable2017-07-061-48/+65
|\ | | | | | | | | | | | | Add user projects API Closes #33657 See merge request !12596
| * Add user projects APIvanadium232017-07-061-48/+65
| |
* | Rename ci_config_file to ci_config_pathLin Jen-Shin2017-07-051-1/+1
| |
* | Fix various descriptions given the feedbackLin Jen-Shin2017-07-041-1/+1
| |
* | Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-06-301-1/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 32815--Add-Custom-CI-Config-Path * upstream/master: (123 commits) Backport changes to Projects::IssuesController and the search bar bugfix: use `require_dependency` to bring in DeclarativePolicy Resolve "Select branch dropdown is too close to branch name" Clean up issuable lists Defer project destroys within a namespace in Groups::DestroyService#async_execute Fixed new navgiation bar logo height in Safari Resolve "Issue dropdown persists when adding issue number to issue description" Move verification to block level instead of paragraph Revert "Merge branch 'dm-drop-default-scope-on-sortable-finders' into 'master'" Added code for defining SHA attributes Minor edits Job details won't scroll horizontally to show long lines Run mysql tests on stable preperation branches like 9-3-stable-patch-2 Bring back branches badge to main project page optimize translation content based on comments supplement traditional chinese in taiwan translation Inserts exact matches of username, email and name to the top of the user search list Remove Namespace model default scope override and write additional test to Project search optimize translation content based on comments Limit OpenGraph image size to 64x64 ...
| * bugfix: use `require_dependency` to bring in DeclarativePolicybugfix/declarative-policy-reloadinghttp://jneen.net/2017-06-291-1/+1
| |
| * use subject scope in :id/usershttp://jneen.net/2017-06-271-1/+3
| | | | | | | | since we're loading all the members anyways
* | Merge remote-tracking branch 'upstream/master' into ↵15041-Add-Custom-CI-Config-PathLin Jen-Shin2017-06-281-352/+297
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 15041-Add-Custom-CI-Config-Path * upstream/master: (12506 commits) Update CHANGELOG.md for 9.3.2 Update architecture.md Fix changelog entry file extension Fix head pipeline stored in merge request for external pipelines updated gitlab-ci.yml to compile locale Ignore JSON files generated from PO files Update mmap2 gem tha disables mmap_obj.gsub! as current implementation uses method that is no longer part of Ruby API Disable rainbow during SimpleExecutor specs to have consistence Slightly refactor pipeline schedules form in preparation for additions Resolve "Submitting reply to existing diff discussion using Cmd/Ctrl+Enter submits twice and refreshes page" Make the SimpleExecutor rescue exceptions in the executing Checks Resolve "Unable to access edit comment from dropdown menu in certain screen sizes" Update changelog item revert removal of requestAnimationFrame and move to a separate MR/discussion rename getEmojiCategoryMap and remove unnecessary parameter Action Buttons on Prio Labels working again by setting pointer events to none on… Remove 'contains' option from Commit.find_all Remove Gitlab::Git::Repository#find_all Use latest chrome and chrome driver in GitLab QA Polish sidebar toggle ...
| * add printing_merge_request_link_enabled to APIDavid Turner2017-06-191-0/+2
| |
| * Accept image for avatar in project APIvanadium232017-06-091-0/+1
| |
| * Introduce an Events APIMark Fletcher2017-06-061-10/+0
| | | | | | | | | | | | | | | | | | | | | | * Meld the following disparate endpoints: * `/projects/:id/events` * `/events` * `/users/:id/events` + Add result filtering to the above endpoints: * action * target_type * before and after dates
| * Enable the Style/PreferredHashMethods coprc/enable-PreferredHashMethods-copRémy Coutable2017-06-021-2/+2
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>