Monorepo for Tangled tangled.org

appview/pages: show live updating counters for steps #731

merged opened by oppi.li targeting master from push-lstutzylzylk

spindles can now give us detailed logs for start and end of steps. the appview can ingest these logs to indicate live durations for steps. it is implemented like so:

  • the logs handler keeps track of start and end times for each step
  • whenever we recieve a start or end time, we update the html to add a data-start or data-end attribute
  • using some javascript, we print a live updating timer for each step:
    • if only data-start is present: then use Now - Start and update each second
    • if both data-start and data-end are present, then use End - Start

Signed-off-by: oppiliappan me@oppi.li

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3m4g5df6nog22
Interdiff #0 โ†’ #1
appview/pages/pages.go

This patch was likely rebased, as context lines do not match.

appview/pages/templates/fragments/workflow-timers.html

This file has not been changed.

appview/pages/templates/repo/pipelines/fragments/logBlock.html

This file has not been changed.

appview/pages/templates/repo/pipelines/fragments/logBlockEnd.html

This file has not been changed.

appview/pages/templates/repo/pipelines/workflow.html

This file has not been changed.

appview/pipelines/pipelines.go

This patch was likely rebased, as context lines do not match.

History

2 rounds 0 comments
sign up or login to add to the discussion
oppi.li submitted #1
1 commit
expand
appview/pages: show live updating counters for steps
3/3 failed
expand
expand 0 comments
pull request successfully merged
oppi.li submitted #0
1 commit
expand
appview/pages: show live updating counters for steps
3/3 success
expand
expand 0 comments