summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab
Commit message (Collapse)AuthorAgeFilesLines
* Improve performance of PR importfix-pull-request-importerKamil Trzciński2019-04-081-0/+73
| | | | | | This removes unneeded `.reload` call which makes AR to load ALL objects, and create its in-memory representation.
* GitHub import: Run housekeeping after initial importsh-git-gc-after-initial-fetchStan Hu2019-04-071-0/+5
| | | | | | | | | After an initial fetch, the repository will have many loose objects and refs. Running a `git gc` will compact refs into `packed-refs` and objects into `.pack` files, which should make importing pull requests faster. Part of https://gitlab.com/gitlab-org/gitlab-ce/issues/59477
* Add Knative metrics to PrometheusChris Baumbauer2019-04-061-0/+26
|
* Merge branch 'sh-fix-realtime-changes-with-reserved-words' into 'master'Douglas Barbosa Alexandre2019-04-051-0/+18
|\ | | | | | | | | | | | | Fix real-time updates for projects that contain a reserved word Closes #60113 See merge request gitlab-org/gitlab-ce!27060
| * Fix real-time updates for projects that contain a reserved wordStan Hu2019-04-051-0/+18
| | | | | | | | | | | | | | | | | | Projects that included reserved words (e.g. test-create) would fail to generate a proper ETag key because of the name. To fix this, we add forward slashes to match the exact name so that /test-create doesn't get matched, but /create does. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/60113
* | Merge branch 'ce-10546-fix-epic-depth-validation' into 'master'Douglas Barbosa Alexandre2019-04-051-0/+40
|\ \ | | | | | | | | | | | | [CE-port] Fix Epic depth validation See merge request gitlab-org/gitlab-ce!26390
| * | Adds max_descendants_depth to ObjectHierarchyHeinrich Lee Yu2019-04-051-0/+40
| | | | | | | | | | | | CE-port of 10546-fix-epic-depth-validation
* | | Revert "Merge branch 'bump_kubernetes_1_11_9' into 'master'"Mayra Cabrera2019-04-051-1/+1
| |/ |/| | | | | This reverts merge request !26991
* | Merge branch 'revert-3962b00b' into 'master'Andreas Brandl2019-04-057-439/+0
|\ \ | | | | | | | | | | | | Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'" See merge request gitlab-org/gitlab-ce!27051
| * | Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'"Andreas Brandl2019-04-057-439/+0
| | | | | | | | | This reverts merge request !26823
* | | Revert "Merge branch 'require-all-templates-to-include-default-stages' into ↵Sean McGivern2019-04-052-30/+37
|/ / | | | | | | | | 'master'" This reverts merge request !26954
* | Move Contribution Analytics related spec in ↵Imre Farkas2019-04-057-0/+439
| | | | | | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* | Fall back to project repository type by defaultBob Van Landuyt2019-04-051-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | This makes sure that we always have a repository type when trying to parse a repository from a path. This is needed because sometimes we want to perform access checks as if the project already existed, for example when creating a project on push. Before this we were only doing that when accessing git over http, this makes sure it also works correctly when accessing git over SSH
* | Merge branch 'require-all-templates-to-include-default-stages' into 'master'Sean McGivern2019-04-052-37/+30
|\ \ | | | | | | | | | | | | | | | | | | Require all templates to use default stages Closes #59992 See merge request gitlab-org/gitlab-ce!26954
| * | Require all templates to use default stagesKamil Trzciński2019-04-052-37/+30
| |/ | | | | | | | | | | Our templates are free to override the 'stages:'. However, they should follow the convention to always include 'build', 'test', 'deploy' which are defaults when not defined.
* | Merge branch 'bump_kubernetes_1_11_9' into 'master'Douwe Maan2019-04-051-1/+1
|\ \ | | | | | | | | | | | | Bump Helm to 2.13.1 and kubectl to 1.11.9 See merge request gitlab-org/gitlab-ce!26991
| * | Bump Helm to 2.13.1 and kubectl to 1.11.9bump_kubernetes_1_11_9Thong Kuah2019-04-051-1/+1
| | |
* | | Autocorrect with RSpec/ExampleWording copThong Kuah2019-04-0530-125/+125
| | | | | | | | | | | | | | | | | | | | | - rewords examples starting with 'should' - rewords examples starting with 'it' Note: I had to manually fixup "onlies" to "only"
* | | Add a proxy method to PrometheusClientReuben Pereira2019-04-051-7/+72
| | | | | | | | | | | | | | | | | | | | | | | | - Also refactor the get and json_api_get methods so that the get method can be reused by the new proxy method. - The new proxy method makes no changes to the request to the prometheus server and response from the prometheus server. This allows it to be used as a proxy to the Prometheus server, hence the name.
* | | Merge branch '54506-show-error-when-namespace-svc-missing' into 'master'Grzegorz Bizon2019-04-052-0/+66
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Show error when namespace/svc account missing Closes #54506 See merge request gitlab-org/gitlab-ce!26362
| * | | Detailed status for builds that fail prerequisitesTiger2019-04-022-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Create FailedUnmetPrerequisites status to allow custom messaging for builds that were unable to be queued due to failing to meet prerequisites (eg. failing to create Kubernetes namespace for deployment).
* | | | fix(gitlab-ci-config): allow strings in the 'include' keywordPaul 🐻2019-04-051-0/+8
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix is a followup to !24098 which introduced a validation of the `include:` keyword of a gitlab-ci configuration file when triggered from /ci/lint API calls. However, there was a test case missing: the case of a single string as value. I have added a test case for that which shows that the code was not validating it correctly. This commit fixes that to allow all `include:` valid inputs.
* | | Renamed terminal_specification to channel_specificationFrancisco Javier López2019-04-041-5/+5
| | | | | | | | | | | | | | | | | | We're moving from using terminology related to terminals when we refer to Websockets connections in Workhorse. It's more appropiate a concept like channel.
* | | Merge branch '57831-allow-graphql-scalar-fields-to-be-authorized' into 'master'Nick Thomas2019-04-041-31/+64
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Allow GraphQL Scalar-fields to be authorized Closes #57831 See merge request gitlab-org/gitlab-ce!26338
| * | | Use parent object when authorizing scalar typesBrett Walker2019-04-041-31/+64
| | | |
* | | | Automatically set Prometheus step intervalPeter Leitzen2019-04-041-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | By computing the step interval passed to the query_range Prometheus API call we improve the performance on the Prometheus server and GitLab by reducing the amount of data points sent back and prevent Prometheus from sending errors when requesting longer intervals.
* | | | Allow to use untrusted Regexp via feature flagKamil Trzciński2019-04-043-11/+150
|/ / / | | | | | | | | | | | | | | | | | | This brings support for untrusted regexp for 'only:refs:' when enabled via feature flag: alllow_unsafe_ruby_regexp. This is by default disabled, and should not be used in production
* | | Monitor GraphQL with PrometheusJan Provaznik2019-04-041-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | Extends graphql's platform tracing class to observe duration of graphql methods. In graphql 1.8.11 is added prometheus class but it's not very useful for us because it uses prometheus_exporter to export results.
* | | Fixed test specsOswaldo Ferreira2019-04-042-11/+137
| | | | | | | | | | | | | | | - added suggestions to mock data - fixed props to be not required
* | | Merge branch 'dz-reserve-v2-root-path' into 'master'Grzegorz Bizon2019-04-041-1/+1
|\ \ \ | | | | | | | | | | | | | | | | Add v2 to reserved top level routes See merge request gitlab-org/gitlab-ce!26540
| * | | Add v2 to reserved top level routesdz-reserve-v2-root-pathDmitriy Zaporozhets2019-04-041-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Merge branch '54417-graphql-type-authorization' into 'master'Nick Thomas2019-04-041-8/+14
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GraphQL Type authorization Closes #54417 See merge request gitlab-org/gitlab-ce!25724
| * | | | GraphQL Type authorizationLuke Duncalfe2019-04-031-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enables authorizations to be defined on GraphQL Types. module Types class ProjectType < BaseObject authorize :read_project end end If a field has authorizations defined on it, and the return type of the field also has authorizations defined on it. then all of the combined permissions in the authorizations will be checked and must pass. Connection fields are checked by "digging" to find the type class of the "node" field in the expected location of edges->node. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54417
* | | | | Filters branch and path labels for metricsRyan Cobb2019-04-041-0/+229
| | | | |
* | | | | Merge branch '24704-download-repository-path' into 'master'Kushal Pandya2019-04-042-13/+29
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | Download a folder from repository Closes #24704 See merge request gitlab-org/gitlab-ce!26532
| * | | | Download a folder from repositoryPatrick Bajao2019-04-022-13/+29
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `GetArchiveRequest` to git-archive params. Modifies `Git::Repository#archive_metadata` to append `path` to `ArchivePrefix` so it'll not hit the cache of repository archive when it already exists.
* | | | Merge branch 'support-time-windows-api' into 'master'James Lopez2019-04-041-2/+28
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | Support time window parameters in additional metrics endpoint See merge request gitlab-org/gitlab-ce!26228
| * | | Specify time window for additional metrics apisupport-time-windows-apisyasonik2019-04-031-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for start and end parameters in the #additional_metrics endpoint of the EnvironmentsController. start and end are meant to be unix timestamps, per the Prometheus API (as the consumer of this endpoint will eventually be transitioned to a prometheus endpoint). This functionality is behind the :metrics_time_window feature flag for development.
* | | | Include DAST as dependent CI templateLucas Charles2019-04-041-1/+3
| | | |
* | | | Add port section to CI Image objectFrancisco Javier López2019-04-039-12/+547
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to implement https://gitlab.com/gitlab-org/gitlab-ee/issues/10179 we need several modifications on the CI config file. We are adding a new ports section in the default Image object. Each of these ports will accept: number, protocol and name. By default this new configuration will be only enabled in the Web IDE config file.
* | | Merge branch '47234-composable-auto-devops' into 'master'Dmitriy Zaporozhets2019-04-031-1/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Resolve "Composable Auto DevOps" Closes #47234 See merge request gitlab-org/gitlab-ce!26520
| * | | Split Security Auto DevOps jobs into templatesTiger2019-04-021-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Container Scanning, Dependency Scanning, License Management and SAST parts of Auto DevOps now use the preexisting templates. Auto DevOps and the DAST job template will now use a shared job template instead of maintaining two copies of the job. This also allows Auto DevOps to use custom authentication with DAST.
* | | | Revert "Merge branch 'jprovazn-graphql-prometheus' into 'master'"Jan Provaznik2019-04-021-35/+0
| |/ / |/| | | | | | | | This reverts merge request !26569
* | | Merge branch 'jarv/dev-to-gitlab-2019-04-02' into 'master'Robert Speicher2019-04-027-46/+239
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Jarv/dev to gitlab 2019 04 02 Closes #2810 See merge request gitlab-org/gitlab-ce!26846
| * \ \ Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ↵jarv/dev-to-gitlab-2019-04-02John Jarvis2019-04-027-46/+239
| |\ \ \ | | |/ / | |/| | | | | | jarv/dev-to-gitlab-2019-04-02
| | * | Rake task for removing exif from uploadsJan Provaznik2019-04-021-0/+120
| | | | | | | | | | | | | | | | | | | | Adds a rake task which can be used for removing EXIF data from existing uploads.
| | * | Merge branch 'security-use-untrusted-regexp' into 'master'GitLab Release Tools Bot2019-04-026-46/+119
| | |\ \ | | | | | | | | | | | | | | | | | | | | Use UntrustedRegexp for CI refs matching See merge request gitlab/gitlabhq!3005
| | | * | Make CI refs matching to to use UntrustedRegexpKamil Trzciński2019-03-156-46/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes ref validation to use always `UntrustedRegexp`. This also splits the existing RubySyntax into separate class.
* | | | | Monitor GraphQL with PrometheusJan Provaznik2019-04-021-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extends graphql's platform tracing class to observe duration of graphql methods. In graphql 1.8.11 is added prometheus class but it's not very useful for us because it uses prometheus_exporter to export results.
* | | | | Merge branch 'sh-fix-rugged-tree-entries' into 'master'Sean McGivern2019-04-021-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid excessive recursive calls with Rugged TreeEntries Closes #59759 See merge request gitlab-org/gitlab-ce!26813