Add annotations config generator
What does this MR do?
This method updates generateAnnotationsSeries
to be able to receive annotations and parse them. The method generates markLine
that will be draw as annotation lines. The method calling this method doesn't have annotations yet.
Note 1:
Annotations endpoints are not ready and data cannot be fetched yet. After #211330 (closed) is implemented, this issue will have access to annotations data and hence this issue doesn't actually update the charts UI.
Note 2:
This MR does not change anything on the UI. Hence UX approval is not required.
Screenshots
This is how the annotations will look like after the backend piece is implemented.
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers -
Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
-
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
Mentions #211418 (closed)