Fix "error on credentials page for PATs with deleted group/project"
As project is destroyed related user deletion takes place as the same happens async. Token deletion happens as the part of User deletion. That means even when project is deleted, token is there in database for some minutes around that time if user tries to access admin/credentials page an error is thrown. With this MR we will display the status as Deleted to admin in case the token does not belong to Group or Project Changelog: fixed EE: true
显示
- ee/app/views/shared/credentials_inventory/resource_access_tokens/_resource_access_token.html.haml 4 个添加, 2 个删除...y/resource_access_tokens/_resource_access_token.html.haml
- ee/spec/services/projects/destroy_service_spec.rb 44 个添加, 33 个删除ee/spec/services/projects/destroy_service_spec.rb
- ee/spec/views/shared/credentials_inventory/resource_access_tokens/_resource_access_token.html.haml_spec.rb 22 个添加, 0 个删除...ce_access_tokens/_resource_access_token.html.haml_spec.rb
- spec/services/users/migrate_records_to_ghost_user_service_spec.rb 10 个添加, 0 个删除...vices/users/migrate_records_to_ghost_user_service_spec.rb
加载中
想要评论请 注册 或 登录