L7R7 / gitlab-ci-build-statuses

Get the statuses of the CI pipelines in a group in Gitlab CI and display them on an HTML page
Apache License 2.0
10 stars 1 forks source link

Restructure the data storage #4

Closed L7R7 closed 4 years ago

L7R7 commented 4 years ago

At the moment, the app's state is stored as a tuple (Maybe UTCTime, [Result]) inside an IORef, where:

The timestamp is wrapped inside a Maybe to reflect that there might be no successful update yet, in which case the list of results should be empty. Although this hasn't too much impact, the invariant could be encoded more clearly: If there was no update yet, there is neither an timestamp nor a list of results.

The UI also should indicate whether there was no successful update yet or whether the are no results