mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
[PR #817] [MERGED] Add database notifications #988
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/panel/pull/817
Author: @Boy132
Created: 12/11/2024
Status: ✅ Merged
Merged: 12/12/2024
Merged by: @Boy132
Base:
main← Head:feature/database-notifications📝 Commits (10+)
091d0b4add database notifications to all panelse9ab70cadd successful param to Installed event1358c01add listener for Installed event6153beecreate event for subuser creationc1dde6eadd listener for SubUserAdded event9cbeebcalways send Installed event79eab82create event for subuser removal75337ceadd listener for SubUserRemoved eventf2d676badd prefix to server named4fa109remove view action from SubUserRemoved notification📊 Changes
16 files changed (+176 additions, -45 deletions)
View changed files
📝
app/Events/Server/Installed.php(+1 -1)➕
app/Events/Server/SubUserAdded.php(+17 -0)➕
app/Events/Server/SubUserRemoved.php(+18 -0)📝
app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php(+5 -15)➕
app/Listeners/Server/ServerInstalledListener.php(+29 -0)➕
app/Listeners/Server/SubUserAddedListener.php(+29 -0)➕
app/Listeners/Server/SubUserRemovedListener.php(+17 -0)📝
app/Notifications/AddedToServer.php(+18 -5)📝
app/Notifications/RemovedFromServer.php(+18 -5)📝
app/Notifications/ServerInstalled.php(+16 -7)📝
app/Providers/Filament/AdminPanelProvider.php(+1 -0)📝
app/Providers/Filament/AppPanelProvider.php(+1 -0)📝
app/Providers/Filament/ServerPanelProvider.php(+1 -0)📝
app/Services/Subusers/SubuserCreationService.php(+2 -6)📝
app/Services/Subusers/SubuserDeletionService.php(+2 -5)📝
tests/Feature/Webhooks/ProcessWebhooksTest.php(+1 -1)📄 Description
Database notifications are sent for the following events:
(Note: the mail sending for subusers is now also handled via events)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.