mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
[PR #1236] [MERGED] chore: Refactor Mounts
#1268
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/1236
Author: @rmartinoscar
Created: 4/12/2025
Status: ✅ Merged
Merged: 5/9/2025
Merged by: @notAreYouScared
Base:
main← Head:chore/MountNodePivot📝 Commits (3)
0aa7114RefactorMounts23c7707Merge branch 'main' into chore/MountNodePivota376555Move tomountablesto follow Laravel guidelines📊 Changes
10 files changed (+142 additions, -47 deletions)
View changed files
📝
app/Filament/Admin/Resources/ServerResource.php(+26 -0)📝
app/Filament/Admin/Resources/ServerResource/Pages/CreateServer.php(+2 -10)📝
app/Filament/Admin/Resources/ServerResource/Pages/EditServer.php(+2 -10)📝
app/Models/Egg.php(+6 -0)📝
app/Models/Mount.php(+7 -7)➖
app/Models/MountNode.php(+0 -14)📝
app/Models/Node.php(+3 -3)📝
app/Models/Server.php(+2 -3)📝
app/Providers/AppServiceProvider.php(+1 -0)➕
database/migrations/2025_05_01_193002_move_to_mountables.php(+93 -0)📄 Description
Move
mount_node,server_mount&egg_mountinto a singlemodel_has_mountstable!eggs && nodes = available to all servers with associated nodes regardless of eggs
eggs && !nodes = available to all servers with associated eggs regarless of nodes
!eggs && !nodes = available to all servers regardless of eggs or nodes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.