[PR #494] [MERGED] Ability to create allocations on EditServer page #794

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

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/494
Author: @rmartinoscar
Created: 7/18/2024
Status: Merged
Merged: 7/20/2024
Merged by: @notAreYouScared

Base: mainHead: feature/CreateAllocationEditServer


📝 Commits (3)

  • 3842b78 Ability to create allocation on edit page + Ability to assign allocation to server on creation
  • b644917 Disable dehydrate for readonly
  • 06475f6 set these to false

📊 Changes

4 files changed (+95 additions, -8 deletions)

View changed files

📝 app/Filament/Resources/ServerResource/Pages/EditServer.php (+4 -2)
📝 app/Filament/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php (+85 -3)
📝 app/Filament/Resources/UserResource/Pages/EditProfile.php (+2 -0)
📝 app/Services/Allocations/AssignmentService.php (+4 -3)

📄 Description

  • Ability to create allocations on EditServer page

  • Ability to assign Allocation to Server on creation (AssignmentService)

  • Add ->dehydrated(false) to readOnly fields so user edited ones do not change on the server as recommended


🔄 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/494 **Author:** [@rmartinoscar](https://github.com/rmartinoscar) **Created:** 7/18/2024 **Status:** ✅ Merged **Merged:** 7/20/2024 **Merged by:** [@notAreYouScared](https://github.com/notAreYouScared) **Base:** `main` ← **Head:** `feature/CreateAllocationEditServer` --- ### 📝 Commits (3) - [`3842b78`](https://github.com/pelican-dev/panel/commit/3842b789052ceec84c57c022e8b991ba56bdee85) Ability to create allocation on edit page + Ability to assign allocation to server on creation - [`b644917`](https://github.com/pelican-dev/panel/commit/b644917df216761d4519e6b62f5853f74f46a9ce) Disable dehydrate for readonly - [`06475f6`](https://github.com/pelican-dev/panel/commit/06475f63caa3373cdd7c944f1d4ab1a90fff1fb4) set these to false ### 📊 Changes **4 files changed** (+95 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `app/Filament/Resources/ServerResource/Pages/EditServer.php` (+4 -2) 📝 `app/Filament/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php` (+85 -3) 📝 `app/Filament/Resources/UserResource/Pages/EditProfile.php` (+2 -0) 📝 `app/Services/Allocations/AssignmentService.php` (+4 -3) </details> ### 📄 Description - [x] Ability to create allocations on EditServer page - [x] Ability to assign Allocation to Server on creation (AssignmentService) - [x] Add `->dehydrated(false)` to readOnly fields so user edited ones do not change on the server as [recommended](https://filamentphp.com/docs/3.x/forms/fields/text-input#making-the-field-read-only) --- <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:51:02 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#794