Skip to content
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

feat: add support for wildcards in subscriptions #106

Merged
merged 4 commits into from
May 22, 2023

Conversation

gismya
Copy link
Contributor

@gismya gismya commented May 19, 2023

  • I have added automatic tests where applicable
  • The PR title is suitable as a release note
  • The PR contains a description of what has been changed
  • The description contains manual test instructions

Changes

Adds support of subscription wildcards. Changes the _isSubscriberInterestedIn check to also allow wildcards at the end of the expression.

Closes #101

Test

Using the event hub, register a wildcard event, for example "ftrack.*". Make an update in studio, see that the update event is picked up.

@gismya gismya requested a review from a team as a code owner May 19, 2023 10:04
@jimmycallin
Copy link
Contributor

Can we add a unit test for this?

@gismya gismya requested a review from jimmycallin May 19, 2023 11:44
Copy link
Contributor

@jimmycallin jimmycallin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nicely written tests!

@ffMathy
Copy link
Contributor

ffMathy commented May 22, 2023

Woah, didn't see work had started on this as well! Damn Ftrack, you're on a roll!

@gismya gismya merged commit 9b161ba into main May 22, 2023
@gismya gismya deleted the add-wildcard-subscriptions branch May 22, 2023 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subscribe to all topics from event hub
3 participants