Skip to content

Update UI for webhook api changes ICSHWI-9076

John Sparger requested to merge fix-webhook-api-changes-tidy-ICSHWI-9076 into develop

This merge request contains updates to deal with changes to the backend API. See ICSHWI-9076.

There are many changes. I have split them into logical commits, so please step through the commits to see the changes by topic.

Changes:

  • Gitlab-CI pipeline updated to save videos/screenshot artifacts from component tests
  • Gitlab-CI pipeline records the test run and uploads it to Cypress Dashboard
  • The SwaggerAPI hooks have been updated to deal with the changes in the API
  • Some helper classes api/DataTypes have been added to centralize status checks for deployments and commands. They probably need some clean up in a later merge request.
  • More of the API has been mocked for testing
  • The component tests have been updated. New tests for IOCDetails have been added
  • Notifications, DeploymentDetails, and IOCDetails have been updated to deal with API changes and to use the centralized status helpers in api/DataTypes

Some user facing changes:

  • The status messages used for notifications, alerts, etc. related to jobs have been centralized and moved into api/DataTypes. This means that some text, for example in notifications, has changed.
  • The IOC Service Controls now shows both START and STOP buttons. We don't have enough info from the API (such as a timestamp on the last status check) to reliably tell which action we should show.
  • The default Loki log time has been changed from 1 day to 1 hour. This follows a conversation with INFRA where they showed that we are melting the Loki service by looking too far back in the past and doing it in a loop.

Merge request reports