summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add a skip_users filter to the project users APINick Thomas2019-08-191-0/+2
| | | | | | This functionality is available in the /autocomplete users pseudo-API. We're attempting to replace that with the canonical API, so it needs support for this parameter too.
* Fix testsCamil Staps2019-08-071-1/+1
|
* Expose time since starring on project/:id/starrers API endpoint; exclude ↵Camil Staps2019-08-071-4/+3
| | | | private profiles here as well
* Fix API endpoint for starred projects of a user; add info about starred ↵Camil Staps2019-08-071-1/+1
| | | | projects on profile to documentation
* Add documentation and changelog for !24690Camil Staps2019-08-071-4/+6
|
* Add users/:user_id/starred_projects API endpoint for projects starred by a userCamil Staps2019-08-071-0/+16
|
* Add projects/:id/starrers API endpoint for users who starred a repositoryCamil Staps2019-08-071-0/+12
|
* CE port of "Move external authorization service API management to EE"Imre Farkas2019-07-171-1/+3
| | | | EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14598
* Make Housekeeping button do a full garbage collectionsh-fix-issue-63349Stan Hu2019-07-031-1/+1
| | | | | | | | | | | | | | | Previously the Housekeeping button and API would use the counter of last pushes to determine whether to do a full garbage collection, or whether to do one of the less comprehensive tasks: a full repack, incremental pack, or ref pack. This was confusing behavior, since a project owner might have to click the button dozens of times before a full GC would be initiated. This commit forces a full GC each time this is initiated. Note that the `ExclusiveLease` in `HousekeepingService` prevents users from clicking on the button more than once a day. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63349
* CE port of Move EE specific lines in API::ProjectsImre Farkas2019-05-301-19/+4
|
* Forbid the use of `#reload` and prefer `#reset`forbid-the-usage-of-reloadKamil Trzciński2019-04-151-3/+3
| | | | | | | The `#reload` makes to load all objects into memory, and the main purpose of `#reload` is to drop the association cache. The `#reset` seems to solve exactly that case.
* Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ↵jarv/dev-to-gitlab-2019-04-02John Jarvis2019-04-021-5/+3
|\ | | | | | | jarv/dev-to-gitlab-2019-04-02
| * Return cached languages if they've been detected beforeIgor Drozdov2019-03-201-5/+3
| |
* | Backport parameters from API::ProjectsYorick Peterse2019-03-261-35/+16
|/ | | | | This backports various parameter changes EE makes to API::Projects, along with moving some code around to make it easier to extend in EE.
* Merge branch 'security-protect-private-repo-information' into 'master'Yorick Peterse2019-03-041-10/+14
|\ | | | | | | | | Fix leaking private repository information in API See merge request gitlab/gitlabhq!2881
| * Prevent leaking of private repo data through APILuke Duncalfe2019-02-181-10/+14
| | | | | | | | | | 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-9/+6
|\ \ | | | | | | | | | | | | | | | | | | '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-9/+6
| |/
* | Merge branch 'zj-load-languages-from-database' into 'master'Nick Thomas2019-02-251-1/+5
|\ \ | | | | | | | | | | | | | | | | | | 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-1/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Let users set name/path on project fork using APIBalasankar "Balu" C2019-02-201-0/+2
|/
* Add programming language filtering to `/projects`Dylan MacKenzie2019-02-041-0/+4
|
* Unify user requirements for API slugsRobert Schilling2019-01-311-1/+1
|
* API: Support username with dotsRobert Schilling2019-01-151-1/+1
|
* Refactor upload service to return uploaderHeinrich Lee Yu2019-01-071-1/+1
| | | | Also changes old calls to the service
* Fix API::Namespaces to accept namepaces with dotsif-52811-fix_namespaces_api_routingImre Farkas2018-11-281-2/+2
| | | | | It also renames the API::PROJECT_ENDPOINT_REQUIREMENTS constant to API::NAMESPACE_OR_PROJECT_REQUIREMENTS
* Feature/add license to project APIJ.D. Bean2018-10-261-2/+7
|
* Make GitLab pages support access controlTuomo Ala-Vannesluoma2018-10-051-0/+6
|
* 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
|