mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-23 19:08:57 +03:00
[PR #361] [MERGED] Refactor api key permissions #712
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/361
Author: @Boy132
Created: 6/10/2024
Status: ✅ Merged
Merged: 11/6/2024
Merged by: @Boy132
Base:
main← Head:api-revamp/permissions📝 Commits (10+)
58d172duse RESOURCE_NAME for requestsabaab2euse RESOURCE_NAME for transformers3bf142cadd permissions field to api keyf6a229cadd migration for new permissions fielddf7cd60update testsede3a57remove debug log8e208c9set column type to "json"2c05a6eremove default attribute to fix tests19c6545fix default value for permissions897af7bMerge branch 'pelican-dev:main' into api-revamp/permissions📊 Changes
60 files changed (+453 additions, -321 deletions)
View changed files
📝
app/Filament/Resources/ApiKeyResource/Pages/CreateApiKey.php(+18 -1)📝
app/Http/Requests/Admin/Api/StoreApplicationApiKeyRequest.php(+9 -7)📝
app/Http/Requests/Api/Application/Allocations/DeleteAllocationRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/Allocations/GetAllocationsRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/Allocations/StoreAllocationRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/DatabaseHosts/DeleteDatabaseHostRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/DatabaseHosts/GetDatabaseHostRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/DatabaseHosts/StoreDatabaseHostRequest.php(+1 -1)📝
app/Http/Requests/Api/Application/Eggs/GetEggRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/Eggs/GetEggsRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/Mounts/DeleteMountRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/Mounts/GetMountRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/Mounts/StoreMountRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/Nodes/DeleteNodeRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/Nodes/GetNodesRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/Nodes/StoreNodeRequest.php(+1 -1)📝
app/Http/Requests/Api/Application/Roles/DeleteRoleRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/Roles/GetRoleRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/Roles/StoreRoleRequest.php(+2 -1)📝
app/Http/Requests/Api/Application/Servers/Databases/GetServerDatabaseRequest.php(+2 -1)...and 40 more files
📄 Description
Removes all
r_columns for api key permissions and replaces these with a single arraypermissions.Needed for plugins later.
This does not handle #193 as it's only api key permissions.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.