mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
[PR #1939] [CLOSED] feat: add support for changing docker labels via application api #1665
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/1939
Author: @m41denx
Created: 11/27/2025
Status: ❌ Closed
Base:
main← Head:feat/docker-tags-api📝 Commits (9)
2254c38Docker labels12053f7Rename $payload to $attributes13814b8Ignore falsy docker_labels785124aPrevent docker labels from being a flat array and therefore having empty values3a401a5Added docker labels validation70ae7e9Validate Docker labels rulea5350c2Fix pint and phpstan errors321e9feUpdate regex605b3e7Return "required" validator📊 Changes
7 files changed (+107 additions, -5 deletions)
View changed files
📝
app/Http/Requests/Api/Application/Servers/StoreServerRequest.php(+6 -0)📝
app/Http/Requests/Api/Application/Servers/UpdateServerDetailsRequest.php(+10 -2)📝
app/Models/Server.php(+2 -0)➕
app/Rules/DockerLabel.php(+27 -0)📝
app/Services/Servers/DetailsModificationService.php(+10 -3)📝
app/Transformers/Api/Application/ServerTransformer.php(+1 -0)📝
tests/Integration/Services/Servers/ServerCreationServiceTest.php(+51 -0)📄 Description
This PR adds support for changing docker labels when creating server or modifying its details
Reasons for implementation:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.