wing icon indicating copy to clipboard operation
wing copied to clipboard

confusing map view, putJson appears with no apparent reason

Open ekeren opened this issue 1 year ago • 0 comments

I tried this:

bring cloud;

let b = new cloud.Bucket();
let sqs = new cloud.Queue();
b.onCreate(inflight (f) => {
  sqs.push(f);
});

sqs.setConsumer(inflight (m) => {
  log("{m}");
});

let fn = new cloud.Function(inflight () => {
  b.put("file.txt", "Hello World");
});

This happened:

image

I expected this:

  1. Not to see putJson
  2. The oncreate handler should have a connection to the queue (via push) - (probably already covered by https://github.com/winglang/wing/issues/6458)

Is there a workaround?

No response

Anything else?

No response

Wing Version

0.73.46

Node.js Version

No response

Platform(s)

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.

ekeren avatar May 15 '24 11:05 ekeren