summaryrefslogtreecommitdiff
path: root/lib/api/helpers/internal_helpers.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove support for absolute dirs from Git::EnvJacob Vosmaer (GitLab)2018-03-301-12/+0
|
* Send Gitaly payload for git-upload-archive SSH commandsAlejandro Rodríguez2018-03-211-1/+1
|
* Make git push mandatoryKim "BKC" Carlbäcker2018-03-061-7/+0
|
* Moves project creationg to git access check for git pushTiago Botelho2018-02-061-12/+8
|
* Abstracts ProjectMoved and ProjectCreated into a BaseProjectTiago Botelho2018-02-061-2/+6
|
* Move new project on push logic to a serviceTiago Botelho2018-02-061-22/+7
|
* Add specsTiago Botelho2018-02-061-3/+14
|
* Adds remote messsage when project is created in a push over SSH or HTTPTiago Botelho2018-02-061-0/+16
|
* Default to Gitaly for 'git push' HTTP/SSH, and make Gitaly mandatory for SSH ↵Jacob Vosmaer (GitLab)2018-01-221-7/+8
| | | | pull
* Merge remote-tracking branch 'upstream/master' into no-ivar-in-modulesLin Jen-Shin2017-11-301-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (170 commits) support ordering of project notes in notes api Redirect to an already forked project if it exists Reschedule the migration to populate fork networks Create fork networks for forks for which the source was deleted. Fix item name and namespace text overflow in Projects dropdown Minor backport from EE fix link that was linking to `html` instead of `md` Backport epic tasklist Add timeouts for Gitaly calls SSHUploadPack over Gitaly is now OptOut fix icon colors in commit list Fix star icon color/stroke Backport border inline edit Add checkboxes to automatically run AutoDevops pipeline BE for automatic pipeline when enabling Auto DevOps I am certainly weary of debugging sidekiq but I don't think that's what was meant Ensure MRs always use branch refs for comparison Fix issue comment submit button disabled on GFM paste Lock seed-fu at the correct version in Gemfile.lock Improve indexes on merge_request_diffs ...
| * SSHUploadPack over Gitaly is now OptOutgitaly-ssh-upload-pack-opt-outKim "BKC" Carlbäcker2017-11-291-4/+4
| | | | | | | | - Better gitaly-handling in /api/internal/allowed specs
* | Move ModuleWithInstanceVariables to Gitlab namespaceLin Jen-Shin2017-11-221-6/+6
| | | | | | | | | | And use .rubocop.yml to exclude paths we don't care, rather than using the cop itself to exclude.
* | Use StrongMemoize and enable/disable cops properlyLin Jen-Shin2017-11-181-6/+5
| |
* | Merge remote-tracking branch 'upstream/master' into no-ivar-in-modulesLin Jen-Shin2017-11-171-0/+12
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (507 commits) Add dropdowns documentation Convert migration to populate latest merge request ID into a background migration Set 0.69.0 instead of latest for codeclimate image De-duplicate background migration matchers defined in spec/support/migrations_helpers.rb Update database_debugging.md Update database_debugging.md Move installation of apps higher Change to Google Kubernetes Cluster and add internal links Add Ingress description from official docs Add info on creating your own k8s cluster from the cluster page Add info about the installed apps in the Cluster docs Resolve "lock/confidential issuable sidebar custom svg icons iteration" Update HA README.md to clarify GitLab support does not troubleshoot DRBD. Update license_finder to 3.1.1 Make sure NotesActions#noteable returns a Noteable in the update action Cache the number of user SSH keys Adjust openid_connect_spec to use `raise_error` Resolve "Clicking on GPG verification badge jumps to top of the page" Add changelog for container repository path update Update container repository path reference ...
| * Use relative git object paths to construct absolute ones before setting Envfix/git-env-repo-pathsAhmad Sherif2017-11-141-0/+12
| |
* | Allow simple ivar ||= form. Update accordinglyLin Jen-Shin2017-09-191-5/+4
| |
* | Add cop to make sure we don't use ivar in a moduleLin Jen-Shin2017-09-181-0/+2
|/
* Return a value to check if redis is available on /internal/checkAlejandro Rodríguez2017-09-051-0/+9
|
* Implement /internal/post_receive unified endpoint for PostReceive tasksgitaly-shell-redisAlejandro Rodríguez2017-08-311-0/+4
|
* Send Gitaly Repository with /api/internal/allowedgitaly-internal-allowed-send-repoKim "BKC" Carlbäcker2017-07-071-6/+29
| | | | | - Make single gitaly payload - Add feature-flag specs to verify payload
* Add “Project moved” error to Git-over-SSHMichael Kozono2017-06-161-1/+6
|
* Refactor construction of responseMichael Kozono2017-06-051-0/+16
|
* Generate and handle a gl_repository param to pass around componentsAlejandro Rodríguez2017-05-031-38/+14
| | | | | | | | | This new param allows us to share project information between components that don't share or don't have access to the same filesystem mountpoints, for example between Gitaly and Rails or between Rails and Gitlab-Shell hooks. The previous parameters are still supported, but if found, gl_repository is prefered. The old parameters should be deprecated once all components support the new format.
* Remove unused user activities codeSean McGivern2017-04-141-2/+1
|
* Remove user activities table and use redis instead of PG for recording ↵James Lopez2017-04-141-0/+7
| | | | | | activities Refactored specs and added a post deployment migration to remove the activity users table.
* Set Git-specific env in /api/internal/allowedRémy Coutable2017-04-101-3/+3
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Update storage settings to allow extra values per shard28447-hybrid-repository-storagesAlejandro Rodríguez2017-03-031-3/+3
| | | | | | | This will be necessary when adding gitaly settings. This version doesn't make any functional changes, but allows us to include this breaking change in 9.0 and add the needed extra settings in the future with backwards compatibility
* replace `find_with_namespace` with `find_by_full_path`Adam Pahlevi2017-02-031-2/+2
| | | | add complete changelog for !8949
* Accept environment variables from the `pre-receive` script.Timothy Andrew2016-12-161-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Starting version 2.11, git changed the way the pre-receive flow works. - Previously, the new potential objects would be added to the main repo. If the pre-receive passes, the new objects stay in the repo but are linked up. If the pre-receive fails, the new objects stay orphaned in the repo, and are cleaned up during the next `git gc`. - In 2.11, the new potential objects are added to a temporary "alternate object directory", that git creates for this purpose. If the pre-receive passes, the objects from the alternate object directory are migrated to the main repo. If the pre-receive fails the alternate object directory is simply deleted. 2. In our workflow, the pre-recieve script (in `gitlab-shell) calls the `/allowed` endpoint, which calls out directly to git to perform various checks. These direct calls to git do _not_ have the necessary environment variables set which allow access to the "alternate object directory" (explained above). Therefore these calls to git are not able to access any of the new potential objects to be added during this push. 3. We fix this by accepting the relevant environment variables (GIT_ALTERNATE_OBJECT_DIRECTORIES, GIT_OBJECT_DIRECTORY) on the `/allowed` endpoint, and then include these environment variables while calling out to git. 4. This commit includes (whitelisted) these environment variables while making the "force push" check. A `Gitlab::Git::RevList` module is extracted to prevent `ForcePush` from being littered with these checks.
* Fix POST /internal/allowed to cope with gitlab-shell v4.0.0 project pathsNick Thomas2016-11-161-0/+57
gitlab-shell v3.6.6 would give project paths like so: * namespace/project gitlab-shell v4.0.0 can give project paths like so: * /namespace1/namespace2/project * /namespace/project * /path/to/repository/storage/namespace1/namespace2/project * /path/to/repository/storage/namespace/project