1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 17:24:03 +00:00
tenancy/src
lukinovec 1e926a1dde
[4.x] Route cloning refactor (#1353)
* Refactor cloning action, update tests

* Delete redundant "should not be cloned" part from shouldBeCloned()

* Use 'clone' instead of a universal route in tenant parameter removal test

* Improve comment

* Add test for cloneRoutesWithMiddleware(), correct existing tests

* Allow cloning specific routes by name

* Fix typo in CloneActionTest

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* clean up CloneRoutesAsTenant, add a todo

* phpstan

* Add test for handling 'clone'  in MW groups

* Improve regression test

* Improve regression test

* Handle nested cloning flags in CloneRoutesAsTenant

* Ignore routes that are already considered tenant routes from cloning, update test accordingly

* Clarify cloning logic

* CloneRoutesAsTenant cleanup

* Rewrite clone action annotation, fix fluent usage bug

* Improve tests (comments, use $tenant->id instead of $tenant->getTenantKey())

* Test that the clone action can be used fluently without issues now (could serve as a regression test for the routesToClone change in previous commit)

* Minor annotation improvements

* Improve route cloning action docblock

* Add note about clearing the $routesToClone property

* improve docblock

* clean up tests

* fix typo

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
2025-07-01 00:32:42 +02:00
..
Actions [4.x] Route cloning refactor (#1353) 2025-07-01 00:32:42 +02:00
Bootstrappers [4.x] URL generation, request data identification improvements (#1357) 2025-06-02 03:43:47 +02:00
Commands [4.x] Make forcing RLS configurable (#1293) 2025-06-05 05:06:05 +02:00
Concerns [4.x] Make RemoveStorageSymlinksAction able to delete broken symlinks (#1323) 2025-03-18 21:27:27 +01:00
Contracts remove ignition dependencies 2025-06-18 23:29:24 +02:00
Controllers [4.x] General code cleanup (#1278) 2024-12-31 00:35:46 +01:00
Database fix phpstan 2025-05-29 18:39:05 +02:00
Enums Make RouteMode enum backed (#1362) 2025-06-02 20:34:49 +02:00
Events [4.x] Cleanup (#1317) 2025-02-20 20:49:09 +01:00
Exceptions remove ignition dependencies 2025-06-18 23:29:24 +02:00
Facades Extend GlobalCache facade from the original facade (#495) 2020-09-18 23:18:21 +02:00
Features [4.x] Make the ImpersonationToken model configurable (#1335) 2025-03-18 18:42:08 +01:00
Jobs fix: drop tenant databases on migrate fresh without domains (#1282) 2025-01-01 20:31:47 +01:00
Listeners [4.x] Cleanup (#1317) 2025-02-20 20:49:09 +01:00
Middleware [4.x] URL generation, request data identification improvements (#1357) 2025-06-02 03:43:47 +02:00
Overrides [4.x] URL generation, request data identification improvements (#1357) 2025-06-02 03:43:47 +02:00
Resolvers [4.x] URL generation, request data identification improvements (#1357) 2025-06-02 03:43:47 +02:00
ResourceSyncing [4.x] Cleanup (#1317) 2025-02-20 20:49:09 +01:00
RLS/PolicyManagers [4.x] Make TableRLSManager skip foreign keys with 'no-rls' comment right away (#1352) 2025-05-15 14:54:04 +02:00
UniqueIdentifierGenerators [4.x] Add ULIDGenerator (#1332) 2025-03-18 19:00:35 +01:00
helpers.php revert regression in last commit, opt for a phpstan ignore instead 2025-06-19 00:12:38 +02:00
Tenancy.php fix regression in previous commit: consume PendingDispatch *before* reverting context 2025-02-19 12:28:38 +01:00
TenancyServiceProvider.php [4.x] Queue logic refactor (#1289) 2025-01-14 13:49:16 +01:00