mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
[PR #132] [CLOSED] feat: Webhooks #606
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/132
Author: @PascaleBeier
Created: 4/21/2024
Status: ❌ Closed
Base:
main← Head:feat/webhooks📝 Commits (10+)
5c9ff70feat: First Webhook PoC draft274e159feat: Dispatch Webhooks PoC3b66512fix: typo in webhook configuration scopeafa563dUpdate 2024_04_21_162552_create_webhooks_table.phpd190edeUpdate 2024_04_21_162552_create_webhooks_table.php9a706a0Update 2024_04_21_162544_create_webhook_configurations_table.phpf37865dUpdate 2024_04_21_162544_create_webhook_configurations_table.phpf4e8c78Update DispatchWebhooks.php3683f7aUpdate DispatchWebhooksJob.php22d4dcdUpdate DispatchWebhookForConfiguration.php📊 Changes
18 files changed (+384 additions, -3 deletions)
View changed files
📝
app/Events/Server/Created.php(+4 -1)➕
app/Events/ShouldDispatchWebhooks.php(+8 -0)📝
app/Events/Subuser/Creating.php(+4 -1)📝
app/Events/User/Deleted.php(+4 -1)➕
app/Filament/Resources/WebhookResource.php(+64 -0)➕
app/Filament/Resources/WebhookResource/Pages/CreateWebhookConfiguration.php(+11 -0)➕
app/Filament/Resources/WebhookResource/Pages/EditWebhookConfiguration.php(+19 -0)➕
app/Filament/Resources/WebhookResource/Pages/ListWebhookConfigurations.php(+19 -0)➕
app/Jobs/DispatchWebhookForConfiguration.php(+29 -0)➕
app/Jobs/DispatchWebhooksJob.php(+28 -0)➕
app/Listeners/DispatchWebhooks.php(+16 -0)➕
app/Models/Webhook.php(+11 -0)➕
app/Models/WebhookConfiguration.php(+31 -0)📝
app/Providers/EventServiceProvider.php(+4 -0)➕
app/Services/Webhooks/DiscoverWebhookEventsService.php(+56 -0)➕
app/Traits/Services/HasWebhookPayload.php(+16 -0)➕
database/migrations/2024_04_21_162544_create_webhook_configurations_table.php(+30 -0)➕
database/migrations/2024_04_21_162552_create_webhooks_table.php(+30 -0)📄 Description
Just some drafts and Ideas for discussion.
The job should use a Webhook Service to dispatch the Webhooks according to the configured events column.
@lancepioch This would be my proposed architecture for defining which events can be used for webhooks and how we dispatch them.
I didnt spend too much time on that since I wanted to align this with you guys.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.