-
- Downloads
Add rubocop to prevent use of subtransactions
Add a new rubocop rule that prevents direct use of subtransactions, meaning any call to #transaction with the options `requires_new: true`.
Showing
- .rubocop.yml 5 additions, 0 deletions.rubocop.yml
- app/models/application_record.rb 3 additions, 3 deletionsapp/models/application_record.rb
- app/models/application_setting.rb 1 addition, 1 deletionapp/models/application_setting.rb
- app/services/projects/move_deploy_keys_projects_service.rb 1 addition, 1 deletionapp/services/projects/move_deploy_keys_projects_service.rb
- app/services/projects/move_forks_service.rb 1 addition, 1 deletionapp/services/projects/move_forks_service.rb
- app/services/projects/move_lfs_objects_projects_service.rb 1 addition, 1 deletionapp/services/projects/move_lfs_objects_projects_service.rb
- app/services/projects/move_notification_settings_service.rb 1 addition, 1 deletionapp/services/projects/move_notification_settings_service.rb
- app/services/projects/move_project_authorizations_service.rb 1 addition, 1 deletionapp/services/projects/move_project_authorizations_service.rb
- app/services/projects/move_project_group_links_service.rb 1 addition, 1 deletionapp/services/projects/move_project_group_links_service.rb
- app/services/projects/move_project_members_service.rb 1 addition, 1 deletionapp/services/projects/move_project_members_service.rb
- app/services/projects/move_users_star_projects_service.rb 1 addition, 1 deletionapp/services/projects/move_users_star_projects_service.rb
- app/services/users/migrate_to_ghost_user_service.rb 1 addition, 1 deletionapp/services/users/migrate_to_ghost_user_service.rb
- db/post_migrate/20201106134950_deduplicate_epic_iids.rb 1 addition, 1 deletiondb/post_migrate/20201106134950_deduplicate_epic_iids.rb
- ee/app/services/vulnerabilities/create_service.rb 1 addition, 1 deletionee/app/services/vulnerabilities/create_service.rb
- ee/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules.rb 1 addition, 1 deletion...ackground_migration/migrate_approver_to_approval_rules.rb
- lib/gitlab/background_migration/backfill_design_internal_ids.rb 1 addition, 1 deletion...tlab/background_migration/backfill_design_internal_ids.rb
- lib/gitlab/background_migration/backfill_project_repositories.rb 1 addition, 1 deletion...lab/background_migration/backfill_project_repositories.rb
- lib/gitlab/database/with_lock_retries.rb 1 addition, 1 deletionlib/gitlab/database/with_lock_retries.rb
- rubocop/cop/performance/active_record_subtransactions.rb 30 additions, 0 deletionsrubocop/cop/performance/active_record_subtransactions.rb
- spec/rubocop/cop/performance/active_record_subtransactions_spec.rb 62 additions, 0 deletions...cop/cop/performance/active_record_subtransactions_spec.rb
Please register or sign in to comment