Add AntiAbuse::Reports::LabelEntity to serialize abuse report labels
Needed for https://gitlab.com/gitlab-org/gitlab/-/issues/430957+.
What does this MR do and why?
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 (see Store abuse report labels separate from project... (!168186 - merged)) so using
LabelEntity
(exposes project_id
and group_id
) to serialize abuse report records will not work.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.