-
Notifications
You must be signed in to change notification settings - Fork 27
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
graph with live data and node info #289
Conversation
6cf1a24
to
2f77004
Compare
@MartinRyan - trying this out, I see the labels and job icons at all zoom levels, but I only see the node icons when zoomed in very close. Do you see that? |
I see them at all zoom levels |
I wonder if it is some caching issue. I see the node icons after a reload, but a bit of zooming causes them to disappear again. |
I've tested in chromium, firefox and chrome on linux |
2f77004
to
647c6ab
Compare
Reinstalling and rebuilding the UI from scratch, just in case. |
647c6ab
to
cedb6f9
Compare
@kinow - did you do a bunch of zooming, with the +/- controls? |
Randomly, but just tried again focusing on zooming while it was updated, with no issues. |
Looks good - I want that! (Will try what you suggested on Riot...) |
I had a broken Google Chrome - downloaded the latest and its working properly now 👍 phew. |
cedb6f9
to
b5c4bb8
Compare
As discussed on Riot, I vote to merge this soon. Minimal changes needed are:
|
980f6be
to
eec509a
Compare
The freeze button is really good, and users probably will need it when inspecting the graph closely (as opposed to watching its evolution) but it forces the dagre layout. |
3b7052a
to
72e48d8
Compare
fixed the cross styling and freeze button issues |
I think they are useful, but perhaps others can decide that |
yes, hopefully I've removed that now |
done |
I'm now using the workflowService, though the 5 second update is a little short for the graph. I was using a 10 second interval on the cytoscapeService, perhaps a 10 second interval would be better for the workflow service? |
Hi, I think there is something wrong with the package-lock.json (causing the build failure). I removed and rebuilt the lock but an getting this error in the console:
Perhaps the same issue. |
|
761da38
to
f820aef
Compare
c3fe64c
to
0a0e16c
Compare
grabbable: true, | ||
classes: '' | ||
} | ||
has(edge, 'id') && !isEmpty(edge.id) ? edgeObj.data.id = edge.id : console.debug('workflowUpdated - edge id is empty') |
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.
Hi @MartinRyan can you explain the need for all of these has(edge, <property>)
statements?
This code seems to work fine for me:
each(edges, (edge, key) => {
edgeObj = {
data: {
id: edge.id,
source: edge.source,
target: edge.target,
label: edge.label,
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.
The functions workflowUpdated() getEdges() and getNodes() construct the required cytoscape data format and are a workaround until the graph is supplied with the correct flat data, then they can be removed and the data supplied to the updateGraph() function. This will really speed performance back up again.
These sanity checks prevent the graph breaking if bad data is supplied, obviously if this is never the case then they aren't needed.
Codecov Report
@@ Coverage Diff @@
## master #289 +/- ##
=======================================
Coverage 62.85% 62.85%
=======================================
Files 20 20
Lines 315 315
Branches 17 17
=======================================
Hits 198 198
Misses 113 113
Partials 4 4
Continue to review full report at Codecov.
|
For posterity, this PR has a change in package.json, adding svgo 1.3.2 as devDependency due to svg/svgo#1180 That dependency can be later removed, if vue-cli is updated and includes this dependency or fixes the issue with |
189c633
to
f9cb795
Compare
css made more specific |
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.
Errors in CSS/JS were fixed, Travis is happy, LGTM - and move other issues to follow-up PR's 👍
8b85f5a
to
ad2bf76
Compare
corrected css class name |
bb8161d
to
d3efd1a
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.
OK, let's get this in and refine later. Thanks @MartinRyan.
graph with node info
supersedes #241
PULL REQUEST
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.