-
Notifications
You must be signed in to change notification settings - Fork 11
Enable WithEvent to send an event to the AWS EventBridge #132
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
Merged
andresmgot
merged 10 commits into
grafana:main
from
kishaningithub:feature-add-monitoring-support-via-event-bridge
Mar 24, 2022
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
efcdc1a
Enable WithEvent to send an event to the Amazon EventBridge event bus…
kishaningithub 6b99e50
Add WithEvent as a data source setting
kishaningithub 97453b0
Add WithEvent as a data source setting to the frontend
kishaningithub 11caa31
Remove redundant selectors import
kishaningithub 16c4edc
Retrieve WithEvent from settings and not from apiInput because it is …
kishaningithub 9c41838
Vertically align the WithEvent switch
kishaningithub c75745a
Add unit test for the with event switch
kishaningithub 3c7eb1a
Fix failing with event test by firing click event instead of onchange…
kishaningithub 0bebb56
Fix lint issue by running prettier
kishaningithub 9d88b83
Use declared constant for test identifier in with event test
kishaningithub File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a simple test for this? If you go to ConfigEditor.test.tsx you can take inspiration from the test
should allow user to enter a database. You will need to add adata-testidto this Switch to test it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andresmgot I have added test for this, If you see the test currently fails because the
onChangeis not getting triggered. I am unable to find a reason for this. Need your help in getting this test case passing. Thanks in advance! :-)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's because how
Switchis internally implemented, if you dofireEvent.click(withEventField);rather thanfireEvent.change(withEventField, { target: { checked: true } });it should work.