renderdag: emit link_line for same-column named parents#1293
renderdag: emit link_line for same-column named parents#1293geraschenko wants to merge 2 commits into
Conversation
With `min_row_height(1)`, connected and disconnected same-column adjacent nodes render identically, with no `│` between connected nodes. See facebook#1292. Before / After (box_drawing, min_row_height=1) for new `BASIC_DISCONNECTED` fixture (`dag: "A B-C"`, heads `["A", "C"]`): ``` Before: o C o B o A After: o C │ o B o A ```
|
Hi @geraschenko! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
Hi, I think it's better to put a blank line instead adding an vertical edge: The format (no vertical lines) is inherited from hg's "experimental.graphshorten=True" feature, which uses this dense format: Could you change it to use blank line? |
|
This pull request has been imported. If you are a Meta employee, you can view this in D106722405. (Because this pull request was imported automatically, there will not be any future comments.) |
79d3490 to
ce87558
Compare
|
@geraschenko has updated the pull request. You must reimport the pull request before landing. |
|
I've updated the PR based on the discussion on discord (starting at https://discord.com/channels/1042527964224557107/1042527965256364157/1509570566812598463). There are two modes for indicating disconnection, using either vertical space (default, a blank line is added when consecutive nodes in the same column are not connected) or horizontal space (when |
|
@quark-zju merged this pull request in 658d950. |
Fixes #1292
The actual fix is the 3-line change to
eden/scm/lib/renderdag/src/render.rs. Everything else is adding a new test fixture (BASIC_DISCONNECTED) and test (basic_disconnected_min_row_height_1) which demonstrates the issue.Before / After (box_drawing, min_row_height=1) for new
BASIC_DISCONNECTEDfixture (dag: "A B-C", heads["A", "C"]):