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/lib
AgeCommit message (Collapse)Author
2019-08-27Update docs and comments about saml with allow_bypass_two_factordodocat
allow_bypass_two_factor configration dose not work with saml provider
2019-08-27Revert "Merge branch 'user-tracking-settings' into 'master'"Jeremy Jackson
This reverts merge request !31826
2019-08-26Remove unnecessary includeReuben Pereira
2019-08-26Changes snowplow to use cookies for sessionsJeremy Jackson
This also restructures how and where the configuration for Snowplow lives.
2019-08-26Merge branch 'sh-fix-nplusone-issues' into 'master'Mayra Cabrera
Fix N+1 Gitaly calls in /api/v4/projects/:id/issues See merge request gitlab-org/gitlab-ce!32171
2019-08-26Replace echo function with a resolverBrett Walker
The `GraphQL::Function` has been deprecated in favor of resolvers.
2019-08-26Change default visibility level for FogBugz imported projects to PrivateGeorge Koltsov
2019-08-26Add usage pings for merge request creatingIgor
Code Review Usage Ping for Create SMAU
2019-08-26Danger: Map .rubocop{,_todo}.yml to ~backendPeter Leitzen
2019-08-26Merge branch 'db_load_balancing_service_discovery_srv' into 'master'Kamil Trzciński
DB Load Balancing: Support SRV lookups See merge request gitlab-org/gitlab-ce!32135
2019-08-25Add helper to exactly undo cleanup_concurrent_column_renameReuben Pereira
- Also add helper to undo rename_column_concurrently.
2019-08-24Fix N+1 Gitaly calls in /api/v4/projects/:id/issuesStan Hu
This is a follow-up from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/31938. In GitLab 9.0, https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9661 removed the `subscribed` flag from the API when the user requested a list of issues or merge requests since calculating this value triggers extensive Markdown processing. In GitLab 12.0 via a4fbf39e, we accidentally reintroduced this performance regression by changing `IssueBasic` to `Issue` in `entities.rb`. This showed up as a Gitaly N+1 issue since the Markdown processing would attempt to extract a commit if it detected a regex that matched a commit. We restore the prior behavior by once again removing the `subscribed` flag for the bulk list of issues and merge requests and add a test to ensure they aren't reintroduced. Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/66202
2019-08-24Drop existing trigger before creating new oneReuben Pereira
- When renaming a column concurrently, drop any existing trigger before attempting to create a new one. When running migration specs multiple times (as it happens during local development), the down method of previous migrations are called. If any of the called methods contains a call to rename_column_concurrently, a trigger will be created and not removed. So, the next time a migration spec is run, if the same down method is executed again, it will cause an error when attempting to create the trigger (since it already exists). Dropping the trigger if it already exists will prevent this problem.
2019-08-24Add a link to docs in project descriptionReuben Pereira
Add to the service and migration both.
2019-08-24Merge branch '66402-use-visual-review-tools-npm-package' into 'master'Mike Greiling
Resolve "Use Visual Review Tools NPM package" See merge request gitlab-org/gitlab-ce!32159
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-23Move visual review toolbar to NPMshampton
Remove the visual review toolbar code in favor of using the NPM package.
2019-08-23Merge branch 'jc-add-ff-for-all-lfs-pointers-go' into 'master'Stan Hu
Adding gitaly feature flag for go implementation of get all lfs pointers See merge request gitlab-org/gitlab-ce!31696
2019-08-23Adding gitaly feature flag for go implementation of get all lfs pointersJohn Cai
2019-08-23Add label_id parameter to label API for PUT and DELETEPatrick Derichs
Add specs for new parameter and updated documentation as well.
2019-08-23Merge branch 'jc-fix-auto-rugged-detection' into 'master'Lin Jen-Shin
Handle when server info doesn't have the storage in question See merge request gitlab-org/gitlab-ce!32023
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-23Handle when server info doesn't have the storage in questionJohn Cai
2019-08-23Merge branch '57402-upate-issues-list-sort-options-ce' into 'master'Jan Provaznik
CE: Update sort options for issues list See merge request gitlab-org/gitlab-ce!31849
2019-08-23Merge branch 'frozen_string_lib_2' into 'master'Nick Thomas
Add frozen_string_literal to lib part 2 See merge request gitlab-org/gitlab-ce!32094
2019-08-23Update sort options for issues listAlexandru Croitor
Increase sort options for issues list from updated_at and create_at, to include more options close to what is required in actual issue list UI. This helps us to use REST API for issues list with sorting capabilities https://gitlab.com/gitlab-org/gitlab-ce/issues/57402
2019-08-23Exempt `jwt/auth` for user `gitlab-ci-token` from rate limitingMarius Bobin
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-23CE port: allow SRV records in DB service discoveryTiger
2019-08-23Fix frozen string errorThong Kuah
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 } } }
2019-08-22Log time spent on CPU to sidekiq.logBalakumar
2019-08-22Fix frozen string errorsThong Kuah
2019-08-22Merge branch 'feat/smime-signed-notification-emails' into 'master'Sean McGivern
feat: smime signed notification emails See merge request gitlab-org/gitlab-ce!30644
2019-08-22Merge branch ↵Kushal Pandya
'ee-2502-refactor-ee-app-assets-javascripts-approvals-components-approvers_select-vue-to-remove-approverusers' into 'master' Add a new method to `Api.js`: `projectUsers` See merge request gitlab-org/gitlab-ce!31801
2019-08-22Add Gitaly info-ref cache feature flagsPaul Okstad
2019-08-21Merge branch 'sidekiq-interrupt-running-jobs-deadset' into 'master'Stan Hu
Put cancelled job in DeadSet See merge request gitlab-org/gitlab-ce!32070
2019-08-21Merge branch 'uncomment_commit_signatures_feature_flag' into 'master'Stan Hu
Upgrade to gitaly 1.60.0 and uncomment get_commit_signatures feature flag Closes #65991 See merge request gitlab-org/gitlab-ce!31981
2019-08-21Put cancelled job in DeadSetKamil Trzciński
This replicates Sidekiq behavior of pushing dead job into DeadSet.
2019-08-21Ensure CI matching operator receives an objectMarius Bobin
Ensure the evaluation of right-hand side expression always results in the returning of an object or an empty String
2019-08-21Merge branch 'sidekiq-interrupt-running-jobs' into 'master'Stan Hu
Allow to interrupt running sidekiq jobs See merge request gitlab-org/gitlab-ce!31818
2019-08-21Properly handle `sidekiq` skipKamil Trzciński
Transform `CancelledError` into `JobRetry::Skip`
2019-08-21Improve resillency of monitorKamil Trzciński
- Retry connection when it fails - Properly shutdown daemon - Stop monitor if the Exception is raised - Properly guard exception handling
2019-08-21Perform cheap thread findKamil Trzciński
If we process message that is not designated to us previously we would fire a separate Thread for that. We don't need to do it. We can cheaply check if thread is available, if it is, we can perform expensive operation then.
2019-08-21Rework `Sidekiq::JobsThreads` into `Monitor`Kamil Trzciński
This makes: - very shallow `Middleware::Monitor` to only request tracking of sidekiq jobs, - `SidekiqStatus::Monitor` to be responsible to maintain persistent connection to receive messages, - `SidekiqStatus::Monitor` to always use structured logging and instance variables
2019-08-21Allow to interrupt running jobsKamil Trzciński
This adds a middleware to track all threads for running jobs. This makes sidekiq to watch for redis-delivered notifications. This makes be able to send notification to interrupt running sidekiq jobs. This does not take into account any native code, as `Thread.raise` generates exception once the control gets back to Ruby. The separate measure should be taken to interrupt gRPC, shellouts, or anything else that escapes Ruby.
2019-08-21Add service classes for mutating AwardEmojiLuke Duncalfe
Adding, destroying and toggling emoji previously lacked services and instead were performed through methods called on Awardable models. This led to inconsistencies where relevant todos would be marked as done only when emoji were awarded through our controllers, but not through the API. Todos could also be marked as done when an emoji was being removed. Behaviour changes - Awarding emoji through the API will now mark a relevant Todo as done - Toggling an emoji off (destroying it) through our controllers will no longer mark a relevant Todo as done Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63372
2019-08-20Introducing new Syntax for Ci::Build inclusion rulesdrew
- Added Gitlab::Ci::Config::Entry::Rules and Gitlab::Ci::Config::Entry::Rules:Rule to handle lists of Rule objects to be evalauted for job inclusion - Added `if:` and `changes:` as available Rules::Rule::Clause classes - Added Rules handling logic to Seed::Build#included? with extra specs - Use DisallowedKeysValidator to mutually exclude rules: from only:/except: on job config
2019-08-20Standardize remote_ip and path keys for auth.log and api_json.logStan Hu
Current `auth.log` uses `fullpath` and `ip`, while `api_json.log` uses `remote_ip` and `path` for the same fields. Let's standardize these namings to make it easier for people working with the data. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66167