Skip to content

Make Alert details table attributes clickable

David O'Regan requested to merge 230574-make-alert-payload-clickable into master

What does this MR do?

An extremely barebones MVC for: #230574 where we allow certain attributes in the Alert details table to be transformed into clickable links if they are considered safe links.

// Possible link fields now from Alert payload

const allowedFields = [
  'iid',
  'title',
  'severity',
  'status',
  'startedAt',
  'eventCount',
  'monitoringTool',
  'service',
  'description',
  'endedAt',
  'details',
  'hosts',
  'environment',
];

Screenshots (strongly suggested)

Before After
Screenshot_2021-06-08_at_20.05.27 Screenshot_2021-06-08_at_19.58.23

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

Related to #230574

Merge request reports