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

67 commits

Author SHA1 Message Date
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
Samuel Štancl
1216addd1f Improve get() 2019-08-16 17:55:40 +02:00
Samuel Štancl
9df78eb9c2
[1.7.0] Add DB storage driver (#82) 2019-08-16 14:36:49 +02:00
Samuel Štancl
4aa35322da Add event prevents, Tenant facade 2019-08-14 22:16:51 +02:00
Samuel Štancl
d7358c588c
[1.7.0] Add the option to set values & db name during tenant creation (#86)
* Add the option to set values & db name during tenant creation

* Apply fixes from StyleCI

* Add tests

* Apply fixes from StyleCI

* Rewrite conditional for clarity
2019-08-13 19:16:00 +02:00
Samuel Štancl
eceacd9422
Apply fixes from StyleCI (#80) 2019-08-02 20:01:10 +02:00
Samuel Štancl
353f7afb82
Add tenancy()->end() (#68) 2019-07-13 11:38:07 +02:00
Samuel Štancl
a3ff6fbd93 fix #63 (wrong return type docblock) 2019-07-12 23:05:11 +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