Skip to content
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

Bug 1909798 - Large dependency graphs do not work #2283

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

dklawren
Copy link
Collaborator

I added quotes around the bug id and summaries which should with future special characters that Mermaid treats as special.

@dklawren dklawren requested a review from cgsheeh July 25, 2024 21:49
@@ -76,16 +76,16 @@ my $add_link = sub {

$link_text .= $dependson;
$link_text .= ($dependson_status eq 'RESOLVED') ? '[' : '([';
$link_text .= "$dependson";
$link_text .= '"' . $dependson;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems like it's likely to break in the future... could you build up the variable to be quoted in a separate variable and then just $link_text .= '"$dependson_text"'; instead?

@dklawren dklawren requested a review from cgsheeh July 28, 2024 21:24
@dklawren
Copy link
Collaborator Author

dklawren commented Jul 29, 2024

Admittedly the add_link function is getting very complex and in the future I would like to break it apart into smaller manageable chunks.

I have pushed the latest fixes in this PR to bugzilla-dev for you to try out. Here is the original bug causing the breakage in its full, practically unreadable glory. Hopefully most dependency trees will not be this large.

https://bugzilla-dev.allizom.org/showdependencygraph.cgi?display=web&rankdir=LR&showsummary=on&id=1753933

@dklawren dklawren merged commit 6270f78 into mozilla-bteam:master Jul 29, 2024
17 checks passed
@dklawren dklawren deleted the 1909798 branch July 29, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants