mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-25 03:14:39 +03:00
[PR #411] [CLOSED] Add exception handling to CreateNode/ EditNode & CreateServer/ EditServer #743
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/411
Author: @Boy132
Created: 6/17/2024
Status: ❌ Closed
Base:
main← Head:fix/handle-exceptions📝 Commits (10+)
26fad19add exception handling to server & node7c0f46cturn FilamentExceptionHandler into traitbb52e79run pint5f64244use trycatch instead of FilamentExceptionHandler4d18352don't try to create allocations that already existd908b92run pinted0c072skip ports that are already created2684240Merge branch 'pelican-dev:main' into fix/handle-exceptionse0ef5ccRevert "skip ports that are already created"c29c3f4Revert "don't try to create allocations that already exist"📊 Changes
6 files changed (+88 additions, -16 deletions)
View changed files
📝
app/Filament/Resources/NodeResource/Pages/CreateNode.php(+23 -1)📝
app/Filament/Resources/NodeResource/Pages/EditNode.php(+20 -0)📝
app/Filament/Resources/ServerResource/Pages/CreateServer.php(+20 -5)📝
app/Filament/Resources/ServerResource/Pages/EditServer.php(+19 -0)📝
app/Filament/Resources/UserResource/Pages/EditUser.php(+3 -6)📝
app/Traits/Helpers/FilamentExceptionHandler.php(+3 -4)📄 Description
We probably want to add some more fine tuned exception handling at some point but for now this stops all 500 errors or silent errors and replaces them with a notification.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.