Guard note components against `null` author field on note
What does this MR do and why?
We plan to make author
field on Note
type nullable. This MR adds changes to frontend to handle the null
author gracefully on Work Items and Design management
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
No visual changes
How to set up and validate locally
- Open issues list and create a new objective from the dropdown
- Leave a few comments on the objective
- Change https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/work_items/components/notes/work_item_note.vue#L111 to
return {}
- Make sure there are no console errors or visual glitches on work item view.
- Open any issue
- Upload a design
- Leave a few comments on the design
- Change https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/design_management/components/design_notes/design_note.vue#L104 to
return {}
- Make the same checks on design notes
Edited by Natalia Tepluhina