[PR #548] [MERGED] Implement Webhooks #825

Closed
opened 2026-02-04 18:53:38 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/548
Author: @colindecarlo
Created: 8/14/2024
Status: Merged
Merged: 10/27/2024
Merged by: @notAreYouScared

Base: mainHead: feat-webhooks


📝 Commits (10+)

  • fc1c51e feat: First Webhook PoC draft
  • ca1004d feat: Dispatch Webhooks PoC
  • b710dd7 fix: typo in webhook configuration scope
  • b458612 Update 2024_04_21_162552_create_webhooks_table.php
  • 72a2c3c Update 2024_04_21_162552_create_webhooks_table.php
  • cd4aaf6 Update 2024_04_21_162544_create_webhook_configurations_table.php
  • b66ca7a Update 2024_04_21_162544_create_webhook_configurations_table.php
  • 4e1ecac Update DispatchWebhooks.php
  • db7ffd4 Update DispatchWebhooksJob.php
  • 73507f2 Update DispatchWebhookForConfiguration.php

📊 Changes

46 files changed (+781 additions, -536 deletions)

View changed files

app/Events/Server/Created.php (+0 -19)
app/Events/Server/Creating.php (+0 -19)
app/Events/Server/Deleted.php (+0 -19)
app/Events/Server/Deleting.php (+0 -19)
app/Events/Server/Saved.php (+0 -19)
app/Events/Server/Saving.php (+0 -19)
app/Events/Server/Updated.php (+0 -19)
app/Events/Server/Updating.php (+0 -19)
app/Events/Subuser/Created.php (+0 -19)
app/Events/Subuser/Creating.php (+0 -19)
app/Events/Subuser/Deleted.php (+0 -19)
app/Events/Subuser/Deleting.php (+0 -19)
app/Events/User/Created.php (+0 -19)
app/Events/User/Creating.php (+0 -19)
app/Events/User/Deleted.php (+0 -19)
app/Events/User/Deleting.php (+0 -19)
app/Filament/Resources/WebhookResource.php (+71 -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)

...and 26 more files

📄 Description

Changes:

  • Remove unused Server, Subuser, User, EggVariable observers
  • Remove unused Server, Subuser, and User events
  • Add WebhookConfiguration model to store where webhooks should be sent
  • Add Webhook model to store previously executed webhooks
  • Add Webhook Resource for Filament
  • Add event new event listener (DispatchWebhooks) for eloquent model changes and our own app's events
  • Fix weird issue with unused field_type for eggs

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/548 **Author:** [@colindecarlo](https://github.com/colindecarlo) **Created:** 8/14/2024 **Status:** ✅ Merged **Merged:** 10/27/2024 **Merged by:** [@notAreYouScared](https://github.com/notAreYouScared) **Base:** `main` ← **Head:** `feat-webhooks` --- ### 📝 Commits (10+) - [`fc1c51e`](https://github.com/pelican-dev/panel/commit/fc1c51e7345eeb432ce38eebddd5979c5938b31c) feat: First Webhook PoC draft - [`ca1004d`](https://github.com/pelican-dev/panel/commit/ca1004d41d9edb4fe71d2af775b995870325eef0) feat: Dispatch Webhooks PoC - [`b710dd7`](https://github.com/pelican-dev/panel/commit/b710dd78bb7309ac3b1de3d4672c60ae0e604594) fix: typo in webhook configuration scope - [`b458612`](https://github.com/pelican-dev/panel/commit/b45861269b52b02b383399aa7e5d7d0d822fab9f) Update 2024_04_21_162552_create_webhooks_table.php - [`72a2c3c`](https://github.com/pelican-dev/panel/commit/72a2c3c41258c40f4bf3ce7d322399e32b3f3795) Update 2024_04_21_162552_create_webhooks_table.php - [`cd4aaf6`](https://github.com/pelican-dev/panel/commit/cd4aaf683091831b7eb9edd6b8dfa186d3d0ebb7) Update 2024_04_21_162544_create_webhook_configurations_table.php - [`b66ca7a`](https://github.com/pelican-dev/panel/commit/b66ca7ada3e640a55ced06060c311771f1028fc0) Update 2024_04_21_162544_create_webhook_configurations_table.php - [`4e1ecac`](https://github.com/pelican-dev/panel/commit/4e1ecacb00d2541eb574539f85df547d7cb3a6e3) Update DispatchWebhooks.php - [`db7ffd4`](https://github.com/pelican-dev/panel/commit/db7ffd41bf1b6626d2d7c70f0ebd1904c19cdb76) Update DispatchWebhooksJob.php - [`73507f2`](https://github.com/pelican-dev/panel/commit/73507f208b20cf082fea6fbe5098fff5c66b992c) Update DispatchWebhookForConfiguration.php ### 📊 Changes **46 files changed** (+781 additions, -536 deletions) <details> <summary>View changed files</summary> ➖ `app/Events/Server/Created.php` (+0 -19) ➖ `app/Events/Server/Creating.php` (+0 -19) ➖ `app/Events/Server/Deleted.php` (+0 -19) ➖ `app/Events/Server/Deleting.php` (+0 -19) ➖ `app/Events/Server/Saved.php` (+0 -19) ➖ `app/Events/Server/Saving.php` (+0 -19) ➖ `app/Events/Server/Updated.php` (+0 -19) ➖ `app/Events/Server/Updating.php` (+0 -19) ➖ `app/Events/Subuser/Created.php` (+0 -19) ➖ `app/Events/Subuser/Creating.php` (+0 -19) ➖ `app/Events/Subuser/Deleted.php` (+0 -19) ➖ `app/Events/Subuser/Deleting.php` (+0 -19) ➖ `app/Events/User/Created.php` (+0 -19) ➖ `app/Events/User/Creating.php` (+0 -19) ➖ `app/Events/User/Deleted.php` (+0 -19) ➖ `app/Events/User/Deleting.php` (+0 -19) ➕ `app/Filament/Resources/WebhookResource.php` (+71 -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) _...and 26 more files_ </details> ### 📄 Description Changes: * Remove unused Server, Subuser, User, EggVariable observers * Remove unused Server, Subuser, and User events * Add WebhookConfiguration model to store where webhooks should be sent * Add Webhook model to store previously executed webhooks * Add Webhook Resource for Filament * Add event new event listener (DispatchWebhooks) for eloquent model changes and our own app's events * Fix weird issue with unused field_type for eggs --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 18:53:38 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#825