Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix edge glob bug - #1857

Merged
alixander merged 3 commits into
d2lang:masterfrom
alixander:delete-connection-glob
Mar 7, 2024
Merged

fix edge glob bug#1857
alixander merged 3 commits into
d2lang:masterfrom
alixander:delete-connection-glob

Conversation

@alixander

@alixander alixander commented Mar 6, 2024

Copy link
Copy Markdown
Collaborator

also fixes some d2oracle functions when globs are present

also upgrades go version 1.20 -> 1.22

@alixander
alixander marked this pull request as draft March 6, 2024 20:23
@alixander
alixander force-pushed the delete-connection-glob branch from b1178cb to 9144aec Compare March 7, 2024 00:41
@alixander
alixander marked this pull request as ready for review March 7, 2024 00:47
Comment thread d2ir/d2ir.go
gctx.appliedEdges[ks] = struct{}{}
}
*ea = append(*ea, ea2...)
*ea = append(*ea, e)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

this bug was causing globs to be applied multiple times

Comment thread d2ir/compile.go
ks = d2format.Format(d2ast.MakeKeyPath(BoardIDA(dst)))
}
delete(gctx.appliedFields, ks)
delete(gctx.appliedEdges, ks)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

this bug was causing filters on edges to not try to be applied again. which only surfaced because the other bug was fixed that errantly applied multiple times

@alixander
alixander force-pushed the delete-connection-glob branch from 2b9d2da to 453c243 Compare March 7, 2024 06:51
@alixander
alixander merged commit 808f5c3 into d2lang:master Mar 7, 2024
@alixander
alixander deleted the delete-connection-glob branch March 7, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant