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/db
AgeCommit message (Collapse)Author
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-12Create self-monitoring project in background migrationReuben Pereira
- A regular migration caused problems such as https://gitlab.com/charts/gitlab/issues/1565.
2019-09-12Fix member expiration not always workingStan Hu
The Sidekiq job `RemoveExpiredMembersWorker` was failing to run in production because it was hitting statement timeouts because it was scanning all rows in order. On staging, where it used to scan 4 million rows, adding an index brought this down to only a few hundred rows. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/67286
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-11Change discussion_ids on promoted epics notesAlexandru Croitor
Notes on epics promoted from an issue used to get same discussion_id as the notes from the issue the epic was promoted from, which would cause problems when trying to reply to the epic discussion.
2019-09-11Merge branch 'sh-fix-oauth-application-page' into 'master'Rémy Coutable
Optimize /admin/applications so that it does not timeout Closes #67228 See merge request gitlab-org/gitlab-ce!32852
2019-09-10Add index on group_id column concurrentlyJan Provaznik
This fixes previously added migration which caused timeouts on big events table.
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-10Optimize /admin/applications so that it does not timeoutStan Hu
On our dev instance, /admin/applications as not loading because: 1. There was an unindexed query by `application_id`. 2. There was an expensive query that attempted to load 1 million unique entries via ActiveRecord just to find the unique count. We fix the first issue by adding an index for that column. We fix the second issue with a simple SELECT COUNT(DISTINCT resource_owner_id) SQL query. In addition, we add pagination to avoid loading more than 20 applications at once. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/67228
2019-09-09Merge branch 'make-epics-position-migration-robust' into 'master'Andreas Brandl
Make epic_issues relative_position migration more robust Closes #66923 See merge request gitlab-org/gitlab-ce!32646
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-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-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-05Merge branch 'ab/unconfirmed-email-index' into 'master'Andreas Brandl
Create index for users.unconfirmed_email See merge request gitlab-org/gitlab-ce!32664
2019-09-04Create index for users.unconfirmed_emailAndreas Brandl
This speeds up the following query: ```sql SELECT users.* FROM users WHERE users.unconfirmed_email = ? ORDER BY users.id ASC LIMIT 1 ``` Presumably, this is a query coming from Devise. Context is https://gitlab.com/gitlab-org/gitlab-ce/issues/66958.
2019-09-04Make epic_issues relative_position migration more robustSean McGivern
If someone installed EE, then downgraded to CE before this column was added, upgrading to the latest version of CE will fail: 1. We have a backport migration for the entire EE schema but the table `epic_issues` exists, just not the `relative_position` column. 2. The migration that changes the default (quite reasonably) didn't check if the column exists. If the column doesn't exist, we can just create it with the correct default.
2019-09-04Create partial index for gitlab-monitor CI metricsAndreas Brandl
This creates a partial index intended to speed up queries on `ci_builds`. Particularly, `gitlab-monitor` has rather heavy queries. Those have been changed to only look back 7 days and benefit from this index tremendously. Relates to https://gitlab.com/gitlab-org/gitlab-exporter/merge_requests/101.
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 'ab-remove-support-bot-column' into 'master'Yorick Peterse
Remove Users.support_bot column See merge request gitlab-org/gitlab-ce!32554
2019-09-03Fix cycle analytics seed scriptAdam Hegyi
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-03Add not null constraints to prometheus_metrics table columnsArun Kumar Mohan
2019-09-02Remove Users.support_bot columnAndreas Brandl
This column is not present in `db/schema.rb` and hence needs to be removed conditionally. See https://gitlab.com/gitlab-org/gitlab-ce/issues/66901 for background
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-30Add production fixture to create projectReuben Pereira
Since migrations are not run by new instances, add a production fixture that should ensure that the self-monitoring project is created for new instances as well.
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-27Iterating through token to encrypt with find_eachEtienne 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-25Add helper to exactly undo cleanup_concurrent_column_renameReuben Pereira
- Also add helper to undo rename_column_concurrently.
2019-08-24disable cop Migration/AddLimitToStringColumnsBrett Walker
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-24Adds cop to enforce string limits on migrationsMayra Cabrera
This cop will analyze migrations that add columns with string, and report an offense if the string has no limit enforced Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/64505
2019-08-23Remove redundant indexSean Carroll
2019-08-21This commit adds a new time series componentMiguel Rincon
Adds a time series component for line and area charts. Displays new charts in the dashboard. - Use dynamic components for line/area swapping - Add new line charts to dashboard in 2 panels
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).