Fix wiki page notes for activity events

What does this MR do and why?

This fixes user activity events for wiki page notes (comments) to work properly; previously the events failed to load with a 500.

This is a fix for a feature which is not available yet, but will get frontend in !171764 (merged)

References

Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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
image

How to set up and validate locally

  1. Create a new wiki page.
  2. Follow mutation examples from this MR to create new notes for project and group wikis.
  3. See the user activity events to be as in the screenshot (the two Commented on... events).
Edited by Piotr Skorupa

Merge request reports

Loading