Skip to content

Remove middot for event item when there is no created at date

Daniel Tian requested to merge 390073-remove-middot-for-event-item into master

What does this MR do and why?

On the finding modal, there are several note cards that shows a user and a created at timestamp. The timestamp is optional, but when it is not provided, the dot in between the username and timestamp is still shown. This makes it look like something should be shown after the username but is not. This MR removes the dot if there is no timestamp:

Before After
ksnip_20230317-154822 ksnip_20230317-155008

How to set up and validate locally

The current production data will always show the timestamp, and this MR is prep work for a future MR. We will need to modify the data by hand to see it in action. Go to any pipeline security tab and use DevTools to modify the data like so:

2023-03-17_16-23-15

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 #390073 (closed)

Edited by Daniel Tian

Merge request reports