gitlab-org--gitlab-foss/spec/models
Stan Hu 5c8ce94052 Fix statement timeouts in RemoveRestrictedTodos migration
On GitLab.com, the RemoveRestrictedTodos background migration
encountered about 700+ failures a day due to statement timeouts.

PostgreSQL might perform badly with a LIMIT 1 because the planner is
guessing that scanning the index in ID order will come across the
desired row in less time it will take the planner than using another
index. The order_hint does not affect the search results. For example,
`ORDER BY id ASC, updated_at ASC` means the same thing as `ORDER BY id
ASC`.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52649
2018-11-04 06:01:17 -08:00
..
application_setting Messaging on terms page when user already accepted 2018-06-04 22:22:11 +02:00
badges Projects and groups badges API 2018-03-05 17:51:40 +00:00
blob_viewer Fix xss vulnerability sourced from package.json's homepage 2018-09-19 09:13:33 +08:00
ci Remove ci_enable_scheduled_build feature flag 2018-11-02 11:32:45 +00:00
clusters Incorporates Kubernetes Namespace into Cluster's flow 2018-11-02 15:46:15 +00:00
concerns Fix statement timeouts in RemoveRestrictedTodos migration 2018-11-04 06:01:17 -08:00
conversational_development_index
cycle_analytics Adapt cycle analytics spec helper and cycle analytics usage data spec 2018-03-01 16:43:26 +00:00
diff_viewer Batchload blobs for diff generation 2017-11-21 13:53:26 +01:00
hooks Migrate sensitive web hook data in the background 2018-10-01 15:34:16 +01:00
issue
members Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
merge_request Cache merged and closed events data in merge_request_metrics table 2018-01-02 17:45:25 -02:00
network
postgresql Respond to DB health in background migrations 2018-08-06 15:20:36 +02:00
project_services Incorporates Kubernetes Namespace into Cluster's flow 2018-11-02 15:46:15 +00:00
protected_branch Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
ability_spec.rb Remove edit_note and update_note abilities in favor of admin_note 2018-04-10 15:46:20 +02:00
abuse_report_spec.rb
active_session_spec.rb Display and revoke active sessions 2018-05-02 08:08:16 +00:00
appearance_spec.rb Use the new CacheableAttributes concern in the ApplicationSetting and Appearance models 2018-05-23 16:14:43 +02:00
application_setting_spec.rb Remove Git circuit breaker 2018-10-10 09:08:18 +02:00
award_emoji_spec.rb Refactor AutocompleteController 2018-08-20 13:53:00 +02:00
badge_spec.rb Projects and groups badges API 2018-03-05 17:51:40 +00:00
blob_spec.rb Allow FoundBlob to access language from gitattributes 2018-10-30 15:44:55 +08:00
board_group_recent_visit_spec.rb Automatically navigate to last board visited 2018-10-26 12:49:16 +00:00
board_project_recent_visit_spec.rb Automatically navigate to last board visited 2018-10-26 12:49:16 +00:00
board_spec.rb
broadcast_message_spec.rb Backport: Propagate broadcast messages to secondaries 2018-04-11 11:28:44 -07:00
chat_name_spec.rb Expose ChatName objects to slash commands 2018-02-23 14:37:53 +01:00
chat_team_spec.rb
commit_collection_spec.rb Optimise getting the pipeline status of commits 2017-11-16 16:01:14 +01:00
commit_range_spec.rb Only search for MR revert commits on notes after MR was merged 2018-01-12 13:19:05 +00:00
commit_spec.rb Merge branch 'fix-committer-typo' into 'master' 2018-09-25 17:08:23 +00:00
commit_status_spec.rb Add unit tests for CommitStatus and Ci::Stage 2018-10-02 17:08:11 +02:00
compare_spec.rb Remove unused Compare#base_commit 2018-03-08 11:39:50 -03:00
container_repository_spec.rb
cycle_analytics_spec.rb Adapt cycle analytics spec helper and cycle analytics usage data spec 2018-03-01 16:43:26 +00:00
deploy_key_spec.rb Fall back on ghost user when deploy key user is not set 2018-03-28 18:54:15 +02:00
deploy_keys_project_spec.rb Merge branch 'sh-migrate-can-push-to-deploy-keys-projects-10-3' into 'security-10-3' 2018-01-16 17:04:51 -08:00
deploy_token_spec.rb Fix deploy tokens without expire_at crashes 2018-08-02 19:43:36 +02:00
deployment_spec.rb Rails5: fix deployment model spec 2018-10-17 19:02:39 +02:00
diff_discussion_spec.rb Fix links to old commits in merge requests 2017-12-29 14:44:39 +01:00
diff_note_spec.rb Persist truncated note diffs on a new table 2018-05-24 15:34:43 -03:00
discussion_spec.rb
email_spec.rb remove extra whitespace 2017-10-27 17:35:40 +02:00
environment_spec.rb Resolve "No longer require a deploy to start Prometheus monitoring" 2018-10-26 15:31:04 +00:00
environment_status_spec.rb post merge pipeline and environments status 2018-10-29 11:34:41 +00:00
event_collection_spec.rb Refactor EventFilter and increase its test coverage 2018-09-26 18:34:26 +02:00
event_spec.rb Check snippet note event visibility 2018-09-21 17:05:08 +01:00
external_issue_spec.rb
fork_network_member_spec.rb Whitelist existing destroy_all offenses 2018-08-16 17:29:37 +02:00
fork_network_spec.rb Unlink a project from a fork network when it's source was deleted. 2017-11-03 12:17:59 +01:00
generic_commit_status_spec.rb Respect the inheritance chain between Ci::Build and CommitStatus 2018-05-16 15:59:51 -05:00
global_milestone_spec.rb Moving state_count to Milestone model and related tests 2018-10-17 15:42:10 +02:00
gpg_key_spec.rb Invalidate GpgSignatures associated to GpgKeySubkeys when revoking the GpgKey 2017-10-05 08:26:02 -05:00
gpg_key_subkey_spec.rb Add some basic specs and refactor model and validations 2017-10-05 08:25:27 -05:00
gpg_signature_spec.rb Fix error with GPG signature updater when commit was deleted 2017-10-07 10:47:53 -05:00
group_custom_attribute_spec.rb Support custom attributes on groups 2017-11-06 10:51:50 +01:00
group_label_spec.rb
group_milestone_spec.rb
group_spec.rb Renaming Secret Variables in the codebase 2018-10-30 08:49:26 +00:00
guest_spec.rb Add a unique and not null constraint on the project_features.project_id column 2018-05-15 14:20:14 +02:00
identity_spec.rb Fixed user synced attributes metadata after removing current provider 2018-02-15 09:27:38 +00:00
import_export_upload_spec.rb Update Import/Export to use object storage (based on aa feature flag) 2018-07-06 15:46:18 +02:00
instance_configuration_spec.rb Instance Configuration page now displays correct SSH fingerprints 2018-10-03 15:25:42 +01:00
internal_id_spec.rb Make GitLab pages support access control 2018-10-05 13:41:11 +00:00
issue_collection_spec.rb Replace '.team << [user, role]' with 'add_role(user)' in specs 2017-12-22 19:18:28 +11:00
issue_spec.rb Move issue related_branches to service 2018-10-04 15:59:14 -03:00
key_spec.rb Validate SSH keys through the sshkey gem 2018-02-16 11:32:08 -05:00
label_link_spec.rb
label_note_spec.rb Use ResourceLabelEvent for tracking label changes 2018-09-07 13:39:20 +00:00
label_priority_spec.rb
label_spec.rb Add subscribe filter to labels page 2018-10-04 10:24:50 +02:00
legacy_diff_discussion_spec.rb
lfs_file_lock_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
lfs_object_spec.rb Merge branch 'gt-update-typos-in-comments-and-specs' into 'master' 2018-11-01 10:34:23 +00:00
lfs_objects_project_spec.rb
license_template_spec.rb Backport project template API to CE 2018-10-05 11:34:43 +01:00
list_spec.rb
member_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
merge_request_diff_commit_spec.rb [Rails5] Update type_cast_*_database methods 2018-04-06 10:57:19 +00:00
merge_request_diff_file_spec.rb
merge_request_diff_spec.rb Optimize merge request refresh by using the database to check commit SHAs 2018-11-02 12:11:30 -07:00
merge_request_spec.rb Optimize merge request refresh by using the database to check commit SHAs 2018-11-02 12:11:30 -07:00
milestone_spec.rb Update MR based on Sean's feedback 2018-10-26 13:43:28 +02:00
namespace_spec.rb Merge branch 'remove-rugged' into 'master' 2018-10-03 09:06:32 +00:00
note_diff_file_spec.rb Persist truncated note diffs on a new table 2018-05-24 15:34:43 -03:00
note_spec.rb Resolve "Filter discussion (tab) by comments or activity in issues and merge requests" 2018-10-23 09:49:45 +00:00
notification_recipient_spec.rb Apply notification settings level of groups to all child objects 2018-06-07 15:47:39 -03:00
notification_setting_spec.rb Add email_events to replace EMAIL_EVENTS because it needs to be dynamic, 2018-08-14 14:59:29 +08:00
pages_domain_spec.rb Add HTTPS-only pages 2018-03-22 19:58:36 +01:00
personal_access_token_spec.rb [master] Persist only SHA digest of PersonalAccessToken#token 2018-10-29 16:06:45 +00:00
programming_language_spec.rb Add repository languages for projects 2018-08-01 18:58:29 +02:00
project_authorization_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
project_auto_devops_spec.rb Add timed incremental rollout to Auto DevOps 2018-10-05 21:14:59 +02:00
project_ci_cd_setting_spec.rb Introduce new ProjectCiCdSetting 2018-04-16 14:05:35 +02:00
project_custom_attribute_spec.rb Support custom attributes on projects 2017-11-06 10:51:46 +01:00
project_deploy_token_spec.rb Addresses database comments 2018-04-06 21:20:17 -05:00
project_feature_spec.rb Make GitLab pages support access control 2018-10-05 13:41:11 +00:00
project_group_link_spec.rb Whitelist existing destroy_all offenses 2018-08-16 17:29:37 +02:00
project_import_state_spec.rb Backports every CE related change from ee-44542 to CE 2018-05-04 17:33:26 +02:00
project_label_spec.rb
project_snippet_spec.rb
project_spec.rb Incorporates Kubernetes Namespace into Cluster's flow 2018-11-02 15:46:15 +00:00
project_statistics_spec.rb Update total storage size when changing size of artifacts 2018-07-27 17:21:41 +02:00
project_team_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
project_wiki_spec.rb Fix typos in comments and specs 2018-11-01 08:59:20 +02:00
prometheus_metric_spec.rb Fix query_series specs 2018-09-05 21:05:40 +02:00
protectable_dropdown_spec.rb
protected_branch_spec.rb
protected_tag_spec.rb
push_event_payload_spec.rb
push_event_spec.rb Last push widget will show banner for new pushes to previously merged branch 2018-01-15 16:45:56 -06:00
redirect_route_spec.rb
release_spec.rb
remote_mirror_spec.rb Remove Gitlab::Git::Repository#rugged and Gollum code 2018-10-02 16:34:28 -03:00
repository_language_spec.rb Add repository languages for projects 2018-08-01 18:58:29 +02:00
repository_spec.rb Use cached readme blobs where appropriate 2018-10-17 16:24:36 +01:00
resource_label_event_spec.rb Use ResourceLabelEvent for tracking label changes 2018-09-07 13:39:20 +00:00
route_spec.rb Updates from rubocop -a 2018-07-09 21:13:08 +08:00
sent_notification_spec.rb Don't show an "Unsubscribe" link in snippet comment notifications 2017-10-09 15:03:05 +02:00
service_spec.rb Move project services log to a separate file 2018-09-06 14:48:31 -03:00
site_statistic_spec.rb Geo: sync disabled wikis. Stage 2 2018-09-25 17:49:39 +03:00
snippet_blob_spec.rb
snippet_spec.rb Use fuzzy search with minimum length of 3 characters where appropriate 2017-11-27 11:29:40 +01:00
spam_log_spec.rb Replace 'Sidekiq::Testing.inline!' with 'perform_enqueued_jobs' 2018-07-23 15:34:54 +11:00
ssh_host_key_spec.rb Backport SSH host key detection code to CE 2018-10-25 13:51:45 +01:00
subscription_spec.rb
system_note_metadata_spec.rb
term_agreement_spec.rb Messaging on terms page when user already accepted 2018-06-04 22:22:11 +02:00
timelog_spec.rb Resolve "Update updated_at on an issue/mr on every issue/mr changes" 2018-06-01 15:09:08 +00:00
todo_spec.rb Clean up ActiveRecord code in TodoService 2018-10-08 15:19:12 +02:00
tree_spec.rb
trending_project_spec.rb
upload_spec.rb Fix typos in comments and specs 2018-11-01 08:59:20 +02:00
user_agent_detail_spec.rb
user_callout_spec.rb Change UserCallout feautre_name to enum 2018-02-03 00:18:25 +01:00
user_custom_attribute_spec.rb
user_interacted_project_spec.rb Operate on ids to avoid unnecessary loading. 2018-03-06 12:53:15 +01:00
user_preference_spec.rb Resolve "Filter discussion (tab) by comments or activity in issues and merge requests" 2018-10-23 09:49:45 +00:00
user_spec.rb [master] Persist only SHA digest of PersonalAccessToken#token 2018-10-29 16:06:45 +00:00
user_status_spec.rb Allow users to set a status 2018-07-30 15:01:26 +02:00
wiki_directory_spec.rb
wiki_page_spec.rb Harden the wiki against missing last_versions 2018-10-17 13:24:52 +01:00