-
Notifications
You must be signed in to change notification settings - Fork 28
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
added cyclepoint grouping with subgraphs #1763
Conversation
Def prefer the second one. |
4d5b502
to
7cbfc0a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, partial review so far
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, works nicely 👍
Sadly, GraphViz doesn't stop edges from being routed through graph labels by the looks of it. Not much we can do about that, but we could try adding a white stroke
(SVG lingo for border) around the text to keep it readable, e.g:
element {
fill: black;
stroke-width: 2;
stroke: white;
}
Could do with bumping the font-size of the graph labels a bit, not much, they don't need to be larger than task GraphNode
s, but they do get lost in big graphs rather easily e.g:
added toggle button and styling added e2e test use initialOptions prop to save view state fix nodes undefined error added towncrier entry review amends review amends fix broken e2e tests
8aeea1f
to
7c732f4
Compare
Bumping this forward to the 8.3 meta-release as this should be ready to go in before cylc-flow blockers. It would be good to get a screenshot of this into the "changes" section in cylc-doc: https://cylc.github.io/cylc-doc/nightly_8.3/html/reference/changes.html#cylc-8-3 |
Got a PR against this at markgrahamdawson#5 |
Do you have the flow.cylc file? |
This comment was marked as resolved.
This comment was marked as resolved.
Hmm, I didn't notice any issues with the complex workflow when I tested it. Will need the dot code to debug this. Given that the edges (yes that's right word) lead outside of the subgraph, I expect there may be an issue with the formatting of the subgraph dot code. When I read through the code I think I spotted a missing newline at the end of the subgraph. I thought it was harmless, but it might be worth checking that's not causing issues. |
Also the 3 tasks are showing as "state unknown" while the jobs are showing as running. But these are from an earlier cycle and have actually already succeeded. Might be something to do with simulation mode. Or actually #1635? |
Got a fix for the arrows pointing nowhere (and the console error) in markgrahamdawson#5 |
* Tidy * Mock data: update subscription data for graph view * Graph view: handle negative coords when converting graphviz edge to SVG
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regards that "undefined" error for tasks with the missing cyclePoint
field.
There is a slightly nicer way to fetch the cycle point that is available for all tasks by default (no need to request the cyclePoint
field explicitly) using the "tokens" which are provided for every object in the store. Due to the way tokens are provisioned, the cycle cannot be undefined by accident (it's derived from the ID).
I haven't tested with these changes so worth giving them a spin before committing to them, but hopefully that'll resolve the error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(re-approving)
👍 |
(added a changes entry in cylc-doc cylc/cylc-doc#733) |
Partly addresses #1130
---initial notes on work---
For the time being - figure out a means of drawing a dotted box around nodes that share a cyclepoint.
This can be done with graphviz subgraphs
The graphviz dot code is returned from the getDotCode function in Graph.vue view
Dot code can be rendered with
dot foo.dot -Tpng -o foo.png
ultimately in the svg there will need to be a rect tag added...
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).CHANGES.md
entry included if this is a change that can affect users?.?.x
branch.