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

Dispatch DatabaseNotificationsSent from import/export jobs #12879

Merged
merged 2 commits into from
May 22, 2024

Conversation

rossbearman
Copy link
Contributor

@rossbearman rossbearman commented May 21, 2024

Description

Uses the $isEventDispatched parameter on sendToDatabase() to dispatch the DatabaseNotificationsSent event when import or export jobs notify the user.

Ensures that database notifications from import/export will be broadcast when using Echo to update database notifications. Additionally allows developers to take further action when these notifications are created by listening for the event.

Functional changes

  • DatabaseNotificationsSent will be dispatched from jobs created by the CanImportRecords trait and the ExportCompletion job.

@danharrin danharrin added the enhancement New feature or request label May 22, 2024
@danharrin danharrin added this to the v3 milestone May 22, 2024
@danharrin danharrin merged commit 0948be5 into filamentphp:3.x May 22, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants