Refactor to extract and rename spam_action_response_fields methods
- Introduces HasSpamActionResponseFields concern which can be used in SpammableActions in future MRs. - Renames terminology from 'spam_action_fields' to 'spam_action_response_fields' to make it clear they are used in responses, not requests.
显示
- app/graphql/mutations/concerns/mutations/can_mutate_spammable.rb 1 个添加, 20 个删除...phql/mutations/concerns/mutations/can_mutate_spammable.rb
- app/graphql/mutations/snippets/create.rb 1 个添加, 1 个删除app/graphql/mutations/snippets/create.rb
- app/graphql/mutations/snippets/update.rb 1 个添加, 1 个删除app/graphql/mutations/snippets/update.rb
- app/services/spam/spam_action_service.rb 5 个添加, 3 个删除app/services/spam/spam_action_service.rb
- lib/quality/test_level.rb 1 个添加, 0 个删除lib/quality/test_level.rb
- lib/spam/concerns/has_spam_action_response_fields.rb 37 个添加, 0 个删除lib/spam/concerns/has_spam_action_response_fields.rb
- spec/graphql/mutations/concerns/mutations/can_mutate_spammable_spec.rb 1 个添加, 1 个删除...mutations/concerns/mutations/can_mutate_spammable_spec.rb
- spec/lib/quality/test_level_spec.rb 2 个添加, 2 个删除spec/lib/quality/test_level_spec.rb
- spec/spam/concerns/has_spam_action_response_fields_spec.rb 35 个添加, 0 个删除spec/spam/concerns/has_spam_action_response_fields_spec.rb
- spec/support/shared_examples/graphql/mutations/can_mutate_spammable_examples.rb 4 个添加, 4 个删除...amples/graphql/mutations/can_mutate_spammable_examples.rb
想要评论请 注册 或 登录