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-09-09Improve performance and memory usage of project exportKamil Trzciński
ActiveModel::Serialization is simple in that it recursively calls `as_json` on each object to serialize everything. However, for a model like a Project, this can generate a query for every single association, which can add up to tens of thousands of queries and lead to memory bloat. To improve this, we can do several things: 1. We use `tree:` and `preload:` to automatically generate a list of all preloads that could be used to serialize objects in bulk. 2. We observe that a single project has many issues, merge requests, etc. Instead of serializing everything at once, which could lead to database timeouts and high memory usage, we take each top-level association and serialize the data in batches. For example, we serialize the first 100 issues and preload all of their associated events, notes, etc. before moving onto the next batch. When we're done, we serialize merge requests in the same way. We repeat this pattern for the remaining associations specified in import_export.yml.
2019-09-09Lower searches count limitFrancisco Javier López
Lowering the limit when performing search from 1001 to 101. This will allow us to speed this process.
2019-09-09Merge branch '61927-skeleton-pages-internal-api' into 'master'Kamil Trzciński
Add skeleton Pages internal API See merge request gitlab-org/gitlab-ce!32732
2019-09-09Passing job:rules downstream and E2E specs for job:rules configurationdrew
2019-09-08Merge branch 'kamil-refactor-import-structure' into 'master'Stan Hu
Normalize import_export structure See merge request gitlab-org/gitlab-ce!32704
2019-09-06Normalize import_export structureKamil Trzciński
This brings a significant refactor to how we handle `import_export.yml`, merge it with EE and how we handle that for reader and saver. This is meant to simplify the code, and remove a ton of conditions to handle different models of the structure. This is also meant to prepare the structure to extend it much easier, like adding `preload:` or additional object types when needed. This does not change the behavior of import/export, rather unifies and simplifies the current implementation.
2019-09-06Add new GitlabDanger classAsh McKenzie
This class encapsulates our use of the Danger gem.
2019-09-06Merge branch 'ce-detect-github-pull-requests' into 'master'Kamil Trzciński
Port CreateGithubPullRequestEvents migration from EE See merge request gitlab-org/gitlab-ce!31802
2019-09-06Merge branch '13353-GraphQL-DesignType-event-ce' into 'master'Jan Provaznik
CE backport for gitlab-org/gitlab-ee!15561 (Expose new GraphQL `event` field for `DesignType`) See merge request gitlab-org/gitlab-ce!32249
2019-09-06Stop empty external auth classification labels overriding default labelsWill Chandler
Most of the project templates bundled with GitLab have an empty string set for `external_authorization_classification_label` in their `project.json`. When imported this overrides the default label set on the instance, causing the label to appear empty. This change sets empty labels to nil during import, allowing the default label to override it and be applied to the project.
2019-09-06Merge branch 'revert-351d72cb' into 'master'Lin Jen-Shin
Revert "Merge branch '66596-allow-danger-to-be-run-locally' into 'master'" See merge request gitlab-org/gitlab-ce!32741
2019-09-06Merge branch ↵Jan Provaznik
'59729-estimate-quick-action-does-not-produce-correct-time-for-1mo' into 'master' Resolve "estimate quick action does not produce correct time for 1mo" See merge request gitlab-org/gitlab-ce!32165
2019-09-06Revert "Merge branch '66596-allow-danger-to-be-run-locally' into 'master'"Ash McKenzie
This reverts merge request !32196
2019-09-06Add skeleton Pages internal APIKrasimir Angelov
Basic `/internal/pages` endpoint that will be used for Pages virtual domains internal API. The endpoint is currently behind feature flag and provides authetication similar to how Workhorse is authenticating with the GitLab.
2019-09-06Add new GitlabDanger classAsh McKenzie
This class encapsulates our use of the Danger gem.
2019-09-06CE-specific changes for GraphQL DesignType `event`Luke Duncalfe
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/15561 https://gitlab.com/gitlab-org/gitlab-ee/issues/12705 https://gitlab.com/gitlab-org/gitlab-ee/issues/13353
2019-09-05Merge branch 'danger-review-pipeline' into 'master'Rémy Coutable
Add Danger Roulette rules for pipeline files See merge request gitlab-org/gitlab-ce!32616
2019-09-05Merge branch '67037-user-content-gitlab-static-net-brings-back-404-only' ↵Sean McGivern
into 'master' Resolve "user-content.gitlab-static.net brings back 404 only" See merge request gitlab-org/gitlab-ce!32703
2019-09-05CE port for pipelines for external pull requestsFabio Pitino
Detect if pipeline runs for a GitHub pull request When using a mirror for CI/CD only we register a pull_request webhook. When a pull_request webhook is received, if the source branch SHA matches the actual head of the branch in the repository we create immediately a new pipeline for the external pull request. Otherwise we store the pull request info for when the push webhook is received. When using "only/except: external_pull_requests" we can detect if the pipeline has a open pull request on GitHub and create or not the job based on that.
2019-09-05New interruptible attribute supported in YAML parsing.Cédric Tabin
Since it is not possible to dynamically detect if a job is automatically cancellable or not, a this new attribute is necessary. Moreover, it let the maintainer of the repo to adjust the behaviour of the auto cancellation feature to match exactly what he needs.
2019-09-05Set asset_proxy_whitelist default to gitlab hostBrett Walker
2019-09-05Add Danger Roulette rules for pipeline filesKyle Wiebers
2019-09-05Merge branch 'ashmckenzie/provide_gl-type_to_gitlab_shell' into 'master'Nick Thomas
Extract /internal/allowed API Actor logic out See merge request gitlab-org/gitlab-ce!31564
2019-09-05Add structure to support EE feature of COARKerri Miller
These are the structural changes for supporting the EE feature of moving "code_owner_approval_required" state from existing on a project to being on the protected branches individually, allowing for CODEOWNER validation on push events.
2019-09-05Fix time tracking parsing of monthsHeinrich Lee Yu
Patches ChronicDuration to use our custom conversions when parsing months
2019-09-05Remove feature flags starting with `prometheus_transaction_`Jacopo
Those feature flags were always enabled so we can remove them safely.
2019-09-05Merge branch ↵Rémy Coutable
'66966-convert-rails-env-stub-usages-to-use-railshelpers-stub_rails_env-instead' into 'master' Use stub_rails_env for Rails.env stubbing Closes #66966 See merge request gitlab-org/gitlab-ce!32625
2019-09-05Allow not resolvable urls when rebinding setting is disabledFrancisco Javier López
Now, when the dns rebinging setting is disabled, we will allow urls that are not resolvable.
2019-09-05Extract /internal/allowed API Actor logic outAsh McKenzie
Created new API::Support::GitAccessActor class to encapsulate some of the more edge logic, making the /internal/allowed route much cleaner.
2019-09-05Use stub_rails_env for Rails.env stubbingAsh McKenzie
RailsHelpers.stub_rails_env takes care of stubbing Rails.env
2019-09-05Upgrade graphql gem to 1.9.10Brett Walker
- `edge_nodes` needs to get called on the object - added `include GlobalID::Identification` in a couple places - renamed `object` to `item` in spec due to conflict
2019-09-04Upgrade GraphQL gem to 1.8.17Brett Walker
- Due to https://github.com/exAspArk/batch-loader/pull/32, we changed BatchLoader.for into BatchLoader::GraphQL.for - since our results are wrapped in a BatchLoader::GraphQL, calling `sync` during authorization is required to get real object - `graphql` now has it's own authorization system. Our `authorized?` method conflicted and required renaming
2019-09-04Backport EE changes for productivity analyticsPavel Shutsin
Improve diff lines count efficiency
2019-09-04Extract Workhorse <-> GitLab authentication to make it reusableKrasimir Angelov
Introduce JWTAutheticatable module that can be reused for ai=uthtication between Pages and GitLab (the same way we use do now for Workhorse). Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/61927.
2019-09-04Create an event on epic actionsJan Provaznik
Creates new event when an epic is created, closed, reopened or commented.
2019-09-03Merge branch '13988-add-rails-helpers' into 'master'Stan Hu
Add new RailsHelpers module for specs Closes #66688 See merge request gitlab-org/gitlab-ce!32309
2019-09-03Uses spec_helper instead of rails_helperMayra Cabrera
spec/rails_helper.rb was removed on 1068ec2e9201af3de1fc5ebe9c8d9f7953c89b51
2019-09-03Merge branch '66741-remove-spec-rails_helper-rb' into 'master'Grzegorz Bizon
Remove spec/rails_helper.rb Closes #66741 See merge request gitlab-org/gitlab-ce!32380
2019-09-03Added relationships between Release and MilestoneEtienne Baqué
Modified schema via migrations. Added one-to-one relationship between the two models. Added changelog file
2019-09-03Merge branch 'an-use-labkit-correlation-id' into 'master'Ash McKenzie
Remove all references to Gitlab::CorrelationId See merge request gitlab-org/gitlab-ce!32228
2019-09-03If user can push to docker then it can delete tooGiorgenes Gelatti
Extends the permission of $CI_REGISTRY_USER to allow them to delete tags in addition to just pushing. https://gitlab.com/gitlab-org/gitlab-ce/issues/40096
2019-09-02Handle :9090 and 0.0.0.0:9090 listen_address formatsReuben Pereira
Prometheus listen_address can be in formats of :9090 and 0.0.0.0:9090. But before these can be used to connect a project to Prometheus, they have to converted into absolute URIs.
2019-09-02Merge branch '66803-fix-uploads-relative-link-filter' into 'master'Grzegorz Bizon
Fix permissions check in `RelativeLinkFilter` See merge request gitlab-org/gitlab-ce!32448
2019-09-02Merge branch 'fix-peek-on-puma' into 'master'Rémy Coutable
Fix Peek on Puma Closes #66528 See merge request gitlab-org/gitlab-ce!32213
2019-09-02Fix upload URLs in MarkdownHeinrich Lee Yu
Fixes RelativeLinkFilter for users that don't have access to the project's repository
2019-09-02Merge branch 'sh-fix-ci-lint-500-error' into 'master'Ash McKenzie
Fix 500 error in CI lint when included templates are an array Closes #66605 See merge request gitlab-org/gitlab-ce!32232
2019-09-02Merge branch '46686-move-k8s-services-out-of-gcp-namespace' into 'master'Thong Kuah
Move generic k8s services out of GCP namespace See merge request gitlab-org/gitlab-ce!32310
2019-09-01Merge branch 'improve-chatops-help' into 'master'Nick Thomas
Improve chatops help output See merge request gitlab-org/gitlab-ce!32208
2019-08-31Fix 500 error in CI lint when included templates are an arrayStan Hu
Previously the following syntax would fail in the linter with an error 500: ``` include: template: - License-Management.gitlab-ci.yml - Dependency-Scanning.gitlab-ci.yml - SAST.gitlab-ci.yml ``` Now the error will call out specifically that the value is not a string. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66605
2019-08-30Fix for #56295, https://gitlab.com/gitlab-org/gitlab-ce/issues/56295.Jesse Hall
All avatars now visible in commit trailers.