Skip to content
Snippets Groups Projects
Select Git revision
  • 521264-vue3-migration-devops_adoption_overview_table_spec
  • 510851-policies-integration-tests-skip-ci
  • jnnkl-multi-thread-integration
  • check-tag-rules-when-deleting-container-images
  • gems_checksum_lock
  • 521041/aslota-rename-custom-status-widget-to-status-widget
  • master default protected
  • rails-next protected
  • ruby-next protected
  • alvin-master-patch-446b
  • overdue-finalize-background-migration--backfill-protected-environment-deploy-access-levels-protected-environment-group-id
  • 511232-add-severity-override-metadata-to-mr-widget-calls
  • 515996-add-immutable-to-tag-rules
  • cherryhan-master-patch-bd7d
  • issue_419332
  • graphql-security-dashboard
  • gkatz_add_vulnerability_namespace_stats_table
  • ysiev-vulnerability-namespace-statistics-update-service
  • 509046-unauthorized-access-to-reading-branch
  • gkatz_add_namespace_statistics_adjustment_service
  • v17.7.6-ee protected
  • v17.8.4-ee protected
  • v17.9.1-ee protected
  • v17.8.3-ee protected
  • v17.7.5-ee protected
  • v17.9.0-ee protected
  • v17.9.0-rc42-ee protected
  • v17.6.5-ee protected
  • v17.7.4-ee protected
  • v17.8.2-ee protected
  • v17.6.4-ee protected
  • v17.7.3-ee protected
  • v17.8.1-ee protected
  • v17.8.0-ee protected
  • v17.7.2-ee protected
  • v17.8.0-rc42-ee protected
  • v17.5.5-ee protected
  • v17.6.3-ee protected
  • v17.7.1-ee protected
  • v17.7.0-ee protected
40 results

destroy_service_spec.rb

  • Stan Hu's avatar
    bd135d23
    Nullify merge request and user associations in batches on user deletion · bd135d23
    Stan Hu authored
    We have been seeing failures to delete a user because the foreign key
    relation with `users.id` and `merge_requests.updated_by_id` is failing
    to nullify within the 15-second statement timeout. Just as we did with
    nullifying IDs in batches with the issues table in
    !84709, we need
    do the same with `merge_requests.updated_by_id` and
    `merge_requests.assignee_id`. Note that `author_id` and
    `merge_user_id` are assigned to the ghost user.
    
    Relates to #358760
    
    Changelog: performance
    Verified
    bd135d23
    History
    Nullify merge request and user associations in batches on user deletion
    Stan Hu authored
    We have been seeing failures to delete a user because the foreign key
    relation with `users.id` and `merge_requests.updated_by_id` is failing
    to nullify within the 15-second statement timeout. Just as we did with
    nullifying IDs in batches with the issues table in
    !84709, we need
    do the same with `merge_requests.updated_by_id` and
    `merge_requests.assignee_id`. Note that `author_id` and
    `merge_user_id` are assigned to the ghost user.
    
    Relates to #358760
    
    Changelog: performance
Code owners
Assign users and groups as approvers for specific file changes. Learn more.