lukinovec
b789f5c561
Change URI prefix order during route cloning ( #49 )
...
* Change URI prefix order [ci skip]
* Move route cloning to `$this->app->booted()` [ci skip]
* Delete note about LW v2
* Improve comments/docblock [skip ci]
* Fix comment in test, improve assertion [skip ci]
2024-04-24 22:33:18 +02:00
lukinovec
6e67ddf7a5
Resolve test to-dos ( #45 )
...
* Only retrieve domains if the relationship and the domains table exist (DomianTenantResolver)
* Resolve todo, add other todos
* Use constructor promotion in DeleteDomains
* Fix imports + domain deletion test
* Confirm that turning on resolver caching doesn't break the tests
* Fix Tenant model imports
* Fix code style (php-cs-fixer)
* remove runtime schema check
* temp: enable resolver cache
* make 'autoincrement ids are supported' pass
* disable resolver cache
---------
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
2024-04-18 00:22:03 +02:00
lukinovec
80b1183fbf
Make clone action prefix already prefixed routes correctly ( #28 )
...
* Add regression test
* Complete prefixing test
* Delete redundant line from test
* Refactore clone action, fix prefixing logic
* Improve test name
* Improve URI string manipulation
* Refactor createNewRoute()
* Fix code style (php-cs-fixer)
* Fix PHPStan error
---------
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
2024-02-10 18:19:20 +01:00
lukinovec
c312156c18
Give universal flag highest priority ( #27 )
...
* Give universal flag the highest priority (wip)
* Stop forgetting tenant parameter when route-level path ID is used
* Fix PHPStan errors
* Simplify annotation
* Fix comment
* Correct annotations
* Improve requestHasTenant comment
* Make cloning logic only clone universal routes, delete the universal flag from the new (tenant) route
* Delete APP_DEBUG
* make if condition easier to read
* Update DealsWithRouteContexts.php
* Fix test
* Fix code style (php-cs-fixer)
* Move tests
* Delete incorrectly committed file
* Cloning routes update wip
* Route cloning rework WIP
* Add todo to clone routes
* Fix code style (php-cs-fixer)
* Route cloning fix WIP
* Set CloneRoutesAsTenant::$tenantMiddleware to ID MW
* Revert CloneRoutesAsTenant::$tenantMiddleware-related changes
* Simplify requestHasTenant
* Add and test 'ckone' flag
* Delete setting $skippedRoutes from CloneRoutesAsTenant
* Fix code style (php-cs-fixer)
* make config key used for testing distinct from normal tenancy config keys
* Update src/Actions/CloneRoutesAsTenant.php
* Move 'path identification types' dataset to CloneActionTest
---------
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
2024-01-25 15:27:17 +01:00