Skip to content

Hide the Edit action on system-generated events

What does this MR do and why?

Checks if the event is a comment generated by the user and hides edit option for other events.

Screenshots or screen recordings

before after
before_system_generated after_system_generated

How to set up and validate locally

  1. Navigate to Monitor > Incidents page
  2. Create new or open an existing incident
  3. Navigate to Timeline tab of the incident
  4. Click "Add new timeline event" button at the bottom
  5. Try to edit the first event @user created an incident - it shouldn't be possible
  6. Try to edit a comment that you added - should be possible

It also shouldn't be possible to edit any note about a severity change or a note about closing the incident.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #371528 (closed)

Edited by Paulina Sedlak-Jakubowska

Merge request reports