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

75 commits

Author SHA1 Message Date
Samuel Štancl
526f0826a4
Use seeder params in tenants:seed instead of just the automatic seeder (#317)
* Use seeder params in tenants:seed instead of just the automatic seeder

* Left trim - from option names

* Use no seeder params for tests
2020-03-17 15:59:45 +01:00
Samuel Štancl
e02bd3927a
Single-line docblock 2020-03-08 14:57:18 +01:00
Samuel Štancl
98ce0ee294
Make DB creation optional (#299) 2020-02-26 08:49:08 +01:00
Samuel Štancl
6ad1a6639f
Set $persisted in TenantManager::createTenant() (#272)
* Set $persisted in TenantManager::createTenant()

* Apply fixes from StyleCI
2020-01-19 12:08:16 +01:00
Jess Johannessen
5145b1f13e Added support for migration parameters (#243) 2019-12-10 16:56:51 +01:00
Samuel Štancl
0616e608aa Update docblock 2019-11-04 22:07:07 +01:00
Samuel Štancl
eecadd6d39 Updating event 2019-10-29 20:16:45 +01:00
Samuel Štancl
596d43da2e No need to use & for object methods 2019-10-29 20:12:24 +01:00
Samuel Štancl
7bc58f3980 Simplify reduce 2019-10-28 21:00:34 +01:00
Samuel Štancl
09412cd7ad Pass variable 2019-10-28 15:27:32 +01:00
Samuel Štancl
464832be29 Pass arguments to events by reference 2019-10-28 14:59:25 +01:00
Samuel Štancl
869ac32983
[2.2.0] [WIP] Add functionality (#206)
* TenantDatabaseDoesNotExistException

* Apply fixes from StyleCI

* User post-creation callbacks

* Rename method

* postCreationActions

* pass $tenant as parameter

* pass $tenant to async actions

* WIP findBy()

* findBy\* ForwardsCalls

* Apply fixes from StyleCI

* findBy DB storage driver

* Redis  SD TODO message

* Apply fixes from StyleCI

* Fix chained jobs

* WIP event system

* import str

* instanceof closure check

* findBy instead of find

* Tenant -> Tenants

* dots

* Use DB hooks instead of a SC key

* Don't allow  callables for queue chain

* CanDeleteKeys interface

* Apply fixes from StyleCI

* CanFindByAnyKey interface

* Apply fixes from StyleCI

* Ditch models for custom repositories

* Resolve circular dependency

* Apply fixes from StyleCI

* Fix tests

* Apply fixes from StyleCI

* FutureTest

* Prefix tenant events with 'tenant.'

* Event listener arguments test
2019-10-27 21:10:41 +01:00
JapSeyz
77df467567 Fixes an issue where tests wouldn't have tenants in the tearDown method (#198)
* Fixes an issue where tests wouldn't have tenants in the tearDown method

* Styling
2019-10-26 21:18:03 +02:00
Chris Brown
d5b01219fd [2.x] Allow automatic seeding after automatic migrations (#160) 2019-10-17 19:25:30 +02:00
Samuel Štancl
3e78410d8a
[2.1.0] Fix queue race conditions (#178)
* Add TenantDoesNotExist exception, fix queued migrator serialization

* wip

* Apply fixes from StyleCI

* Use only one config for  queueing

* Apply fixes from StyleCI

* rename test

* rename test
2019-10-17 13:55:10 +02:00
Samuel Štancl
a1270189da
[2.1.0] Tenant Run (#163)
* $tenant->run()

* Add assertion
2019-10-11 21:02:54 +02:00
Samuel Štancl
abd0b8f04e
[2.x] Queued post-creation automigration (#154)
* Queued post-creation automigration

* Add shouldQueueMigration()

* Automigration test, config key, QueueTenancyBootstrapper support for QueueFake

* Apply fixes from StyleCI

* Fix if statement
2019-10-04 21:34:17 +02:00
Samuel Štancl
202a01f944 hook() method 2019-09-30 17:13:47 +02:00
Anton Komarev
3d1ceadf34 [2.x] Remove request helper from TenantManager (#144)
* Remove request from tenant manager

* Rollback
2019-09-27 06:53:08 +02:00
Samuel Štancl
509d00f9f3 Add docblocks 2019-09-20 20:14:58 +02:00
Samuel Štancl
6b0ec1b554 Passing tests with DB storage driver 2019-09-18 20:08:30 +02:00
Samuel Štancl
9bb56c1b30 Fix feature bootstrapping 2019-09-18 18:02:14 +02:00
Samuel Štancl
8565cc7acc Get multiple envs (redis/db) to run correctly 2019-09-17 19:39:57 +02:00
Samuel Štancl
524530c8d5 TenantDatabaseManagerTest fully passes now 2019-09-17 18:57:19 +02:00
Samuel Štancl
7e645a3312 Fix event tests 2019-09-16 18:38:23 +02:00
Samuel Štancl
a9c37d1535 wip 2019-09-16 18:09:09 +02:00
stancl
d480ea63da Apply fixes from StyleCI 2019-09-16 14:58:05 +00:00
Samuel Štancl
1532ccf019 Fix some tests 2019-09-16 16:57:55 +02:00
Samuel Štancl
a7bb709bd4 Fix first test 2019-09-15 21:53:03 +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
15a7db9e71 Clean up TenantCannotBeCreatedException 2019-09-15 09:40:53 +02:00
stancl
7264ec05cb Apply fixes from StyleCI 2019-09-11 17:28:01 +00:00
Samuel Štancl
ca30e861dc Delete old Tenant & DB amnagers 2019-09-11 19:27:33 +02:00
Samuel Štancl
1bfe4a7ea5
Apply fixes from StyleCI (#126) 2019-09-11 17:37:02 +02:00
Samuel Štancl
d68148e4b4 wip 2019-09-08 14:26:56 +02:00
Samuel Štancl
72baa45126 Make TenantModel final 2019-09-04 16:57:19 +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
4c676b41e9 Custom exceptions, fix #91 2019-08-20 12:14:56 +02:00
Samuel Štancl
d04f4bb2a1 decode -> encode 2019-08-19 11:21:44 +02:00
stancl
1818e590e0 Apply fixes from StyleCI 2019-08-19 08:56:13 +00:00
Samuel Štancl
314b2d3003 Fix bug with JSON encoding 2019-08-19 10:55:48 +02:00
Samuel Štancl
6095696355 Fix invoke test 2019-08-16 18:54:25 +02:00
Samuel Štancl
dc96931a76 merge 2019-08-16 18:32:06 +02:00
Samuel Štancl
89c7289b66 Switch order of conditions 2019-08-16 18:26:18 +02:00
stancl
84890cdd1e Apply fixes from StyleCI 2019-08-16 16:21:59 +00:00
Samuel Štancl
bbafc9d8e2 is_array check 2019-08-16 18:20:34 +02:00
Samuel Štancl
3c9ead6aac default value 2019-08-16 18:10:34 +02:00
Samuel Štancl
fd79e0aec3 Fix illegal offset 2019-08-16 18:04:54 +02:00