mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
[PR #423] [MERGED] Refactor UserTransformers #752
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/423
Author: @Boy132
Created: 6/21/2024
Status: ✅ Merged
Merged: 6/23/2024
Merged by: @Boy132
Base:
main← Head:refactor/user-transformers📝 Commits (6)
1a0b887remove AccountTransformer and update UserTransformer (client api) to match UserTransformer (application api)516f68frename "toVueObject"273334afix tests2fdd0baforgot to rename thisd53efa5backwards compat9d6c5c6fix tests📊 Changes
9 files changed (+33 additions, -51 deletions)
View changed files
📝
app/Http/Controllers/Api/Client/AccountController.php(+2 -2)📝
app/Http/Controllers/Auth/AbstractLoginController.php(+1 -1)📝
app/Models/User.php(+2 -2)📝
app/Transformers/Api/Application/UserTransformer.php(+2 -1)➖
app/Transformers/Api/Client/AccountTransformer.php(+0 -32)📝
app/Transformers/Api/Client/UserTransformer.php(+13 -7)📝
resources/views/templates/wrapper.blade.php(+1 -1)📝
tests/Integration/Api/Application/Users/UserControllerTest.php(+4 -2)📝
tests/Integration/Api/Client/AccountControllerTest.php(+8 -3)📄 Description
Closes #419
Removes the unnecessary
AccountTransformerand updates the client apiUserTransformerto match the application apiUserTransformer. Also renamestoVueObjecttotoReactObject,🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.