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

fix: event manager cyclic dep #47

Merged
merged 4 commits into from
May 30, 2024
Merged

Conversation

suhussai
Copy link
Contributor

@suhussai suhussai commented May 29, 2024

Issue # (if applicable)

Closes #.

Reason for this change

This fixes a bug where the addTargetToEvent(...) function was causing the EventManager stack to be dependent on stacks that used that function.

Description of changes

Instead of creating the rule in the EventManager stack, this change now creates the rule in the calling stack.

Description of how you validated changes

Added lots of tests!

Checklist


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

- Modify EventManager.addTargetToEvent to accept a scope parameter
- Get or create event rules within the provided scope
- This ensures that event rules are created in the caller's scope
  instead of the eventManager's scope
- Add tests to verify the behavior of EventManager with different
  configurations
Copy link
Contributor

@tobuck-aws tobuck-aws left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks, Syed!

@suhussai suhussai merged commit db8b822 into main May 30, 2024
8 checks passed
@suhussai suhussai deleted the fix/event-manager-cyclic-dep branch May 30, 2024 20:19
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.

2 participants