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
path: root/spec/lib
AgeCommit message (Collapse)Author
2019-01-08Merge branch '53966-hashed-storage-read-only' into 'master'Douglas Barbosa Alexandre
Hashed Storage: Only set as `read_only` when starting the per-project migration See merge request gitlab-org/gitlab-ce!24128
2019-01-08Only set as `read_only` when starting the per-project migrationGabriel Mazetto
In the previous code, we locked the project during the migration scheduling step, which works fine for small setups, but can be problematic in really big installations. We now moved the logic to inside the worker, so we minimize the time a project will be read-only. We also make sure we only do that if reference counter is `0` (no current operation is in progress).
2019-01-07Add table and model for error tracking settingsReuben Pereira
2019-01-07Merge branch 'sh-fix-issue-55914' into 'master'Rémy Coutable
Fix Bitbucket Server import only including first 25 pull requests Closes #55914 See merge request gitlab-org/gitlab-ce!24178
2019-01-07Merge branch 'include-project' into 'master'Grzegorz Bizon
Allow to include another project files Closes #53903 See merge request gitlab-org/gitlab-ce!24101
2019-01-07Allow to include files from another projectsKamil Trzciński
This adds `project:, file:, ref:` specification support.
2019-01-07Fix Bitbucket Server import only including first 25 pull requestsStan Hu
The change to paginate repos in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22825 caused the paginator to stop after 25 pull requests because the limit was set to 25 if none was defined. To fix this, we should only stop if the limit has actually been set and use the limit parameter to determine the maximum number of items to process per page. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55914
2019-01-06Merge branch 'kamil-refactor-ci-builds-v5' into 'master'Grzegorz Bizon
Use BuildMetadata to store build configuration in JSONB form See merge request gitlab-org/gitlab-ce!21499
2019-01-05Fix multipart attachments not uploadingStan Hu
Mixing and matching the use of Rack::Request and ActionDispatch::Request in Rails 5 is bad, particularly if you have middleware that manipulates or accesses environment variables. `Gitlab::Middleware::Multipart` attempts to rewrite request parameters to the proper values (e.g. replacing `data_file` with `UploadedFile`). It does this by calling `Rack::Request#update_params`, which essentially updates `env['rack.request.form_hash']`. By changing to `ActionDispatch::Request`, the Go middleware was causing the request parameters to be stored inside `env['action_dispatch.request.request_parameters']`. Later calls to `Rack::Request#update_params` would not have any effect because it would attempt to update `env['rack.request.form_has']` instead of `env['action_dispatch.request.request_parameters']`. As a result, the controller still saw the old parameters. Since the Go middleware appears to be using `ActionDispatch::Request` for authorization methods, we can switch the multipart middleware to use it too. Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/9035
2019-01-04Merge branch 'feature/gb/expose-ci-api-url-variable' into 'master'Douwe Maan
Expose `CI_API_V4_URL` CI/CD variable Closes #54621 See merge request gitlab-org/gitlab-ce!23936
2019-01-04Merge branch 'include-templates' into 'master'Kamil Trzciński
Include templates Closes #53445 See merge request gitlab-org/gitlab-ce!23495
2019-01-04Add config_options|variables to BuildMetadataKamil Trzciński
These are data columns that store runtime configuration of build needed to execute it on runner and within pipeline. The definition of this data is that once used, and when no longer needed (due to retry capability) they can be freely removed. They use `jsonb` on PostgreSQL, and `text` on MySQL (due to lacking support for json datatype on old enough version).
2019-01-04Improve readablity of CI_API_V4_URL related codeGrzegorz Bizon
2019-01-04Allow to include templatesKamil Trzciński
This rewrites a syntax to allow include of templates. This also normalises the syntax used by include: feature
2019-01-04Update safe model attributes for import/exportShinya Maeda
2019-01-04Support CURD operation for release asset linksShinya Maeda
- Add Releases::Links model - Expose it in release API - Add integration tests
2019-01-04Merge branch '29951-issue-creation-by-email-without-subaddressing' into 'master'Sean McGivern
Support new issue creation by email without subaddressing Closes #29951 See merge request gitlab-org/gitlab-ce!23523
2019-01-04Merge branch 'dm-git-access-any-ce' into 'master'Sean McGivern
[CE] Don't run checks for changed refs when specific changes are unknown See merge request gitlab-org/gitlab-ce!23990
2019-01-03Refactoring and review commentsBrett Walker
including verifying the project_slug
2019-01-03Use new issue email address formatBrett Walker
We now use `-issue` in order to support catch all email addresses
2019-01-03Use new merge request email address formatBrett Walker
We now use `-merge-request` instead of `+merge-request+` in order to support catch all email addresses
2019-01-03Use new unsubscribe linkBrett Walker
We now use `-unsubscribe` instead of `+unsubscribe` in order to support catch all email addresses
2019-01-03Add API::Helpers::Version and expose API root URLGrzegorz Bizon
This commits adds a new class that is supposed to represent Grape API version, like `v3` or `v4`.
2019-01-03Expose method that returns GitLab API pathsGrzegorz Bizon
2019-01-03Fix lint errorsmortyccp
2019-01-03Remove authentication via warden and PRIVATE_TOKEN headermortyccp
2019-01-03Fix rspec error in rails 4mortyccp
2019-01-03Allow basic authentication on go get middlewaremortyccp
2019-01-02Don't run single change checks when changes are unknownDouwe Maan
When the `changes` passed to `GitAccess` are the literal string `_any`, which indicates that this is a pre-authorization check, we now check whether the user can push to any branch in the project in question, instead of running the per-change check with `oldrev` `_any`, `newrev` `nil`, and `ref` `nil`.
2019-01-02Extract any-branch-allows-collaboration logic into dedicated methodDouwe Maan
2019-01-02Move magic '_any' string to constantDouwe Maan
2019-01-02Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhqJohn Jarvis
2019-01-02Merge branch 's3-directories-get' into 'master'Kamil Trzciński
Use directories.new when getting S3 directory Closes gitlab-com/gl-infra/infrastructure#5807 See merge request gitlab-org/gitlab-ce!23981
2019-01-02Merge branch 'security-label-xss' into 'master'John Jarvis
[master] Escape html entities when no label found See merge request gitlab/gitlabhq!2706
2019-01-02Merge branch 'security-master-secret-ci-variables-exposed' into 'master'John Jarvis
[master] Secret CI variables can exposed by creating a tag with the same name as an existing protected branch See merge request gitlab/gitlabhq!2596
2019-01-02Merge branch 'security-master-url-rel' into 'master'John Jarvis
[master] Set URL rel attribute for broken URLs See merge request gitlab/gitlabhq!2695
2019-01-01Remove gem install bundler from Docker-based Ruby environmentsTakuya Noguchi
bundler gem has been included in the Docker official Ruby image since 2.1. Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2019-01-01Merge branch 'sh-bump-omniauth-google-gem' into 'master'Sean McGivern
Upgrade Omniauth and JWT gems to switch away from Google+ API Closes #55668 See merge request gitlab-org/gitlab-ce!24068
2018-12-31Merge branch 'fj-55781-fix-api-blob-content-disposition' into 'master'Sean McGivern
Fixed content-disposition in blob and files API endpoint Closes #55781 See merge request gitlab-org/gitlab-ce!24078
2018-12-31Fixed api content-disposition in blob and files endpointFrancisco Javier López
2018-12-31Add spec for Release APIShinya Maeda
Add spec for all release API - GET, POST, PUT, DELETE. Also, fixes some minior bugs.
2018-12-29Set the JWT algorithm to RS256 in decode specsStan Hu
By default, the JWT decode only allows HS256 mode (HMAC using SHA-256 hash algorithm). The specs using RSA tokens failed per https://github.com/jwt/ruby-jwt#algorithms-and-usage: It is strongly recommended that you hard code the algorithm, as you may leave yourself vulnerable by dynamically picking the algorithm.
2018-12-28Skip per-commit validations which have already passed on another change/branchFrancisco Javier López
2018-12-28Merge branch '51970-correct-ordering-of-metrics' into 'master'Kamil Trzciński
Correct the ordering of metrics on performance dashboard Closes #51970 See merge request gitlab-org/gitlab-ce!23630
2018-12-27Fixing image lfs bug and also displaying text lfsFrancisco Javier López
This commit, introduced in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23812, fixes a problem creating a displaying image diff notes when the image is stored in LFS. The main problem was that `Gitlab::Diff::File` was returning an invalid valid in `text?` for this kind of files. It also fixes a rendering problem with other LFS files, like text ones. They LFS pointer shouldn't be shown when LFS is enabled for the project, but they were.
2018-12-27Merge branch 'osw-cache-discussions-diff-highlighting' into 'master'Douwe Maan
Considerably improve the loading time on merge request's discussion page Closes #52950 See merge request gitlab-org/gitlab-ce!23857
2018-12-27Use directories.new when getting S3 directoryJan Provaznik
Calling `Fog::Storage::AWS::Directories#get` requires the ListAllMyBuckets permission, but we can avoid that extra query and permission by initializing the directory with a specific bucket: https://stackoverflow.com/a/12288581/1992201
2018-12-27Merge branch '53907-improve-milestone-links' into 'master'Kamil Trzciński
Add % prefix to milestone reference link text Closes #53907 See merge request gitlab-org/gitlab-ce!23928
2018-12-26Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin
54953-error-500-viewing-merge-request-due-to-nil-commit_email_hostname * upstream/master: (115 commits) [CE] Speed up login page usage Add new line and comments Fix the seeder 24_forks.rb cannot find public project Milestones on community contribution issues Removed Gitlab Upgrader found in /lib/gitlab/upgrader.rb Fix and move specs into admin_disables_git_access_protocol_spec.rb Fix HTTP/SSH clone panel for mobile Add spec for HTTP/SSH clone panel Fix missing Git clone button when protocol restriction setting enabled Fix deprecation: Using positional arguments in integration tests Extend override check to also check arity Update tm cli version Bump Gitaly version to v1.12.0 Add @dbalexandre to CODEOWNERS Update verbiage for clarity Change group-cluster beta to regular note Change alpha states to use note instead of warning Update registry section. Update serverless.yaml formatting Clarify obtaining application URL Add @godfat to CODEOWNERS ...
2018-12-26Merge branch '42125-extend-override-check-to-also-check-arity' into 'master'Lin Jen-Shin
Resolve "Extend `override` check to also check arity" Closes #42125 See merge request gitlab-org/gitlab-ce!23498