Move away from super.tap usage in user assignment creation
- currently we are relying on a cached check if the user is already assigned to be cached before the work is done to assign the user. Then after that user is added we have a check to see that the user isn't already assigned based on the cache only to retain that knowledge. It would be better to merely call this on success if the user is actually assigned during the service execute, which is what we are trying to measure here. Changing this could also better insulate us from future regressions as it is more declaritive about when and why the work happens. - see https://gitlab.com/gitlab-org/gitlab/-/issues/508955
显示
- ee/app/services/gitlab_subscriptions/user_add_on_assignments/base_create_service.rb 8 个添加, 2 个删除...scriptions/user_add_on_assignments/base_create_service.rb
- ee/app/services/gitlab_subscriptions/user_add_on_assignments/saas/create_service.rb 6 个添加, 7 个删除...scriptions/user_add_on_assignments/saas/create_service.rb
- ee/app/services/gitlab_subscriptions/user_add_on_assignments/saas/create_without_notification_service.rb 0 个添加, 2 个删除...n_assignments/saas/create_without_notification_service.rb
- ee/app/services/gitlab_subscriptions/user_add_on_assignments/self_managed/create_service.rb 7 个添加, 13 个删除...ns/user_add_on_assignments/self_managed/create_service.rb
想要评论请 注册 或 登录