Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Bugfix: Fix channels beong incorrectly returned by getDomains#241

Open
mjftw wants to merge 5 commits intoevent-catalog:mainfrom
mjftw:fix-channels-included-in-getdomains
Open

Bugfix: Fix channels beong incorrectly returned by getDomains#241
mjftw wants to merge 5 commits intoevent-catalog:mainfrom
mjftw:fix-channels-included-in-getdomains

Conversation

@mjftw
Copy link

@mjftw mjftw commented Jan 2, 2026

Motivation

I discovered that the dumpCatalog function was returning channels in the list of domains when running it on my catalog.

This seemed wrong, so I dug into the SDK code and found that the getDomains function was also returning channels.

I was able to reproduce this bug with a failing test (added in this PR).

The fix was to include channels in the ignore list of used in getDomains, and the test now passes.

@mjftw mjftw requested a review from boyney123 as a code owner January 2, 2026 23:41
@changeset-bot
Copy link

changeset-bot bot commented Jan 2, 2026

🦋 Changeset detected

Latest commit: 0f1f42b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eventcatalog/sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mjftw mjftw force-pushed the fix-channels-included-in-getdomains branch from 8f785f0 to 9f2cda5 Compare January 2, 2026 23:43
@boyney123
Copy link
Contributor

Hey @mjftw looks like linting failed.

If you run npm run format then push up the changes again, that should fix it!

Thanks for the fix BTW!

@mjftw
Copy link
Author

mjftw commented Jan 13, 2026

Hey @mjftw looks like linting failed.

If you run npm run format then push up the changes again, that should fix it!

Thanks for the fix BTW!

Oops missed that - fixed!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants