-
Notifications
You must be signed in to change notification settings - Fork 2
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: including 'AWS Event Bridge' in 'Notifiers' #7
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
namespace MageOS\AsyncEventsAWS\Plugin\MageOS\AsyncEventsAdminUi; | ||
|
||
use MageOS\AsyncEventsAdminUi\Ui\Source\Notifiers as Subject; | ||
|
||
class UiSourceNotifiers | ||
{ | ||
public function afterToOptionArray(Subject $subject, $result) | ||
{ | ||
$result[] = [ | ||
'value' => 'event_bridge', | ||
'label' => 'AWS Event Bridge', | ||
]; | ||
return $result; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,8 @@ | |
</argument> | ||
</arguments> | ||
</type> | ||
|
||
<type name="MageOS\AsyncEventsAdminUi\Ui\Source\Notifiers"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this would mean that this module needs to depend on the rather than adding a plugin here, could we make the change in the admin module to either
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've created a very vague test PR mage-os/mageos-async-events#29 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cheers for the feeedback @gowrizrh ,
It doesn't break with it in, but also didn't want expand the admin ui module (as then that would mean all sink types would need adding in there), it also felt a bit of a small plugin to warrant its own module. What is it you need from me to get this over the line? (The project I'm using this on is almost ready, would rather take a packaged version then a fork live) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm back from holidays and approved @gowrizrh's PR in the main module. We can push forward now. I'd like a change in the Admin UI module more, we can finish that now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @adamzero1 I'm back from holidays. I'm happy to approve this to get it across the line if updating the Admin UI module is going to be a while @avstudnitz. Once the admin module lists all event sinks automatically I'll likely revert this change 🙂 |
||
<plugin name="mageos_async_events_aws" type="MageOS\AsyncEventsAWS\Plugin\MageOS\AsyncEventsAdminUi\UiSourceNotifiers" sortOrder="1" disabled="false" /> | ||
</type> | ||
</config> |
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.
the key is
eventbridge
ref: https://github.com/mage-os/mageos-async-events-aws/blob/main/etc/di.xml#L7