Skip to content

Add reactive vulnerability status description

What does this MR do?

This MR makes the vulnerability status description update client-side when the vulnerability state changes. The vulnerability state is changed through a dropdown on the right side of the header:

Screenshot
deepin-screen-recorder_Select_area_20200318223621

Note that this MR is only for the vulnerability status description:

Vulnerability status description
DeepinScreenshot_select-area_20200325015448

When the vulnerability status is "detected", the pipeline link is shown:

Description parts
DeepinScreenshot_select-area_20200325015942

When the vulnerability status is anything else, the user avatar for the user that changed that status is shown:

Description parts
DeepinScreenshot_select-area_20200325020308

When the vulnerability state is changed from the dropdown, an API request is made and a new vulnerability object is returned. While this request is being made, a skeleton loader is shown:

Skeleton loader
Peek_2020-03-25_02-06

The vulnerability data only has the user ID; a separate request needs to be made to get the actual user info. While this request is being made, a separate loader is shown for the user avatar only:

User avatar loader
Peek_2020-03-25_02-08

How to test locally

https://gitlab.com/snippets/1956676

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related issue: #196725 (closed)

Edited by Daniel Tian

Merge request reports