summaryrefslogtreecommitdiff
path: root/db
Commit message (Collapse)AuthorAgeFilesLines
* This commit adds a new time series componentMiguel Rincon2019-08-211-0/+13
| | | | | | | | 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
* Add SortingPreference concernGeorge Koltsov2019-08-212-0/+14
| | | | | | | 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).
* Add service classes for mutating AwardEmojiLuke Duncalfe2019-08-211-24/+11
| | | | | | | | | | | | | | | | | | 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
* Removed security fixtures as they are ee onlyremove-unused-security-fixturesCameron Swords2019-08-201-74/+1
| | | | These will be moved to the EE codebase.
* Add new table to store email domainGosia Ksionek2019-08-162-0/+31
| | | | | | | | | | | | | | | 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
* Optimize DB indexes for ES indexing of notesMarkus Koller2019-08-163-2/+61
| | | | | | | | | | | | | | | 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.
* Migrations for Cycle Analytics backendAdam Hegyi2019-08-153-0/+114
| | | | | | | 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.
* Allow disabling group/project email notificationsBrett Walker2019-08-153-0/+20
| | | | | | - Adds UI to configure in group and project settings - Removes notification configuration for users when disabled at group or project level
* Migrate remaining users with null private_profileAdam Hegyi2019-08-142-1/+32
|
* Add object storage flag to Geo Node (migration)Gabriel Mazetto2019-08-132-0/+22
|
* Merge branch 'ce-docker_image_replication_node_status' into 'master'Douglas Barbosa Alexandre2019-08-102-0/+20
|\ | | | | | | | | Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14943 See merge request gitlab-org/gitlab-ce!31406
| * Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14943ce-docker_image_replication_node_statusValery Sizov2019-08-072-0/+20
| | | | | | | | Docker Registry Replication
* | Merge branch ↵Bob Van Landuyt2019-08-092-2/+12
|\ \ | | | | | | | | | | | | | | | | | | '13208-epicissue-has-an-unexpected-default-relative-position-ce' into 'master' [CE] Remove default `relative_position` from `epic_issues` See merge request gitlab-org/gitlab-ce!31514
| * | Remove default relative_position value13208-epicissue-has-an-unexpected-default-relative-position-ceHeinrich Lee Yu2019-08-092-2/+12
| | | | | | | | | | | | | | | This makes `epic_issues` consistent with other tables using our `RelativePositioning` class
* | | Revert "Merge branch ↵Winnie Hellmann2019-08-091-24/+0
| | | | | | | | | | | | | | | | | | '4221-board-milestone-should-persist-any-none-properly-ce' into 'master'" This reverts merge request !30613
* | | Merge branch '39217-remove-kubernetes-service-integration' into 'master'James Lopez2019-08-091-0/+13
|\ \ \ | |/ / |/| | | | | | | | Remove KubernetesService integration See merge request gitlab-org/gitlab-ce!31365
| * | Final removal of KubernetesService39217-remove-kubernetes-service-integrationTiger2019-08-081-0/+13
| | | | | | | | | | | | | | | | | | Creating new records has been disabled, and all existing records been migrated to clusters as of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28534
* | | Add timestamp columns to geo_nodesDouglas Barbosa Alexandre2019-08-082-0/+12
|/ /
* | Save instance administration project id in DBReuben Pereira2019-08-072-0/+17
| | | | | | | | | | - This will make it easy to identify the project even if admins change the name of the project or move it.
* | Add migration for CE as well13201-rename-snowplow_collector_uri-to-snowplow_collector_hostnameAlex Buijs2019-08-073-1/+35
|/
* Use separate Kubernetes namespaces per environmentTiger Watson2019-08-074-0/+53
| | | | | | | | | | | | 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.
* Merge branch '43080-speed-up-deploy-keys' into 'master'Thong Kuah2019-08-062-1/+25
|\ | | | | | | | | | | | | Improve the performance of viewing deploy keys Closes #43080 See merge request gitlab-org/gitlab-ce!31384
| * Move migration from migrate to post_migrate43080-speed-up-deploy-keysStan Hu2019-08-051-0/+0
| | | | | | | | | | This is just in case the creation of this index takes a while to create.
| * Add partial index for deploy keysStan Hu2019-08-052-1/+25
| | | | | | | | | | | | 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.
* | Add migrations for productivity analyticsPavel Shutsin2019-08-062-0/+20
|/
* Use SQL to find the gap instead of iteratingHeinrich Lee Yu2019-08-052-2/+26
| | | | Also removes unnecessary methods causing extra queries
* Replace add_column_with_default to add_columngeorgekoltsov/55474-outbound-setting-system-hooksGeorge Koltsov2019-08-021-6/+4
|
* Add backwards compatibility for legacy settingGeorge Koltsov2019-08-022-1/+3
| | | | | `allow_local_requests_for_hooks_and_services` was renamed to `allow_local_requests_for_web_hooks_and_services`.
* Refactor SystemHookUrlValidator and specsGeorge Koltsov2019-08-023-3/+18
| | | | | | Simplify SystemHookUrlValidator to inherit from PublicUrlValidator Refactor specs to move out shared examples to be used in both system hooks and public url validators.
* Update translations in gitlab.potGeorge Koltsov2019-08-022-0/+4
|
* Add outbound requests setting for system hooksGeorge Koltsov2019-08-023-1/+35
| | | | | | | 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.
* Add commit_id to draft_notes tablePatrick Bajao2019-08-012-0/+12
| | | | CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14520
* Merge branch 'ce-docker_image_replication' into 'master'Douglas Barbosa Alexandre2019-08-012-0/+14
|\ | | | | | | | | Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3809 See merge request gitlab-org/gitlab-ce!31375
| * Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3809ce-docker_image_replicationValery Sizov2019-08-012-0/+14
| | | | | | | | Introducing Docker Registry replication
* | Add support for DAGKamil Trzciński2019-08-012-1/+28
|/ | | | | | This implements the support for `needs:` keyword as part of GitLab CI. That makes some of the jobs to be run out of order.
* Port CE changes from EEcharlie ablett2019-07-311-0/+24
| | | | | - DB migration of board milestone values - issue finder & spec updates
* Add partial index on identities table to speed up LDAP lookupsStan Hu2019-07-302-0/+20
| | | | | | | | | 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
* Create index on environments by stateAndreas Brandl2019-07-292-1/+19
|
* Migrations for adding issue_id to versions tableLuke Duncalfe2019-07-295-1/+70
| | | | | | | | | | | | | | 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
* Add Job specific variablesMatija Čupić2019-07-292-0/+34
| | | | | Adds Job specific variables to facilitate specifying variables when running manual jobs.
* Updates label value to include units in metricsLaura Montemayor2019-07-261-0/+13
| | | | | | This MR updates the y_label values and the label values in common_metrics and cluster_metrics to append the units of measurement to the labels.
* Merge branch 'delete-designs-v2' into 'master'Andreas Brandl2019-07-262-0/+29
|\ | | | | | | | | Adds event enum column to DesignsVersions join table See merge request gitlab-org/gitlab-ce!30745
| * Adds event enum column to DesignsVersions join tabledelete-designs-v2Alex Kalderimis2019-07-242-0/+29
| | | | | | | | | | | | Also adds index to support scopes and queries This supports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14656
* | Add default for outbound_local_requests_whitelistThong Kuah2019-07-252-2/+32
| | | | | | | | It needs to default to an empty array logically.
* | Enable Rubocop Performance/ReverseEachsh-rubocop-reverse-eachStan Hu2019-07-241-1/+1
| | | | | | | | | | | | | | `Array.reverse_each` is faster than `Array.reverse.each` because: * reverse.each creates a new array then loops each element * reverse_each loops in reverse order (no intermediate array created)
* | Merge branch 'ce-docker_image_replication-event-generation' into 'master'Douglas Barbosa Alexandre2019-07-244-0/+68
|\ \ | |/ |/| | | | | Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14597 See merge request gitlab-org/gitlab-ce!30520
| * Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14597ce-docker_image_replication-event-generationValery Sizov2019-07-244-0/+68
| | | | | | | | | | This is the first part of Docker Registry replication for secondary Geo node.
* | Add RateLimiter to RawControllerMayra Cabrera2019-07-242-1/+11
| | | | | | | | | | | | | | | | | | | | * Limits raw requests to 300 per minute and per raw path. * Add a new attribute to ApplicationSettings so user can change this value on their instance. * Uses Gitlab::ActionRateLimiter to limit the raw requests. * Add a new method into ActionRateLimiter to log the event into auth.log Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/48717
* | [ADD] outbound requests whitelistReuben Pereira2019-07-242-0/+10
|/ | | | Signed-off-by: Istvan szalai <istvan.szalai@savoirfairelinux.com>
* Merge branch '52442-initial-mysql-support-removal' into 'master'Robert Speicher2019-07-2316-179/+14
|\ | | | | | | | | | | | | Remove dead mysql code Closes #63191 See merge request gitlab-org/gitlab-ce!29608