go-vela / community

Community Information for Vela (Target's official Pipeline Automation Framework)
https://go-vela.github.io/docs/
Apache License 2.0
23 stars 3 forks source link

visualize build statistics for repos #329

Open jbrockopp opened 3 years ago

jbrockopp commented 3 years ago

Description

Based off of https://github.com/go-vela/community/discussions/321

Add a way for users to consume some basic statistics about builds that have ran for a repo.

Some initial thoughts on the stats to be reported:

Ideally, this information would be consumable in a visual format so this likely involves a new page in the UI.

Value

Definition of Done

Users can visualize some basic build statistics for their repo

Effort (Optional)

N/A

Impacted Personas (Optional)

everyone

jbrockopp commented 3 years ago

Efforts were started on this at the Target/Cargill Hackathon by @Cappo @matt-fevold @jschulz79 and myself.

We first had to augment some functionality to the Vela server to support querying builds by branch and status:

https://github.com/go-vela/server/pull/443

jbrockopp commented 3 years ago

We also started adding a new page to the UI to collect the build statistics and render them on that page in a graph.

Unfortunately, we weren't able to complete this page and the graphs due to timing constraints.

However, our work is still available in a branch:

https://github.com/go-vela/ui/tree/hackathon/insights

jbrockopp commented 3 years ago

We also spent some time to adding the filters from https://github.com/go-vela/server/pull/443 to the existing builds page.

Unfortunately, we weren't able to complete this effort due to timing constraints.

However, our work is still available in a branch:

https://github.com/go-vela/ui/tree/hackathon/filters