mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-24 03:12:01 +03:00
[PR #661] [CLOSED] Add Port check when creating allocations #884
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/661
Author: @notAreYouScared
Created: 10/24/2024
Status: ❌ Closed
Base:
main← Head:issue/655📝 Commits (2)
3d966d8Port checkca97ceeUpdate app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php📊 Changes
3 files changed (+77 additions, -22 deletions)
View changed files
📝
app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php(+28 -9)📝
app/Filament/Resources/ServerResource/Pages/CreateServer.php(+22 -5)📝
app/Filament/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php(+27 -8)📄 Description
Will check the allocations for the given ip and the given ports to see if they already exist in the database, if they do they're removed from the tag list, and a notification is sent telling the user that the port already exists.

This is applied to all three places where you can create an allocation.
Closes https://github.com/pelican-dev/panel/issues/655
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.