Lance Pioch
5b468c21ae
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/DatabaseHostResource/Pages/CreateDatabaseHost.php
# app/Filament/Resources/DatabaseHostResource/Pages/EditDatabaseHost.php
# app/Filament/Resources/EggResource/RelationManagers/ServersRelationManager.php
# app/Filament/Resources/NodeResource.php
# app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/NodeResource/RelationManagers/NodesRelationManager.php
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
2024-07-01 14:54:12 -04:00
Boy132
133b94ab08
Add missing user timezone stuff ( #446 )
2024-06-29 23:42:46 +02:00
Lance Pioch
45fcc2a09a
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/DatabaseHostResource/Pages/CreateDatabaseHost.php
# app/Filament/Resources/DatabaseHostResource/Pages/EditDatabaseHost.php
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
# app/Filament/Resources/ServerResource/Pages/EditServer.php
# app/Filament/Resources/ServerResource/Pages/ListServers.php
# app/Http/Requests/Admin/Node/AllocationFormRequest.php
# app/Http/Requests/Api/Application/Allocations/StoreAllocationRequest.php
# app/Models/AuditLog.php
# app/Models/Server.php
2024-06-26 21:52:05 -04:00
Lance Pioch
19c7b4d044
Clean up
2024-06-26 21:44:06 -04:00
Lance Pioch
efb834c8f7
Combine Server states and statuses and resolve #362 ( #417 )
...
* Simplify states and statuses and resolve #362
# Conflicts:
# app/Models/Server.php
* Move Random button...
Moves button to the info tab
---------
Co-authored-by: notCharles <charles@pelican.dev>
2024-06-25 20:30:06 -04:00
Lance Pioch
cf37994c3b
Allow user to switch time zones ( #332 )
...
* Description not required
* Overwrite to use user’s time zone
* Allow users to change time zones
* Update app/Filament/Resources/UserResource/Pages/EditProfile.php
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
* Pint fix
---------
Co-authored-by: Charles <charles@pelican.dev>
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
2024-06-25 20:17:08 -04:00
Boy132
70c31eef8f
Refactor UserTransformers ( #423 )
...
* remove AccountTransformer and update UserTransformer (client api) to match UserTransformer (application api)
* rename "toVueObject"
* fix tests
* forgot to rename this
* backwards compat
* fix tests
2024-06-23 16:33:18 +02:00
Boy132
7813b6060c
Make oauth nullable & remove middleware from oauth callback ( #418 )
...
* make oauth nullable
* fix oauth callback middleware
2024-06-18 22:05:08 +02:00
Lance Pioch
d4484f5254
Handle nulls
2024-06-18 10:59:50 -04:00
Lance Pioch
958e8fac8a
Simplify states and statuses and resolve #362
2024-06-17 18:18:48 -04:00
Lance Pioch
7986505b99
Don’t report status anymore
2024-06-17 18:15:56 -04:00
Lance Pioch
ba5b81cf2d
Show localhost
2024-06-17 18:15:45 -04:00
MartinOscar
276b51f477
Remove locationId in MakeNodeCommand ( #405 )
...
* Concat + Default
* Concat + Default + Enforce scheme
* fix typo
---------
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
2024-06-17 08:51:04 -04:00
MartinOscar
aa08e774a1
Fix varchar(191) by replacing with 255 #135 ( #376 )
...
* Add Nullable
* Edit filament & AppServiceProvider
* Pint
* Patch tests
* Actually patching tests
* Actually patching tests
* Remove length
* Remove defaultStringLength
* Let’s see the differences
---------
Co-authored-by: Lance Pioch <git@lance.sh>
2024-06-16 13:56:18 -04:00
Lance Pioch
738707b251
Add validation rule
2024-06-16 12:30:28 -04:00
Lance Pioch
a8699704de
Fix return
2024-06-16 11:56:21 -04:00
Lance Pioch
f57232bc23
Fix tests
2024-06-16 11:50:08 -04:00
Lance Pioch
44e0dd3e09
Remove final refs
2024-06-15 06:01:40 -04:00
Lance Pioch
8ea57bc46b
Remove unused audit logs
2024-06-15 05:53:29 -04:00
Lance Pioch
459d90e8d1
Revert this
2024-06-15 05:44:53 -04:00
Lance Pioch
a97341f6f2
Cast to int
2024-06-15 05:40:25 -04:00
Lance Pioch
375a64a38e
Remove these relationships
2024-06-15 05:40:21 -04:00
Lance Pioch
7c25fc2a9d
Revert these doc blocks
2024-06-15 05:39:53 -04:00
Lance Pioch
bcb7240ed2
Pint fixes
2024-06-15 05:24:19 -04:00
Lance Pioch
0bd2935885
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/EggResource/RelationManagers/ServersRelationManager.php
# app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/NodeResource/RelationManagers/NodesRelationManager.php
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
# app/Filament/Resources/ServerResource/Pages/ListServers.php
# app/Filament/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/UserResource/RelationManagers/ServersRelationManager.php
# app/Models/Allocation.php
# app/Models/ApiKey.php
# app/Models/Server.php
# app/Models/User.php
2024-06-15 05:21:58 -04:00
Lance Pioch
4cba1540ac
Add endpoints
2024-06-15 05:14:54 -04:00
Lance Pioch
e15d515f71
Wip
2024-06-14 07:54:07 -04:00
Boy132
5a3c606627
Add OAuth backend ( #386 )
...
* add socialite backend
* fix redirect url
* small cleanup
* fix "oauth" type
* changes from review
2024-06-13 21:06:31 +02:00
Lance Pioch
36e2fa8e2b
Wip
2024-06-13 11:31:58 -04:00
Boy132
0c0b468525
Change allowed_ips
to non-nullable ( #373 )
...
* change `allowed_ips` to non nullable
* fix default value
* show "allowed_ips" input
2024-06-13 08:21:56 +02:00
Djordy Koert
1d66d4c320
PHPStan workflow + PHPStan fixes ( #339 )
...
* add PHPStan to workflow
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
Co-authored-by: Djordy <djordy@lap-0394-djordy-koert.local>
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
2024-06-11 15:00:51 -04:00
Lance Pioch
4319f24f51
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
# app/Models/Node.php
2024-06-09 15:42:49 -04:00
Lance Pioch
f3501d8b14
Merge pull request #343 from Boy132/phpstan-fixes
...
Fix remaining phpstan issues for #339
2024-06-09 15:13:44 -04:00
Boy132
6b249b9545
fix tests
2024-06-07 09:17:10 +02:00
Boy132
f43fb985a2
fix phpstan in Node and EditProfile
2024-06-07 08:59:00 +02:00
Lance Pioch
b16a11c365
No longer reserved
2024-06-06 15:49:33 -04:00
Lance Pioch
551175862e
Better kebab names
2024-06-04 15:38:45 -04:00
Boy132
8f2261f6cd
add alias for node sftp address
2024-06-04 09:17:36 +02:00
Lance Pioch
4dbb55059d
Remove auto generated properties
2024-06-02 01:38:30 -04:00
Lance Pioch
110cc1248b
Fix relationship
2024-06-02 00:33:58 -04:00
Boy132
b1928e89b4
Merge branch 'pelican-dev:main' into replace/encrypt-decrypt
2024-05-31 23:04:43 +02:00
Boy132
f6325c07c4
Fix overallocation -1
and close #268 ( #283 )
2024-05-29 18:57:30 -04:00
Boy132
b6e46f758d
Remove hashids ( #282 ) and close #269
2024-05-29 18:41:44 -04:00
Boy132
639fa3399d
run pint
2024-05-28 15:27:33 +02:00
Boy132
82fd547484
replace encrypt/ decrypt with encrypted casting
2024-05-28 15:24:20 +02:00
Lance Pioch
51460782cc
Merge branch 'main' into issue/222
...
# Conflicts:
# app/Http/Controllers/Api/Application/Nodes/NodeDeploymentController.php
# app/Http/Requests/Api/Application/Nodes/GetDeployableNodesRequest.php
# app/Services/Deployment/FindViableNodesService.php
# app/Services/Servers/ServerCreationService.php
# tests/Integration/Services/Deployment/FindViableNodesServiceTest.php
2024-05-22 02:47:37 -04:00
Boy132
4dd833562b
Add CPU limit to node ( #239 ) to resolve #233
...
* add node cpu limit to backend
* update makenodecommand
* add node cpu limit to frontend
* add migration and update mysql schema
* run pint
* fix typo in mysql schema
* forgot this assert
* forgot to setCpu here
* run pint
* adjust migration
* Fix db migration
* make cpu optional
* set default value for cpu in node deployment
* update mysql schema
---------
Co-authored-by: notCharles <charles@pelican.dev>
2024-05-22 02:34:43 -04:00
Lance Pioch
b579f14f3f
Backwards compatibility
2024-05-21 22:04:12 -04:00
notCharles
4c43fd1683
Add docker_labels
2024-05-19 20:55:37 -04:00
Boy132
b1f99ca8a3
Add api for mounts ( #160 )
...
* add application api endpoints for mounts
* run pint
* add mounts resource to api key
* add includes to mount transformer
* forgot delete route for mount itself
* add migration for "r_mounts" column
* add mounts to testcase api key
2024-05-19 08:50:15 -07:00