1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 19:34:04 +00:00
Commit graph

52 commits

Author SHA1 Message Date
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
Samuel Štancl
824ecfce48
[1.8.0] Add Telescope tags with tenant ids (#77) 2019-08-19 21:11:55 +02:00
Samuel Štancl
8d8c177dac
[1.8.0] Add Queue support & Horizon integration (#104) 2019-08-19 14:37:57 +02:00
Samuel Štancl
b12b9c3a54
[1.8.0] Tenant redirect (#103) 2019-08-18 12:48:10 +02:00
Samuel Štancl
9df78eb9c2
[1.7.0] Add DB storage driver (#82) 2019-08-16 14:36:49 +02:00
Samuel Štancl
674f4b3f9a
[1.7.0] Install command (#95) 2019-08-15 19:16:25 +02:00
Samuel Štancl
769ec16f89
Fix #89 (#90) 2019-08-13 18:36:41 +02:00
Samuel Štancl
15f09e59df
[1.7.0] Add tenants:run (#81)
* wip

* Apply fixes from StyleCI

* first implementation

* Apply fixes from StyleCI

* Add support for arguments and options

* Apply fixes from StyleCI

* Write docs, add support for = in arg/opt value

* Apply fixes from StyleCI

* add $ [ci skip]
2019-08-09 19:06:00 +02:00
Samuel Štancl
eceacd9422
Apply fixes from StyleCI (#80) 2019-08-02 20:01:10 +02:00
Samuel Štancl
92ebc1f01b
Add support for global cache (#78) 2019-07-30 21:05:30 +02:00
Samuel Štancl
97ec172fd4
Specify namespace on global functions (fix #35) (#36)
* Specify namespace on global functions (fix #35)

* merge

* Revert some \ additions

* small fixes
2019-04-24 17:33:41 +02:00
Samuel Štancl
6bb18a2b95
Fix Travis, add docs for generating HTTPS certificates (#19) 2019-02-07 15:26:42 +01:00
Samuel Štancl
394f792ec9 Map tenant routes using the SP - fix #10 2019-01-26 12:59:19 +01:00
Samuel Štancl
89d97a89ab Load the middleware from the SP, fix #3 2019-01-20 17:33:10 +01:00