winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
4.77k stars 189 forks source link

Connections to hidden child don't show connection to parent #6523

Closed MarkMcCulloh closed 1 month ago

MarkMcCulloh commented 1 month ago

I tried this:

class Node {}

let a = new Node() as "a";
let b = new Node() as "b";
let c = new Node() as "c" in b;

nodeof(a).addConnection(
  name: "1",
  source: a,
  target: c,
);

// nodeof(c).hidden = true;

playground link

This happened:

image

Hiding "c" (nodeof(c).hidden = true;) loses the connection entirely

image

Now it's not clear the a and b are technically related

I expected this:

Some sort of connection between a and b

Is there a workaround?

No response

Anything else?

No response

Wing Version

No response

Node.js Version

No response

Platform(s)

No response

Community Notes

ekeren commented 1 month ago

+100

skyrpex commented 1 month ago

I see! Will fix soon.

eladb commented 1 month ago

+1

ainvoner commented 1 month ago

@skyrpex @polamoros sync on this one since I guess you will need the same logic when the resources will be collapsed

monadabot commented 1 month ago

Congrats! :rocket: This was released in Wing 0.74.19.