-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show within-target progress when using tar_watch for dynamic branching #273
Comments
A bit geeky, but that would be really great (and fun)! |
I'm still thinking this over but maybe I really like the dev version of BS4 also, so I took that for a spin below... Dev version of bs4DashScreen.Recording.2021-01-20.at.2.56.04.PM.mov |
I like #273 (comment). We will need to add more information to |
I think it could be a good addition to the dashboard given how important dynamic branching is to targets as a whole - so long as adding branch-wise progress updates to |
Yeah, I'm actually really stoked for this! Most of the hassle is refactoring the methods of the |
#276 should expose enough progress info to build this new feature in the app. |
We now have specific information on errored and cancelled branches too. How should we display that? |
Maybe just a colored/stacked bar chart in |
I do like the formal progress bars, they don't need to be animated, even thought the animation just gives the visual perception of activity (the bars only physically progress when the app is updated and there is progress to add). Want me to pull in the changes are try to reproduce something akin to what I hacked together above? I feel obliged (and I have some ideas in my head) to offer a PR since I did suggest this idea. |
Sure, those earlier sketches were really nice. I think that could help our pre-PR discussion.
That's an interesting issue. If we do static visuals, here are a couple thoughts:
I don't like (1) as much as before. (2) would look nice because we could match the boxes with the existing color scheme. (3) could conserve real estate but may awkwardly cram a lot together. |
Ahh yes, good point about the false impression of activity. I don't think the animation is necessary anyway, so we can forget that. I agree that something like 2/3 would be good. I've already started to play around with some aesthetics, but I think I need to wait for #276 to be merged before I can actually try implementing anything. |
Should be merged now. Thanks for the help. |
Another consideration: for the sake of performance, |
I was working on a > tar_progress_branches()
# A tibble: 2 x 6
name branches running built canceled errored
<chr> <int> <int> <int> <int> <int>
1 y 2 0 2 0 0
2 z 2 0 1 0 1 And now I think we should just stick this table in the app instead of a graph. I know it is not as fancy, but it is clear, concise, and complete. And we can always add colors to the cells. |
for the table in the shiny, it could be a |
That's a cool feature, I didn't know about it. |
But I would actually prefer |
I got started on the app part in #278. @mattwarkentin, I know we had discussed a PR from you before, but today I ended up with such a clear idea of what I want this to look like. Sorry about that. If you have specific stylistic changes, please let me know or feel free to submit downstream PRs. |
That's okay, you get final say. Does the
|
It should be the total number of branches that |
Doesn't the table also suffer from the same issue that it only includes what |
Is there other information we would want to include? |
Maybe not, but I thought the motivation for the table was that progress bars would be incomplete or misleading. |
The table includes the same data (potentially more actually) but fewer assumptions: for example, that the pipeline is running or the progress bars are going to reach 100%. |
Hmm, fair enough. I would've thought |
They are only interesting when the pipeline is running, but they cannot promise that a pipeline is running. The hard guarantee is all I want to avoid. |
Prework
Question
Hi @wlandau,
I was wondering if it would be reasonable to have it so the dependency graph in
tar_watch()
could somehow show within-target progress when using dynamic branching. In other words, somehow show how many branches out of N total branches have been built.I suppose this would mean adding some functionality to
tar_visnetwork()
since this powerstar_watch()
. But it seems to me that at runtime a few things are known:How many total branches belong to a given target
How many of those branches requiring being built/re-built
tar_watch()
knows once ALL branches are built for a target, but not at a more granular level.If this information could be shared in some way with
tar_visnetwork()
, it would be nice to present it to give a sense of within-target progress. Also, with dynamic branching sometimes we may not know how many branches we are even creating, so one cannot easily figure out the progress just by looking at how many branches have finished so far by the textual progress updates.Thoughts?
The text was updated successfully, but these errors were encountered: