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-02Replace indexes for counting active usersAndreas Brandl
This adjusts the partial condition for an index. The index is intended to be used when counting active users with `ghost IS NOT TRUE AND bot_type IS NULL`. With the current index, this wasn't working as the partial condition didn't match the query: `ghost <> TRUE` is not semantically equivalent to `ghost IS NOT TRUE` (null semantics). The reason we add an index particularly intended for EE is that the EE query is going to have the additional part `AND bot_type IS NULL` whereas the CE query doesn't. Logically, it'd be enough to have an index for `ghost IS NOT TRUE`. However, on GitLab.com, the query planner makes poor choices when the additional `AND bot_type IS NULL` part is present: It goes for the index on `bot_type` and doesn't use the partial index. Note the existing index isn't being used at all according to GitLab.com index statistics. Hence we can first remove it and don't have to worry about the window of time without an index. Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/66770
2019-08-30Rename epic column state to state_idFelipe Artur
Rename epic column state to state_id to be consistent with issues and merge requests
2019-08-30Default clusters namespace_per_environment to trueTiger
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-59549-add-capcha-for-failed-logins' into 'master'GitLab Release Tools Bot
Require a captcha after unique failed logins from the same IP See merge request gitlab/gitlabhq!3270
2019-08-30Merge branch 'security-add-job-activity-limit-ce' into 'master'GitLab Release Tools Bot
Introduce JobActivity limit for alive jobs Closes gitlab-ee#376 See merge request gitlab/gitlabhq!3339
2019-08-29Remove redundant indexThong Kuah
Now we have cluster_id, state index, we don't the cluster_id index as well.
2019-08-29Add index to improve query performanceThong Kuah
For Environment.deployed_to_cluster
2019-08-28Save board lists collapsed settingFelipe Artur
Persists if a board list is collapsed for each user.
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-28Adding NOT NULL constraint to private_profileAdam Hegyi
This change sets NOT NULL constraint to users.private profile. closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57538
2019-08-27Add limit: 255 to token_ecnrypted columnStan Hu
2019-08-27Added new index to deploy_tokens tableEtienne Baqué
2019-08-27Added migration to encrypt token in DeployToken recordsEtienne Baqué
Added migrations to make token column accepting null values and to add encrypted token column.
2019-08-26Using before_save method instead of setterAishwarya Subramanian
Removed unused method for name setter method
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-23Remove redundant indexSean Carroll
2019-08-21Add SortingPreference concernGeorge Koltsov
Sorting preference functionality has been extracted from `IssuableCollections` to a new `SortingPreference` concern in order to reuse this functionality in projects (and groups in the future).
2019-08-21Add active_jobs_limit to plans tableFabio Pitino
This is a port from EE changes where we introduce a new limit for Plan model. https://dev.gitlab.org/gitlab/gitlab-ee/merge_requests/1182
2019-08-17Add new table to store email domainGosia Ksionek
In order to save user preferences regarding user emails allowed to be invited to group Add foreign_key and down method Change adding foreign key Add partial call to view Add changelog entry Fix schema
2019-08-16Optimize DB indexes for ES indexing of notesMarkus Koller
To index notes, we exclude system notes and use `find_in_batches` to load them in batches for submission to the ES bulk import API. These queries often result in DB timeouts because the usage of `ORDER BY id` results in the `notes_pkey` index being used. This adds an optimized partial index, and removes the unused index `index_notes_on_noteable_type` which is already covered for our usage by the existing `index_notes_on_noteable_id_and_noteable_type`. Newer versions of PostgreSQL (at least 11) are smarter about this and use `index_notes_on_project_id_and_noteable_type` instead, so we might be able to remove the partial index again in the future.
2019-08-15Migrations for Cycle Analytics backendAdam Hegyi
This change lays the foundation for customizable cycle analytics stages. The main reason for the change is to extract the event definitions to separate objects (start_event, end_event) so that it could be easily customized later on.
2019-08-15Allow disabling group/project email notificationsBrett Walker
- Adds UI to configure in group and project settings - Removes notification configuration for users when disabled at group or project level
2019-08-14Migrate remaining users with null private_profileAdam Hegyi
2019-08-13Add object storage flag to Geo Node (migration)Gabriel Mazetto
2019-08-10Merge branch 'ce-docker_image_replication_node_status' into 'master'Douglas Barbosa Alexandre
Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14943 See merge request gitlab-org/gitlab-ce!31406
2019-08-09Remove default relative_position valueHeinrich Lee Yu
This makes `epic_issues` consistent with other tables using our `RelativePositioning` class
2019-08-08Add timestamp columns to geo_nodesDouglas Barbosa Alexandre
2019-08-07Save instance administration project id in DBReuben Pereira
- This will make it easy to identify the project even if admins change the name of the project or move it.
2019-08-07Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14943Valery Sizov
Docker Registry Replication
2019-08-07Add migration for CE as wellAlex Buijs
2019-08-07Use separate Kubernetes namespaces per environmentTiger Watson
Kubernetes deployments on new clusters will now have a separate namespace per project environment, instead of sharing a single namespace for the project. Behaviour of existing clusters is unchanged. All new functionality is controlled by the :kubernetes_namespace_per_environment feature flag, which is safe to enable/disable at any time.
2019-08-06Merge branch '43080-speed-up-deploy-keys' into 'master'Thong Kuah
Improve the performance of viewing deploy keys Closes #43080 See merge request gitlab-org/gitlab-ce!31384
2019-08-06Add migrations for productivity analyticsPavel Shutsin
2019-08-05Add partial index for deploy keysStan Hu
Per https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/31384, this appears to drop the runtime of the query from 1.2 ms (cold), 500ms (warm cache) to < 20 ms.
2019-08-05Use SQL to find the gap instead of iteratingHeinrich Lee Yu
Also removes unnecessary methods causing extra queries
2019-08-02Add backwards compatibility for legacy settingGeorge Koltsov
`allow_local_requests_for_hooks_and_services` was renamed to `allow_local_requests_for_web_hooks_and_services`.
2019-08-02Refactor SystemHookUrlValidator and specsGeorge Koltsov
Simplify SystemHookUrlValidator to inherit from PublicUrlValidator Refactor specs to move out shared examples to be used in both system hooks and public url validators.
2019-08-02Add outbound requests setting for system hooksGeorge Koltsov
This MR adds new application setting to network section `allow_local_requests_from_system_hooks`. Prior to this change system hooks were allowed to do local network requests by default and we are adding an ability for admins to control it.
2019-08-02Add commit_id to draft_notes tablePatrick Bajao
CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14520
2019-08-01Merge branch 'ce-docker_image_replication' into 'master'Douglas Barbosa Alexandre
Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3809 See merge request gitlab-org/gitlab-ce!31375
2019-08-01Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3809Valery Sizov
Introducing Docker Registry replication
2019-08-01Add support for DAGKamil Trzciński
This implements the support for `needs:` keyword as part of GitLab CI. That makes some of the jobs to be run out of order.
2019-07-31Add captcha if there are multiple failed login attemptsMałgorzata Ksionek
Add method to store session ids by ip Add new specs for storing session ids Add cleaning up records after login Add retrieving anonymous sessions Add login recaptcha setting Add new setting to sessions controller Add conditions for showing captcha Add sessions controller specs Add admin settings specs for login protection Add new settings to api Add stub to devise spec Add new translation key Add cr remarks Rename class call Add cr remarks Change if-clause for consistency Add cr remarks Add code review remarks Refactor AnonymousSession class Add changelog entry Move AnonymousSession class to lib Move store unauthenticated sessions to sessions controller Move link to recaptcha info Regenerate text file Improve copy on the spam page Change action filter for storing anonymous sessions Fix rubocop offences Add code review remarks
2019-07-30Add partial index on identities table to speed up LDAP lookupsStan Hu
For customers with thousands of entries in the table, lookups for an LDAP identity dominated the PostgreSQL statistics because of sequential scans. We can speed this up by adding a partial index with the extern_uid and provider. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/59630
2019-07-29Create index on environments by stateAndreas Brandl
2019-07-29Migrations for adding issue_id to versions tableLuke Duncalfe
These migrations do the following: - Adds a new `issue_id` column to `versions`. This fixes an n+1 problem when loading versions for an issue in GraphQL as AR can now load from cache - Change the unique restraint on versions.sha to be scoped to `issue_id` as in order to import version data, we need to allow duplicate `sha` values for versions - Update all versions with an `issue_id` https://gitlab.com/gitlab-org/gitlab-ee/issues/11090
2019-07-29Add Job specific variablesMatija Čupić
Adds Job specific variables to facilitate specifying variables when running manual jobs.
2019-07-26Merge branch 'delete-designs-v2' into 'master'Andreas Brandl
Adds event enum column to DesignsVersions join table See merge request gitlab-org/gitlab-ce!30745