[PR #1236] [MERGED] chore: Refactor Mounts #1268

Closed
opened 2026-02-05 18:08:41 +03:00 by OVERLORD · 0 comments
Owner

📋 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: mainHead: chore/MountNodePivot


📝 Commits (3)

  • 0aa7114 Refactor Mounts
  • 23c7707 Merge branch 'main' into chore/MountNodePivot
  • a376555 Move to mountables to 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_mount into a single model_has_mounts table

!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.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/1236 **Author:** [@rmartinoscar](https://github.com/rmartinoscar) **Created:** 4/12/2025 **Status:** ✅ Merged **Merged:** 5/9/2025 **Merged by:** [@notAreYouScared](https://github.com/notAreYouScared) **Base:** `main` ← **Head:** `chore/MountNodePivot` --- ### 📝 Commits (3) - [`0aa7114`](https://github.com/pelican-dev/panel/commit/0aa7114c160342b311cb9e006abccb4c34e14386) Refactor `Mounts` - [`23c7707`](https://github.com/pelican-dev/panel/commit/23c7707f28bdd16f0ac27365c82245c855b56b88) Merge branch 'main' into chore/MountNodePivot - [`a376555`](https://github.com/pelican-dev/panel/commit/a3765559ddc80f6a930d214e5cf6b0ed124d0fef) Move to `mountables` to follow Laravel guidelines ### 📊 Changes **10 files changed** (+142 additions, -47 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description Move `mount_node`, `server_mount` & `egg_mount` into a single `model_has_mounts` table !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 --- <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-05 18:08:41 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel-pelican-dev#1268