Skip to content

Refactor note model to use more concerns

Jarka Košanová requested to merge 458258-create-anti-abuse-notes-table into master

What does this MR do and why?

It extracts parts of Note model into concerns which can be reused by other similar models.

Motivation: We will be introducing Abuse::Reports::Note model for comments on Abuse reports. That model, however, won't fully use all the fields of Note model, some of them do not make sense in the context of abuse report notes. Therefore we need to prepare concerns that contain the code we need to make everything working. Besides that, Note model is very big and it will improve the code readability.

Follow-up refactoring MR will come (services, possibly more model concerns).

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.

Related to #458258

Edited by Jarka Košanová

Merge request reports