Add AntiAbuse::Reports::LabelEntity to serialize abuse report labels
Separate entities to serialize project/group labels and abuse report labels. This separation is needed because abuse report labels will be migrated to not have project_id and group_id attributes so using LabelEntity to serialize abuse report records will not work.
显示
- app/serializers/admin/abuse_report_entity.rb 1 个添加, 1 个删除app/serializers/admin/abuse_report_entity.rb
- app/serializers/anti_abuse/reports/label_entity.rb 8 个添加, 0 个删除app/serializers/anti_abuse/reports/label_entity.rb
- app/serializers/issuables/base_label_entity.rb 16 个添加, 0 个删除app/serializers/issuables/base_label_entity.rb
- app/serializers/label_entity.rb 1 个添加, 11 个删除app/serializers/label_entity.rb
- spec/factories/abuse_reports.rb 4 个添加, 0 个删除spec/factories/abuse_reports.rb
- spec/serializers/admin/abuse_report_entity_spec.rb 1 个添加, 1 个删除spec/serializers/admin/abuse_report_entity_spec.rb
- spec/serializers/anti_abuse/reports/label_entity_spec.rb 27 个添加, 0 个删除spec/serializers/anti_abuse/reports/label_entity_spec.rb
- spec/serializers/label_entity_spec.rb 30 个添加, 0 个删除spec/serializers/label_entity_spec.rb
- spec/serializers/label_serializer_spec.rb 1 个添加, 1 个删除spec/serializers/label_serializer_spec.rb
加载中
想要评论请 注册 或 登录