-
Notifications
You must be signed in to change notification settings - Fork 81
About admin notifications #3371
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
base: 5.0
Are you sure you want to change the base?
Changes from all commits
bfd699b
44c7abe
451caef
3529147
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 |
|---|---|---|
|
|
@@ -33,17 +33,27 @@ | |
|
|
||
| ### Available notification types | ||
|
|
||
| - [`Ibexa\Contracts\FormBuilder\Notifications\FormSubmitted`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-FormBuilder-Notifications-FormSubmitted.html) | ||
| - [`Ibexa\Contracts\Notifications\SystemNotification\SystemNotification`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Notifications-SystemNotification-SystemNotification.html) | ||
| - [`Ibexa\Contracts\OrderManagement\Notification\OrderStatusChange`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-Notification-OrderStatusChange.html) | ||
| - [`Ibexa\Contracts\Payment\Notification\PaymentStatusChange`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Payment-Notification-PaymentStatusChange.html) | ||
| - [`Ibexa\Contracts\Shipping\Notification\ShipmentStatusChange`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Shipping-Notification-ShipmentStatusChange.html) | ||
| - [`Ibexa\Contracts\User\Notification\UserInvitation`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-User-Notification-UserInvitation.html) | ||
| - [`Ibexa\Contracts\User\Notification\UserPasswordReset`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-User-Notification-UserPasswordReset.html) | ||
| - [`Ibexa\Contracts\User\Notification\UserRegister`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-User-Notification-UserRegister.html) | ||
| - `Ibexa\Share\Notification\ContentEditInvitationNotification` | ||
| - `Ibexa\Share\Notification\ContentViewInvitationNotification` | ||
| - `Ibexa\Share\Notification\ExternalParticipantContentViewInvitationNotification` | ||
| Several built-in notification types are available. | ||
| TODO: Some/All are sent by various notifiers like event subscribers. | ||
|
Check failure on line 37 in docs/api/notification_channels.md
|
||
|
|
||
| | Notification type | Default recipients | | ||
| |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------| | ||
| | `Ibexa\AdminUi\Notifier\Notification\UserInvitation` | TODO: Given email address | | ||
| | `Ibexa\AdminUi\Notifier\Notification\UserPasswordReset` | TODO: Given email address | | ||
| | [`Ibexa\Contracts\FormBuilder\Notifications\FormSubmitted`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-FormBuilder-Notifications-FormSubmitted.html) | [Form submit email notification field](customize_email_notifications.md) | | ||
| | [`Ibexa\Contracts\Notifications\SystemNotification\SystemNotification`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Notifications-SystemNotification-SystemNotification.html) | TODO | | ||
| | [`Ibexa\Contracts\OrderManagement\Notification\OrderStatusChange`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-Notification-OrderStatusChange.html) | Order owner | | ||
| | [`Ibexa\Contracts\Payment\Notification\PaymentStatusChange`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Payment-Notification-PaymentStatusChange.html) | Order owner | | ||
| | [`Ibexa\Contracts\Shipping\Notification\ShipmentStatusChange`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Shipping-Notification-ShipmentStatusChange.html) | Order owner | | ||
| | [`Ibexa\Contracts\User\Notification\UserInvitation`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-User-Notification-UserInvitation.html) | TODO: Given email address | | ||
| | [`Ibexa\Contracts\User\Notification\UserPasswordReset`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-User-Notification-UserPasswordReset.html) | TODO: Given email address | | ||
| | [`Ibexa\Contracts\User\Notification\UserRegister`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-User-Notification-UserRegister.html) | TODO | | ||
| | `Ibexa\Share\Notification\ContentEditInvitationNotification`<br>(alias `ibexa_content_edit_invitation`) | TODO: Given users | | ||
| | `Ibexa\Share\Notification\ContentViewInvitationNotification`<br>(alias `ibexa_content_view_invitation`) | TODO: Given users | | ||
| | `Ibexa\Share\Notification\ExternalParticipantContentViewInvitationNotification`<br>(alias `ibexa_external_participant_content_view_invitation`) | TODO: Given email addresses | | ||
|
|
||
| Notice that `Ibexa\AdminUi\Notifier\Notification\UserInvitation` are sent by the back office and don't implement `Ibexa\Contracts\User\Notification\UserInvitation` which is made for front end users and other more generic usages. | ||
|
Check notice on line 55 in docs/api/notification_channels.md
|
||
| Same for the two `UserPasswordReset` in distinct namespaces. | ||
|
|
||
| ### Available notification channels | ||
|
|
||
|
|
@@ -79,6 +89,49 @@ | |
| php bin/console ibexa:debug:config notifications.subscriptions --siteaccess=<siteaccess> | ||
| ``` | ||
|
|
||
| For example, the following command returns the subscription for the `admin` siteaccess. | ||
| You should see subscriptions to handle back office password reset and user invitation, and the share invitations through, at least, `email`. | ||
|
|
||
| ```bash | ||
| php bin/console ibexa:debug:config notifications.subscriptions --siteaccess=admin --json | jq | ||
| ``` | ||
| ```json | ||
| { | ||
| "ibexa_content_edit_invitation": { | ||
| "channels": [ | ||
| "ibexa", | ||
| "email" | ||
| ] | ||
| }, | ||
| "ibexa_content_view_invitation": { | ||
| "channels": [ | ||
| "ibexa", | ||
| "email" | ||
| ] | ||
| }, | ||
| "ibexa_external_participant_content_view_invitation": { | ||
| "channels": [ | ||
| "email" | ||
| ] | ||
| }, | ||
| "Ibexa\\AdminUi\\Notifier\\Notification\\UserPasswordReset": { | ||
| "channels": [ | ||
| "email" | ||
| ] | ||
| }, | ||
| "Ibexa\\AdminUi\\Notifier\\Notification\\UserInvitation": { | ||
| "channels": [ | ||
| "email" | ||
| ] | ||
| }, | ||
| "Ibexa\\Contracts\\FormBuilder\\Notifications\\FormSubmitted": { | ||
| "channels": [ | ||
| "email" | ||
| ] | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| #### Subscription example | ||
|
|
||
| The following example shows how you can deliver notifications about Commerce-related activities through Slack: | ||
|
|
||
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 could expose the default result.
--json | jqis optional, it rturn unformmated but readable JSON by default. I don't know what to do withFormSubmittedfrom ibexa/recipes-dev#257It seems not immediately needed but it could be needed in the rare case someone use the form builder for an admin form.