1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-03-22 10:24:04 +00:00
Commit graph

973 commits

Author SHA1 Message Date
Leandro Gehlen
32e3b375ca
Merge branch 'archtechx:3.x' into 3.x 2025-07-10 07:22:42 -03:00
Leandro G. Gehlen
90272bcbb1 Fix central model creation to use only synced attributes 2025-07-10 07:15:32 -03:00
d98a170fbd
Invalidate resolver cache on delete (#1328) 2025-03-13 17:02:11 +01:00
Johannes
e46355fb9d
[3.x] Add comment to config file explaining --force with seeding in production (#1326)
* add comment in seed config for clarification

* test tenant creation seeding also in production environments (with force)

* revert changes in DatabasePreparationTest
2025-03-13 17:01:51 +01:00
MuHanz
3f9935784d
fix: add explicit nullable type declarations for UserImpersonation parameters (#1324) 2025-03-13 17:00:05 +01:00
19bc316cf6 Fix git tag support in queue.yml 2025-02-25 15:56:44 +01:00
e930251db5
[3.x] Laravel 12 support (#1322)
* Laravel 12 support

* Drop Laravel 9 support, update CI matrix

* run tests on PHP 8.3
2025-02-25 14:36:29 +01:00
22dcb8b069 queue ci: set TENANCY_VERSION for setup.sh 2024-12-31 07:33:50 +01:00
72579999ac add queue.yml CI workflow 2024-12-31 07:23:47 +01:00
Mohammad Javad Asna Ashari
e91ca11123
Refactor: Remove unreachable code after exception (#1271) 2024-12-29 21:28:29 +01:00
coreyhn
30cdc9461e
Fix ModelNotSyncMasterException message (#1257) 2024-10-02 23:44:08 +02:00
Leandro Gehlen
04f82fb813
Merge branch 'archtechx:3.x' into 3.x 2024-10-01 08:16:23 -03:00
Samuel Štancl
ed52c48428
Always revert queue worker to the central context — fix #1229 (#1251)
* Fix #1229

* docker-compose -> docker compose in ci.yml

* docker->compose -> docker compose

* docker->compose -> docker compose

* clarify how dispatchNow() works
2024-09-17 18:12:33 +02:00
Samuel Štancl
ed029438cb
Make Cache::tags() support named parameters (fix #1256) 2024-09-17 18:09:49 +02:00
Samuel Štancl
f2e1648973
docker-compose -> docker compose 2024-09-10 12:53:04 +02:00
Leandro Guindani Gehlen
cea7ee9c9d Merge branch 'tenantkey-resolver' into 3.x 2024-06-28 15:26:51 -03:00
Leandro Guindani Gehlen
9c06322a97 Add tenant key resolver to define filesystem path suffix 2024-06-28 15:19:50 -03:00
Leandro Guindani Gehlen
a70312cb48 Add tenant key resolver to define filesystem path suffix 2024-06-28 15:10:13 -03:00
Leandro Gehlen
23e614f05b
Merge branch 'archtechx:3.x' into 3.x 2024-06-28 13:50:58 -03:00
8f9c7efa45 pin dockerfile to ubuntu 22 2024-05-22 19:57:48 +02:00
885179bf74 Fix #1223 - Vite regression introduced on Laravel 9 in v3.8.3 2024-05-22 19:42:20 +02:00
Leandro Gehlen
394d6ad338
Merge branch 'archtechx:3.x' into 3.x 2024-05-15 09:12:38 -03:00
Bert Bredewold
120b8bc4ae
Use assetPathResolver closure if set (#1221)
The original Vite Facade uses the assetPathResolver closure (if set) to generate assets with a custom URL. This is needed when for example assets are cached on a CDN, or if you need assets from a central URL while in Tenant context.

This updates the Tenancy version of the Vite-Facade to bring back the assetPathResolver logic.
2024-05-13 17:15:26 +02:00
Samuel Štancl
4dab0c1870
defer tenant route registration in TSP stub 2024-04-14 10:12:18 +02:00
Lucas Romano
d6d991ced6
Fixing RedisCluster deprecation of phpredis 6. (#1208) 2024-04-12 20:05:55 +02:00
Samuel Štancl
72b1b48edd
[3.x] Laravel 11 support (#1180)
* Laravel 11 support

* wip

* trigger ci

* fix ci file

* try setting charset and collation on the default mysql connection

* Set default cache driver to redis in tests

* drop and recreate id column separately in autoincrement_ids_are_supported

* set default redis client to predis in tests

* revert fail-fast

* try reverting TenantModelTest change

* migrate phpunit configuration

* add parent::tearDown() call
2024-03-12 15:04:54 +01:00
8db27a358e Forget tenant parameter when a tenant is resolved from cache in PathTenantResolver (fix #1174) 2024-01-27 22:55:59 +01:00
chillbram
5fe8825f13
Make universal routes work for controller middleware (#1151)
* Make universal routes work for controller middleware

* add a fallback

---------

Co-authored-by: chillbram <7299762+chillbram@users.noreply.github.com>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
2024-01-25 22:34:47 +01:00
d268a06f5d tests: assert that tenants:run runs only for the specified tenants 2024-01-18 14:30:40 +01:00
Massimo Simonini
0b248f937d
Add step option to migrate-fresh command (#1164) 2023-11-21 02:25:32 +01:00
Leandro Gehlen
52261ef814
Merge branch 'archtechx:3.x' into 3.x 2023-11-17 02:15:27 -08:00
Samuel Štancl
85c7465aca remove unnecessary import 2023-09-02 03:20:42 +02:00
Samuel Štancl
caf2267a08 reimplement TenantAssetsController::validatePath() (fixes #1143) 2023-09-02 03:19:37 +02:00
Samuel Štancl
4af70d302f add extra $path validation to TenantAssetsController 2023-08-24 18:21:23 +02:00
tamiroh
395192442d
Add use (#1103) 2023-08-18 07:40:21 +02:00
Samuel Štancl
e070d13745
update support link 2023-07-27 05:15:28 +02:00
Leandro Gehlen
825ef3bbe8
Merge branch 'archtechx:3.x' into 3.x 2023-06-01 14:47:15 -03:00
Chris Thompson
d9b7107900
Typo in PHPdoc (#1106) 2023-04-27 15:40:27 +02:00
Samuel Štancl
bcdd607cd4
update laravel version 2023-04-24 22:02:32 +02:00
Leandro Gehlen
62c22e5ac2
Merge branch 'archtechx:3.x' into 3.x 2023-02-17 10:53:59 -03:00
Guilherme Saade
d4a99011e6
[3.x] L10 compatibility (#1065)
* Bump dependencies for Laravel 10

* Update GitHub Actions for Laravel 10

* ci: do not test L10 using PHP 7.3

* drop < L9 support

* use `dispatch_sync` instead of `dispatch_now`

* migrate phpunit configuration

* Update ci.yml

* drop laravel < 9 support

* misc L10 fixes, new docker image

* specify odbc version

* wip

* properly list php versions as strings

* minor changes

* Add `getValue($queryGrammar)` to raw query

* Clean up `isVersion8` code

* rewrite hasFailed assertion

* phpunit schema update

* Upgrade `doctrine/dbal`

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
Co-authored-by: lukinovec <lukinovec@gmail.com>
2023-02-16 17:21:06 +01:00
Leandro Gehlen
54d832651f
Merge branch 'archtechx:3.x' into 3.x 2023-02-04 21:37:38 -03:00
Joel Stein
7d59ff180f
Don't prevent accessing missing Tenant attributes. (#1045) 2023-02-01 06:24:53 +01:00
lukinovec
26b8569761
Cache crash fix (#1048) 2023-01-27 08:17:14 +01:00
Leandro Guindani Gehlen
a7a8a5f5e3 Renamed method from isSyncEnabled to shouldSync 2022-12-21 10:07:19 -03:00
Leandro Guindani Gehlen
d34a6dcd7d Merge branch 'sync' of https://github.com/leandrogehlen/tenancy into 3.x 2022-12-21 09:51:01 -03:00
Samuel Štancl
84a3287799
update channel name 2022-09-29 16:49:12 +02:00
Samuel Štancl
437a8ed05c remove typehint 2022-09-28 18:50:09 +02:00
Samuel Štancl
a2c53b58ba try to exclude Vite.php from coverage report 2022-09-28 18:43:39 +02:00
Samuel Štancl
596c47329a remove import of Foundation\Vite in tests 2022-09-28 17:17:21 +02:00