Add Metadata::Presenter to generate a diff for a Metadata::Comparison object
What does this MR do and why?
Describe in detail what your merge request does and why.
Add a Metadata::Presenter
class for generating strings representing the diff of each GitLab component.
Use this new class in the CoordinatedPipelineDiffsNotification
class. In a follow-up, the Metadata::Presenter
class can also be used to generate the diff for the incident rollback comment (to be done as part of https://gitlab.com/gitlab-com/gl-infra/reliability/-/issues/15980), which is added by the bot to a new incident.
The current diff generated by CoordinatedPipelineDiffsNotification
looks like this:
The diff generated by Metadata::Presenter
looks the same.
Author Check-list
- [-] Has documentation been updated?
Edited by Mayra Cabrera