1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 17:24:03 +00:00
Commit graph

65 commits

Author SHA1 Message Date
Samuel Štancl
02e049b59e Convert domains to lowercase, persist current domain model on resolver 2020-06-28 11:45:08 +02:00
Samuel Štancl
2a1e2a727e Try fixing Queue issue 2020-06-13 13:24:49 +02:00
Samuel Štancl
579779b88b Move DatabaseManager 2020-05-30 15:38:29 +02:00
Samuel Štancl
7fcfeb187c ?? [] in SP due to config caching 2020-05-25 10:08:10 +02:00
Samuel Štancl
0290d26d06 routes/tenancy -> routes/tenant 2020-05-24 21:22:27 +02:00
Samuel Štancl
a433edf186 Fix route publishing 2020-05-24 21:17:15 +02:00
Samuel Štancl
5eeba43796 Move tenant routes file 2020-05-24 21:10:50 +02:00
Samuel Štancl
4f8d892481 Remove obsolete files, restructure 2020-05-21 15:54:35 +02:00
Samuel Štancl
0508429e0f Fix asset publishing 2020-05-17 15:14:05 +02:00
Samuel Štancl
c8f9a82745 Cleanup after implementing impersonation 2020-05-15 07:39:19 +02:00
Samuel Štancl
1a8d150f2c Change bootstrappers namespace 2020-05-13 18:19:59 +02:00
Samuel Štancl
de53b81c0e Change default tenant model, write more tests, cleanup 2020-05-13 06:23:41 +02:00
Samuel Štancl
c32f229dd5 Refactor more old code and get tests to pass 2020-05-13 04:51:37 +02:00
Samuel Štancl
89936187ce Rewrite old tests 2020-05-12 23:22:40 +02:00
Samuel Štancl
86a98b2bc8 Queue tests 2020-05-11 05:22:55 +02:00
Samuel Štancl
6f4b9f486c Bootstrapper tests 2020-05-11 03:37:47 +02:00
Samuel Štancl
bd9aad229b vague first draft of v3. TenantModelTest is passing 2020-05-08 04:37:43 +02:00
Sean Taylor
5bb743f73d
Reinitialize tenancy for queued jobs if tenant id has changed (#276)
* Reinitialize tenancy for queued jobs if tenant id has changed

* Refactor condition logic for better readability
2020-02-22 13:58:30 +01:00
Samuel Štancl
1ef061ffc7 Array with global MW 2019-11-04 18:36:22 +01:00
Samuel Štancl
ab04ef025b
[2.2.0] Universal routes (#210)
* Universal routes

* Fix bugs

* Add universal MW group
2019-10-30 15:50:00 +01:00
Samuel Štancl
518ac4947c Add extra dispatchNow tenancy init check 2019-10-29 22:06:42 +01:00
Samuel Štancl
bb4dc196b0
[2.2.0] Make tenancy initialization in global MW stack optional (#203)
* Make tenancy initialization in global MW stack optional

* update config key
2019-10-26 21:17:28 +02:00
Samuel Štancl
cbd3850a8f
[2.1.0] Initialize tenancy before executing controller constructors (#169)
* Update message about migrations in Install

* wip

* Apply fixes from StyleCI

* string instead of array

* Fix globalUrl binding

* Simplify if condition in TenantRouteServiceProvider

* Apply fixes from StyleCI

* Improve PreventAccessFromTenantDomains - look into middleware subgroups

* Fix typo

* gatherMiddleware() instead of middleware()

* Fix tests

* Apply fixes from StyleCI

* Update install command

* Apply fixes from StyleCI

* Add the PreventAccess MW to tenant routes by default
2019-10-15 20:23:56 +02:00
Samuel Štancl
d4472469f0
[2.x] Add CreateTenant command (#153)
* Add CreateTenant command, fix TenantList output

* Create command test
2019-10-04 20:22:23 +02:00
Samuel Štancl
c965ca5c93
[2.x] Restructure drivers config (#151)
* Restructure drivers config

* Apply fixes from StyleCI
2019-09-30 18:38:32 +02:00
Samuel Štancl
d0b1729258
[2.x] Migrate fresh (#148)
* Remove comment

* migrate-fresh first draft

* Final

* DB name -> DB connection

* Add array_filter for consistency with Laravel

* Add test for migrate-fresh

* Apply fixes from StyleCI
2019-09-30 17:01:01 +02:00
Anton Komarev
d00cf97e0e Reorder Service Provider methods in execution sequence (#139) 2019-09-26 14:35:41 +02:00
Samuel Štancl
10c5f8d98d Fix Queue tenancy 2019-09-22 20:30:30 +02:00
Samuel Štancl
a2c6963e85 Fix global_asset_helper_returns_the_same_url_regardless_of_tenancy_initialization 2019-09-21 19:47:36 +02:00
Samuel Štancl
665d222872 Fix redirect macro test 2019-09-21 19:29:06 +02:00
Samuel Štancl
75f00a58dd Fix asset tests 2019-09-21 18:13:29 +02:00
Samuel Štancl
a34bcfbe3e Intelligent asset() 2019-09-21 16:43:03 +02:00
Samuel Štancl
6134c8113b asset() tenancy 2019-09-21 16:06:08 +02:00
Samuel Štancl
8565cc7acc Get multiple envs (redis/db) to run correctly 2019-09-17 19:39:57 +02:00
Samuel Štancl
c65b6839ff Tenant-specific connections, some work to get tests running 2019-09-15 17:44:26 +02:00
Samuel Štancl
0fd1d82c68 TenantModel putMany 2019-09-15 11:01:24 +02:00
Samuel Štancl
508ef9919a wip 2019-09-11 19:29:50 +02:00
Samuel Štancl
1bfe4a7ea5
Apply fixes from StyleCI (#126) 2019-09-11 17:37:02 +02:00
stancl
805644f85b Apply fixes from StyleCI 2019-09-08 09:11:59 +00:00
Samuel Štancl
61739dc5fc Add 'Features' 2019-09-08 11:11:44 +02:00
Samuel Štancl
8c69d7847e Bind bootstrappers properly 2019-09-07 20:05:04 +02:00
Samuel Štancl
6b716e5345 Use a nicer way to bind the current tenant 2019-09-07 19:46:45 +02:00
Samuel Štancl
8dc1ef61b8 QueueTenancyBootstrapper 2019-09-07 17:23:44 +02:00
stancl
01bff54b18 Apply fixes from StyleCI 2019-09-07 14:41:21 +00:00
Samuel Štancl
0ac7fb74d6 wip 2019-09-07 16:40:45 +02:00
Samuel Štancl
87916bd8e5 Save makes the Tenant instance persisted 2019-09-06 18:59:40 +02:00
Samuel Štancl
f04ca349bd Tenant contract, Tenancy bootstrappers, drop predis 2019-09-06 18:51:34 +02:00
Samuel Štancl
2fd3662eb7
[1.8.0] Use strict types (#115)
* Use strict types

* Apply fixes from StyleCI

* Fix str_repeat

* Fix false json decode
2019-08-23 18:18:26 +02:00
Samuel Štancl
f590e2ce2a
[1.8.0] Custom id scheme (#108)
* Add UniqueIdentifierGenerators

* Apply fixes from StyleCI
2019-08-21 20:29:53 +02:00
Samuel Štancl
1f4aa77ac4
Add [] fallback 2019-08-19 23:03:28 +02:00