-
-
Notifications
You must be signed in to change notification settings - Fork 62
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] Glee subscribes to topics using channel names instead of "channel.address" (v3) #732
Comments
Hey @ivangsa, can you explain this a little more? 🙏 |
In the last two organizations I worked there is one Kafka Broker for PRO and another shared one for Staging, Integration and Dev so topics in the shared broker can not use just the same topic name as in PRO, because there would be more than one, so we use a naming convention: given an asyncapi.yml like: channels:
CustomerEventsChannel:
address: "customer.events" Topics would follow a naming convention similar to this one:
Hope this clarifies the point. |
I think you should be able to solve that if your channel address becomes something like |
ok, thanks @fmvilas if I understood, the
(this would set I hope this empty value This would definitely solve that part. |
Can we have both honored? Many organizations differentiate between production, and various integration environments (yes!) How about |
I am not an experienced developer, but if you feel this is an easy bug I am happy to dive into the mud. Please advise |
Same issue is reported as #721 |
closing since it's a duplicate of #721 |
Describe the bug.
Glee subscribes to topics using channel names instead of "channel.address" (v3)
https://github.com/asyncapi/glee/blob/master/src/adapters/kafka/index.ts#L66
This may be related to #673
Expected behavior
It should subscribe to
channel.address
Also, is very frequent in organizations not to have a dedicated Broker for each environment, and that the channel address depends on the environment.
Maybe this should be configurable somehow..
Screenshots
This function returns channel names, not channel address.
How to Reproduce
🥦 Browser
None
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
No, someone else can work on it
The text was updated successfully, but these errors were encountered: