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
2019-09-18Add latest changes from gitlab-org/gitlab@12-3-auto-deploy-20190916stable-branch-foss-testGitLab Bot
2019-09-17Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-17Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-16Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-14Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-12Merge branch 'static-objects-external-storage' into 'master'Thong Kuah
Enable serving static objects from an external storage See merge request gitlab-org/gitlab-ce!31025
2019-09-10Add controller concern for paginated collectionsMarkus Koller
We had similar code in a few places to redirect to the last page if the given page number is out of range. This unifies the handling in a new controller concern and adds usage of it in all snippet listings.
2019-09-10Enable serving static objects from an external storageAhmad Sherif
It consists of two parts: 1. Redirecting users to the configured external storage 1. Allowing the external storage to request the static object(s) on behalf of the user by means of specific tokens Part of https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/6829
2019-09-10[CE backport] Fix usages of boards dropdownMichael Kozono
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-08Merge branch 'kamil-refactor-import-structure' into 'master'Stan Hu
Normalize import_export structure See merge request gitlab-org/gitlab-ce!32704
2019-09-06Process workhorse accelerated wiki uploadsAlessio Caiazza
Wiki attachments can be workhorse accelerated. This commit is backward compatible with older workhorse
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-06Refactors rack attack requests specMayra Cabrera
* Creates a shared_examples files under shared_examples/requests * Moves web specs into the shared examples file * Moves let definitions to the block that uses them
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-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-03Skip set_repo_refs to speed up the testsIgor
2019-09-03Stub DetectRepositoryLanguagesWorker for all testsIgor
It performs an expensive operation, but isn't required in most of tests
2019-09-02Rename shared examples according to our guidelinesRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-09-01Merge branch ↵Nick Thomas
'66139-remove-kubernetes_namespace_per_environment-feature-flag' into 'master' Remove :kubernetes_namespace_per_environment feature flag See merge request gitlab-org/gitlab-ce!32140
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-31Limit access request email to 10 most recently active owners/maintainersManoj MJ
This change limits the number of emails for new access requests notifications to 10 most recently active owners/maintainers
2019-08-30Improve search result labelsMarkus Koller
- Use "results" instead of "blobs", "wiki blobs", "snippet blobs" - Use "comments" instead of "notes" - Use correct pluralization - Don't add "1 - 10 of" if there's only one page
2019-08-30Remove :kubernetes_namespace_per_environment feature flagTiger
Feature flag has been defaulting to `true` since 12.2
2019-08-30Allow be_url to specify the typeAlex Kalderimis
This allows the be_url matcher to be more specific. By default, it only matches HTTP and HTTPS URIs.
2019-08-30Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhqRobert Speicher
2019-08-30Merge branch 'security-enable-image-proxy' into 'master'GitLab Release Tools Bot
Use image proxy to mitigate stealing ip addresses Closes #2812 See merge request gitlab/gitlabhq!2926
2019-08-30Merge branch 'security-personal-snippets' into 'master'GitLab Release Tools Bot
Add direct upload support for personal snippets See merge request gitlab/gitlabhq!3226
2019-08-30Merge branch 'security-61974-limit-issue-comment-size' into 'master'GitLab Release Tools Bot
Limit the size of issuable description and comments See merge request gitlab/gitlabhq!3267
2019-08-30Merge branch 'security-fix-markdown-xss' into 'master'GitLab Release Tools Bot
Re-escape the whole HTML content when finding HTML references See merge request gitlab/gitlabhq!3340
2019-08-29Improve chatops help outputYorick Peterse
This improves the output produced when running an unknown command, running the "help" command, and when trying to run a command you are not allowed to run. The new help output includes links to the project of the chatops integration, and a link to the chatops documentation.
2019-08-29Fix dropdown closing when mouseup is outsideHeinrich Lee Yu
Changes the document event listener to listen to mousedown instead of click
2019-08-28Update CE files for GSD projects filterVictor Zagorodny
A new param with_security_reports was added to GET /groups/:id/projects API and the code to support this logic in GroupProjectsFinder and Project model. Also, a DB index was added to ci_job_artifacts table to speed up the search of security reports artifacts for projects
2019-08-28Apply bindings to querys from QueryRecorderDavid Wilkins
- local tests that assume certain parameters to queries from QueryRecorder fail. These same tests don't fail in the runners, and I can't tell why. This fixes the local failures
2019-08-28Add new RailsHelpers module for specsAsh McKenzie
2019-08-27CE-specific changes for designs `user_notes_count`Luke Duncalfe
Notes call `#after_note_created` and `#after_note_destroyed` on their noteable in callbacks, so the noteable can perform tasks particular to them, like cache expiry. This is in preparation of the EE-specific class `DesignManagement::Design` clearing its `user_notes_count` cache when its note are created or destroyed. Refactoring Rspec behaviour testing of a counter caching service into a shared example. https://gitlab.com/gitlab-org/gitlab-ee/issues/13353
2019-08-26Add edit_note and spec for editing quick actionsPatrick Derichs
Call QuickActionsService on Note update Add support for notes which just contain commands after editing Return http status gone (410) if note was deleted Temporary frontend addition so it is not failing when a note is deleted Move specs to shared examples Fix rubocop style issue Deleting note on frontend when status is 410 Use guard clause for note which got deleted Simplified condition for nil note This method should no longer be called with nil note Refactoring of execute method to reduce complexity Move errors update to delete_note method Note is now deleted visually when it only contains commands after update Add expectation Fix style issues Changing action to fix tests Add tests for removeNote and update deleteNote expectations
2019-08-24Add support for using a Camo proxy serverBrett Walker
User images and videos will get proxied through the Camo server in order to keep malicious sites from collecting the IP address of users.
2019-08-24Add a link to docs in project descriptionReuben Pereira
Add to the service and migration both.
2019-08-23Read pipelines from public projects though APIMarius Bobin
Allow users to read pipelines for public projects with public builds enabled without providing an access token.
2019-08-23Implement validation logic to ProjectStageAdam Hegyi
- Introducting StageEvents to define the available events - Define the event pairing rules, since some events are not compatible - Express default Cycle Analytics stages with the event structure
2019-08-23Merge branch 'sh-eliminate-gitaly-nplus-one-notes' into 'master'Kamil Trzciński
Eliminate Gitaly N+1 queries with notes API See merge request gitlab-org/gitlab-ce!32089
2019-08-23Hide duplicate board list while draggingWinnie Hellmann
2019-08-23Add direct upload support for personal snippetsJan Provaznik
2019-08-23Re-escape whole HTML content instead of only matchJan Provaznik
When we un-escape HTML text to find references in it, we should then re-escape the whole text again, not only found matches. Because we replace matches with milestone/label links (which contain HTML tags we don't want to escape again), we re-escape HTML text with placeholders instead of these links and then replace placeholders in the escaped text.
2019-08-23Eliminate Gitaly N+1 queries with notes APIStan Hu
Similar to https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/31834, we see that in https://gitlab.com/gitlab-org/gitlab-ce/issues/65957 there can be hundreds, even thousands, of Gitaly requests in the `/api/:version/projects/:id/merge_requests/:noteable_id/notes` endpoint. Previously, the API to retrieve notes generated hundreds of Gitaly calls to determine whether a system note should be shown to the user. It did this by: 1. Rendering the Markdown 2. Extracting cross-references from the Markdown 3. Issuing a Gitaly `FindCommit` RPC for every reference to validate that the commit exists. The last step is unnecessary because we don't need to display a commit if the user doesn't have access to the project in the first place. `RendersNotes#prepare_notes_for_rendering` is already used in `MergeRequestsController`, which is why we don't see N+1 Gitaly calls there. We use it here to optimize the note redaction process.
2019-08-23Expose namespace storage statistics with GraphQLAlessio Caiazza
Root namespaces have storage statistics. This commit allows namespace owners to get those stats via GraphQL queries like the following one { namespace(fullPath: "a_namespace_path") { rootStorageStatistics { storageSize repositorySize lfsObjectsSize buildArtifactsSize packagesSize wikiSize } } }