Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-12-27Fix timeout issues retrieving branches via APIStan Hu
47d4890d changed the order of pagination so that the full list of branches would be passed to Gitaly to determine which ones had been merged, but this operation can timeout for large repositories with many branches. We only need to determine whether the found branches have been merged, so limit the scan to those. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55724
2018-12-19Update specs to rails5 formatblackst0ne
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 }`
2018-07-11Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao
2018-06-26Remove duplicate specDouwe Maan
2018-06-25Fix branch API can_push attribute and add specsDouwe Maan
2018-03-05Update API: add search param to branchesbunufi
2017-10-18Get Project Branch API shows an helpful error message on invalid refnameJacopo
In API v4 when requesting a branch with an invalid refname shows an helpful error message: 'The branch refname is invalid'.
2017-09-19Use set in some API specsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-09-05Add branch existence check to the APIv4 branches via HEAD requestblackst0ne
2017-08-28Add tests for the unmodified headerRobert Schilling
2017-07-27Fix the /projects/:id/repository/branches endpoint to handle dots in the ↵Rémy Coutable
branch name when the project full patch contains a `/` Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-08Add confirm delete protected branch modalSam Rose
2017-04-21Unnecessary "include WaitForAjax" and "include ApiHelpers"Jacopo
Removed all the unnecessary include of `WaitForAjax` and `ApiHelpers` in the specs. Removed unnecessary usage of `api:true`
2017-03-20Allow unauthenticated access to some Branch API GET endpointsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-02-28Return 204 for delete endpointsRobert Schilling
2017-02-24Return 202 with JSON body on async removals on V4 APIOswaldo
2017-02-21Change branch_name param to branch throughout V4 APIOswaldo Ferreira
2017-02-16Add a custom pagination matcherRobert Schilling
2017-02-16Paginate all endpoints that return an arrayRobert Schilling
2017-02-14entities: use the RepoCommit entity for branch commitsBen Boeckel
Fixes #23895.
2017-01-27Use `:empty_project` where possible in request specsRobert Speicher
2016-12-08Allow branch names with dots on API endpointFelipe Artur
2016-12-02Merge branch 'update-api-spec-files' into 'master' Rémy Coutable
Update API spec files to describe the correct class by changing `API::API` to the corresponding class, for example `API::AwardEmoji`. Closes #24902 See merge request !7718
2016-11-30API: Expose branch statusRobert Schilling
2016-11-28Changed API spec files to describe the correct classLivier
Restore changes for api spec files Fix error in rspec Users Delete extra space Repositories-spec
2016-11-21Refactor cache refreshing/expiringYorick Peterse
This refactors repository caching so it's possible to selectively refresh certain caches, instead of just expiring and refreshing everything. To allow this the various methods that were cached (e.g. "tag_count" and "readme") use a similar pattern that makes expiring and refreshing their data much easier. In this new setup caches are refreshed as follows: 1. After a commit (but before running ProjectCacheWorker) we expire some basic caches such as the commit count and repository size. 2. ProjectCacheWorker will recalculate the commit count, repository size, then refresh a specific set of caches based on the list of files changed in a push payload. This requires a bunch of changes to the various methods that may be cached. For one, data should not be cached if a branch used or the entire repository does not exist. To prevent all these methods from handling this manually this is taken care of in Repository#cache_method_output. Some methods still manually check for the existence of a repository but this result is also cached. With selective flushing implemented ProjectCacheWorker no longer uses an exclusive lease for all of its work. Instead this worker only uses a lease to limit the number of times the repository size is updated as this is a fairly expensive operation.
2016-11-09Add button to delete all merged branchesToon Claes
It adds a button to the branches page that the user can use to delete all the branches that are already merged. This can be used to clean up all the branches that were forgotten to delete while merging MRs. Fixes #21076.
2016-10-31GrapeDSL for branches endpointsZ.J. van de Weg
2016-10-24Fix branch protection API.Timothy Andrew
1. Previously, we were not removing existing access levels before creating new ones. This is not a problem for EE, but _is_ for CE, since we restrict the number of access levels in CE to 1. 2. The correct approach is: CE -> delete all access levels before updating a protected branch EE -> delete developer access levels if "developers_can_{merge,push}" is switched off 3. The dispatch is performed by checking if a "length: 1" validation is present on the access levels or not. 4. Another source of problems was that we didn't put multiple queries in a transaction. If the `destroy_all` passes, but the `update` fails, we should have a rollback. 5. Modifying the API to provide users direct access to CRUD access levels will make things a lot simpler. 6. Create `create/update` services separately for this API, which perform the necessary data translation, before calling the regular `create/update` services. The translation code was getting too large for the API endpoint itself, so this move makes sense.
2016-08-16Fix API::BranchesSpec.Timothy Andrew
- Previously created a protected branch manually, without using a factory.
2016-08-09adds second batch of tests changed to active tensetiagonbotelho
2016-07-29Have the `branches` API work with the new protected branches data model.Timothy Andrew
1. The new data model moves from `developers_can_{push,merge}` to `allowed_to_{push,merge}`. 2. The API interface has not been changed. It still accepts `developers_can_push` and `developers_can_merge` as options. These attributes are inferred from the new data model. 3. Modify the protected branch create/update services to translate from the API interface to our current data model.
2016-07-19API: Expose 'developers_can_merge' for branchesRobert Schilling
2016-07-19API: Expose 'developers_can_push' for branchesRobert Schilling
2016-06-27Use HTTP matchers if possibleZ.J. van de Weg
2016-03-07Add traits for each access_level to ProjectMember factoryRobert Speicher
2015-12-18Fix specDouglas Barbosa Alexandre
2015-07-22Clearing the entire Redis cache may be too expensive; just useStan Hu
the repository expire_cache method
2015-07-22Fix 404 error in files view after deleting the last file in a repositoryStan Hu
Closes #1362
2015-06-22Update mock and stub syntax for specsRobert Speicher
2015-02-12Updated rspec to rspec 3.x syntaxJeroen van Baarsen
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2014-10-30API delete branch: render branch name json instead of trueDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-09-25Fix branch APIDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-09-15Replace project_access attribute with access_level in specs and APIDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-09-15Fix adminarea and emails for new membership logicDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-09-14Huge replace of old users_project and users_group referencesDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-09-03Validate branch-names and references in WebUI, APIRobert Schilling
Add specs for GitRefValidator
2014-08-01Fix API branch specsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-17Remove rails observers from applicationDmitriy Zaporozhets
2014-05-23Improve branch deletion via APIDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>