MartinOscar
77fd54fdc2
Fix/suspend server offline node ( #871 )
...
* Use handle instead of toggle & use const isnstead of string
* Avoid rollback if node is unreachable
* Use Enum & remove default action
* Remove useless test
2025-01-06 03:07:06 +01:00
Charles
2525af8f02
Revert "Listen to more framework webhook events ( #728 )" ( #866 )
...
This reverts commit 7a4c4ce02a8e55413ebee4c470a8245c1a767f1f.
2025-01-05 19:07:01 -05:00
Charles
8f51502c6d
Remove First/Last Name for Users ( #855 )
...
* Update Tests
* Update Translations
* Add Migration
* Remove First/Last Names
2025-01-03 17:13:44 -05:00
Lance Pioch
133c1a511f
Replace some guzzle exceptions and fix server creation failures ( #848 )
...
* Replace guzzle exceptions
* Pint fixes
* Fix test
* Remove unused imports
* Catch & Notify the user instead of 500
* Update app/Filament/Admin/Resources/ServerResource/Pages/CreateServer.php
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
---------
Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com>
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
2025-01-01 15:20:16 -05:00
pelican-vehikl
7a4c4ce02a
Listen to more framework webhook events ( #728 )
...
* Add new framework events to listen to
* Add simple test for framework events
* Update app/Models/WebhookConfiguration.php
Co-authored-by: Lance Pioch <git@lance.sh>
* Update app/Models/WebhookConfiguration.php
Co-authored-by: Lance Pioch <git@lance.sh>
* Update app/Models/WebhookConfiguration.php
---------
Co-authored-by: Vehikl <go@vehikl.com>
Co-authored-by: Lance Pioch <git@lance.sh>
2024-12-13 01:03:35 -05:00
Boy132
d09227659e
Add database notifications ( #817 )
...
* add database notifications to all panels
* add successful param to Installed event
* add listener for Installed event
* create event for subuser creation
* add listener for SubUserAdded event
* always send Installed event
* create event for subuser removal
* add listener for SubUserRemoved event
* add prefix to server name
* remove view action from SubUserRemoved notification
2024-12-12 14:38:45 +01:00
pelican-vehikl
7e7f0be7df
Allow Database Hosts to have multiple Nodes ( #767 )
...
* WIP
* Update laravel and migrations
* WIP
* fix tests
* Update composer
* Fix transformer
* Fix filament pages
* WIP
* Update DatabaseHostTransformer
* fix: tests
* pint this files pls
* resolve merge better
* Update migration
* Update Migration, Again
* Update down migration
---------
Co-authored-by: Vehikl <go@vehikl.com>
2024-12-06 20:24:30 -05:00
Boy132
408897cfcf
Allow username on filament login page + make case insensitive ( #714 )
...
* allow login with username
* make login case insensitive
* fix tests
2024-11-15 20:39:06 +01:00
Lance Pioch
6125b07afa
Remove old admin area ( #648 )
...
* Remove old admin
* Remove controller test
* Remove unused exceptions
* Remove unused files
* More small tweaks
* Fix doc block
* Remove unused service
* Restore these
* Add back autoDeploy
* Revert "Add back autoDeploy"
This reverts commit 630c1e08acf8056ce8e612f376fcd00c23d90aea.
* Add these back
* Add back exception
* Remove ApiController again
---------
Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com>
Co-authored-by: Boy132 <mail@boy132.de>
Co-authored-by: notCharles <charles@pelican.dev>
2024-11-13 17:05:48 -05:00
Lance Pioch
47bd7289b1
Clear webhook cache when webhooks are deleted ( #695 )
...
* Clear webhook cache when webhooks are deleted
* fix: type casts
---------
Co-authored-by: Vehikl <go@vehikl.com>
2024-11-07 17:26:47 -05:00
Boy132
b3501be6ec
Refactor api key permissions ( #361 )
...
* use RESOURCE_NAME for requests
* use RESOURCE_NAME for transformers
* add permissions field to api key
* add migration for new permissions field
* update tests
* remove debug log
* set column type to "json"
* remove default attribute to fix tests
* fix default value for permissions
* fix after merge
* fix after merge
* allow to "register" custom permissions
* add "role" to default resource names
* fix after merge
* fix phpstan
* fix migrations
2024-11-06 09:09:10 +01:00
MartinOscar
f3de185508
Add back auto deploy ( #627 )
...
* Add Docker, Refactor, Fix Notification
Co-authored-by: notCharles <charles@pelican.dev>
* Pint
* Required adjustments
* Remove deprecated
* Third time's the charm
---------
Co-authored-by: notCharles <charles@pelican.dev>
2024-10-26 20:43:19 -04:00
Colin DeCarlo
86c369d7ce
Implement Webhooks ( #548 )
...
* feat: First Webhook PoC draft
* feat: Dispatch Webhooks PoC
* fix: typo in webhook configuration scope
* Update 2024_04_21_162552_create_webhooks_table.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update 2024_04_21_162552_create_webhooks_table.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update 2024_04_21_162544_create_webhook_configurations_table.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update 2024_04_21_162544_create_webhook_configurations_table.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhooks.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhooksJob.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhookForConfiguration.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhookForConfiguration.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhookForConfiguration.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhooksJob.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhooksJob.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhooksJob.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* chore: Implement Webhook Event Discovery
* we got a test working for webhooks
* WIP
* Something is working!
* More tests
* clean up the tests now that they are passing
* WIP
* Don't use model specific events
* WIP
* WIP
* WIP
* WIP
* WIP
* Do it sync
* Reset these
* Don't need restored event type
* Deleted some unused jobs
* Find custom Events
* Remove observers
* Add custom event test
* Run Pint
* Add caching
* Don't cache every single event
* Fix tests
* Run Pint
* Phpstan fixes
* Pint fix
* Test fixes
* Middleware unit test fix
* Pint fixes
* Remove index not working for older dbs
* Use facade instead
---------
Co-authored-by: Pascale Beier <mail@pascalebeier.de>
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
Co-authored-by: Vehikl <go@vehikl.com>
2024-10-26 20:35:25 -04:00
Lance Pioch
64943aa50c
Merge branch 'main' into lance/pint-fixes
2024-10-20 11:53:10 -04:00
Lance Pioch
bb5955cff4
Have to make this match the trait
2024-10-19 21:19:59 -04:00
Lance Pioch
38be89a71e
Pint
2024-10-19 21:16:33 -04:00
Lance Pioch
deb6603840
Revert "Add concat_space rule"
...
This reverts commit 96acd268bee7005fe1691b572a4674575604d437.
2024-10-19 21:14:41 -04:00
Lance Pioch
c7a307af6e
Enforce return and parameter types
2024-10-19 21:02:49 -04:00
Lance Pioch
466f9f7edc
Add phpdoc_separation rule
2024-10-19 18:46:05 -04:00
Lance Pioch
d21740d458
Add phpdoc_align rule
2024-10-19 18:42:23 -04:00
Lance Pioch
1bf6a880fb
Add nullable_type_declaration_for_default_null_value rule
2024-10-19 18:41:08 -04:00
Lance Pioch
96acd268be
Add concat_space rule
2024-10-19 18:30:34 -04:00
Boy132
e23a4a667a
Fix escaping for EnvironmentWriterTrait
( #610 )
...
* fix escaping for EnvironmentWriterTrait
* remove alphaNum from app name field
* add test for `'` escaping
2024-10-08 23:46:06 +02:00
Boy132
fc643f57f9
Admin Roles ( #502 )
...
* add spatie/permissions
* add policies
* add role resource
* add root admin role handling
* replace some "root_admin" with function
* add model specific permissions
* make permission selection nicer
* fix user creation
* fix tests
* add back subuser checks in server policy
* add custom model for role
* assign new users to role if root_admin is set
* add api for roles
* fix phpstan
* add permissions for settings page
* remove "restore" and "forceDelete" permissions
* add user count to list
* prevent deletion if role has users
* update user list
* fix server policy
* remove old `root_admin` column
* small refactor
* fix tests
* forgot can checks here
* forgot use
* disable editing own roles & disable assigning root admin
* don't allow to rename root admin role
* remove php bombing exception handler
* fix role assignment when creating a user
* fix disableOptionWhen
* fix missing `root_admin` attribute on react frontend
* add permission check for bulk delete
* rename viewAny to viewList
* improve canAccessPanel check
* fix admin not displaying for non-root admins
* make sure non root admins can't edit root admins
* fix import
* fix settings page permission check
* fix server permissions for non-subusers
* fix settings page permission check v2
* small cleanup
* cleanup config file
* move consts from resouce into enum & model
* Update database/migrations/2024_08_01_114538_remove_root_admin_column.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* fix config
* fix phpstan
* fix phpstan 2.0
---------
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
2024-09-21 12:27:41 +02:00
Boy132
c2b1a98d29
Convert variable "rules" to array ( #507 )
...
* convert variable "rules" to array
* allow importing eggs with string rules
* fix tests
* update stock eggs to rules array
2024-08-19 08:33:53 +02:00
Boy132
1fba700096
Improve error handling for Installer ( #532 )
...
* make sure migrations ran
* add loading indicator to finish button
* make error notification persistent
* fix migration checker
* cleanup traits
2024-08-09 08:23:03 +02: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
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
Boy132
b1928e89b4
Merge branch 'pelican-dev:main' into replace/encrypt-decrypt
2024-05-31 23:04:43 +02:00
Boy132
b6e46f758d
Remove hashids ( #282 ) and close #269
2024-05-29 18:41:44 -04:00
Boy132
82fd547484
replace encrypt/ decrypt with encrypted casting
2024-05-28 15:24:20 +02:00
Lance Pioch
f9aa8cf218
Simplify viable nodes service
2024-05-21 21:44:49 -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
Charles
f7e7864dfe
Merge pull request #216 from Boy132/update/storeschedulerequest
...
Add missing fields to StoreScheduleRequest
2024-05-13 19:14:51 -04:00
Boy132
703e5480ff
add missing fields to StoreScheduleRequest
2024-05-13 18:55:59 +02:00
Boy132
f02eb5bfba
rename "oom_disabled" to "oom_killer" and invert logic
2024-05-12 22:21:22 +02:00
Boy132
fb596fa4f9
update IntegrationTestCase
2024-05-02 09:58:28 +02:00
Lance Pioch
69b70bf649
Merge branch 'master' into issue/fix-3
2024-04-18 17:20:23 -04:00
Lance Pioch
c5008a43e7
Use new enum
2024-04-18 03:50:20 -04:00
notCharles
54eaf8ab0f
Change colums
...
Closes https://github.com/pelican-dev/panel/issues/3
2024-04-13 21:51:22 -04:00
Lance Pioch
358ac96ac1
Swap http client out
2024-03-23 16:10:47 -04:00
Lance Pioch
f795b38db5
Better way
2024-03-23 11:27:26 -04:00
Lance Pioch
e3947e4b50
Only check first token
2024-03-23 11:20:15 -04:00
Lance Pioch
f7bc9f005f
Styling fixes
2024-03-23 08:10:28 -04:00
Lance Pioch
49de8fae3e
Shouldn’t be testing controllers in this case…
2024-03-23 08:07:54 -04:00
Lance Pioch
03b1fc4636
Update this
2024-03-22 21:34:19 -04:00
Lance Pioch
654aad06bb
This test is useless
2024-03-22 21:32:19 -04:00
Lance Pioch
798ac6d4c1
Style fixes
2024-03-19 21:13:55 -04:00
Lance Pioch
582f9e03d8
No longer need to manually specify this
2024-03-19 21:12:59 -04:00
Lance Pioch
29b3debee2
Use Laravel’s same return types
2024-03-19 21:12:27 -04:00