Skip to content

feat: Replace graphviz with d3 - #4067

Merged
rjsparks merged 22 commits into
ietf-tools:mainfrom
larseggert:remove-dot
Jul 21, 2022
Merged

feat: Replace graphviz with d3#4067
rjsparks merged 22 commits into
ietf-tools:mainfrom
larseggert:remove-dot

Conversation

@larseggert

Copy link
Copy Markdown
Collaborator

This eliminates the datatracker's dependency on graphviz, by using d3 to draw the document dependency graph.

@codecov

codecov Bot commented Jun 8, 2022

Copy link
Copy Markdown

Codecov Report

Merging #4067 (b6b0214) into main (6ba9114) will increase coverage by 0.19%.
The diff coverage is 96.00%.

@@            Coverage Diff             @@
##             main    #4067      +/-   ##
==========================================
+ Coverage   88.20%   88.39%   +0.19%     
==========================================
  Files         295      294       -1     
  Lines       39279    39197      -82     
==========================================
+ Hits        34645    34649       +4     
+ Misses       4634     4548      -86     
Impacted Files Coverage Δ
ietf/group/urls.py 100.00% <ø> (ø)
ietf/group/views.py 90.90% <96.00%> (+2.11%) ⬆️
ietf/utils/pipe.py 82.60% <0.00%> (-4.35%) ⬇️
ietf/utils/text.py 85.71% <0.00%> (-1.25%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8bdbf7c...b6b0214. Read the comment docs.

@larseggert
larseggert marked this pull request as draft June 15, 2022 14:42
@larseggert

Copy link
Copy Markdown
Collaborator Author

Need to figure out why @rjsparks sees different data in the graphs, and why Chrome doesn't like my SVG.

@larseggert

Copy link
Copy Markdown
Collaborator Author

@rjsparks maybe gives this another look? Made a bunch of changes.

@larseggert
larseggert marked this pull request as ready for review July 20, 2022 13:24
@rjsparks

Copy link
Copy Markdown
Member

The legend doesn't explain the colors of the arrows (which dependencies are normative, etc.)

@larseggert

Copy link
Copy Markdown
Collaborator Author

Yes, only on hover. Labels arcs are though.

@rjsparks

Copy link
Copy Markdown
Member

I'm not getting any hover effects on the graph or the legend, even after a complete rebuild. I'll ask Nick to look.

@rjsparks

Copy link
Copy Markdown
Member

just to be clear, I get this for quic, and hoving over anything has no effect:
image
and
image

@NGPixel

NGPixel commented Jul 20, 2022

Copy link
Copy Markdown
Member

I'm not getting any hover effects on the bubbles either.

Comment thread ietf/group/urls.py Outdated
url(r'^history/addcomment/$',views.add_comment),
url(r'^email/$', views.email),
url(r'^deps/(?P<output_type>[\w-]+)/$', views.dependencies),
url(r'^deps.json$', views.dependencies),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll push a fix for this, but watch out for this trap in the future. That bare . is in a regex. You really wanted \.

@rjsparks

Copy link
Copy Markdown
Member

This doesn't look right, but I think we're close enough to bring it in, and can address this (and some protonopia issues I have with the colors) later.

@rjsparks
rjsparks merged commit e465f1f into ietf-tools:main Jul 21, 2022
@larseggert
larseggert deleted the remove-dot branch July 22, 2022 07:56
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants