-
Notifications
You must be signed in to change notification settings - Fork 443
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
fix edge glob bug #1857
fix edge glob bug #1857
Conversation
b1178cb
to
9144aec
Compare
@@ -1094,7 +1094,7 @@ func (m *Map) getEdges(eid *EdgeID, refctx *RefContext, gctx *globContext, ea *[ | |||
} | |||
gctx.appliedEdges[ks] = struct{}{} | |||
} | |||
*ea = append(*ea, ea2...) | |||
*ea = append(*ea, e) |
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.
this bug was causing globs to be applied multiple times
@@ -413,6 +413,7 @@ func (c *compiler) ampersandFilterMap(dst *Map, ast, scopeAST *d2ast.Map) bool { | |||
ks = d2format.Format(d2ast.MakeKeyPath(BoardIDA(dst))) | |||
} | |||
delete(gctx.appliedFields, ks) | |||
delete(gctx.appliedEdges, ks) |
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.
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
2b9d2da
to
453c243
Compare
also fixes some d2oracle functions when globs are present
also upgrades go version 1.20 -> 1.22