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

57 commits

Author SHA1 Message Date
stancl
6955512a6b Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
Samuel Štancl
15a7e52208 Get rid of tenant DB manager connection config 2020-05-21 14:47:29 +02:00
Samuel Štancl
ac58f6992b Use getTenantKey() instead of ->id references 2020-05-20 20:41:47 +02:00
Samuel Štancl
5e99fca070 Custom tenant collections 2020-05-14 02:29:14 +02:00
Samuel Štancl
c32f229dd5 Refactor more old code and get tests to pass 2020-05-13 04:51:37 +02:00
Samuel Štancl
8915297c30
Merge branch 'master' into shared-users 2020-05-13 00:33:27 +02:00
Samuel Štancl
a756b9b3bc Implement changes from review on GH 2020-05-13 00:31:30 +02:00
Samuel Štancl
89936187ce Rewrite old tests 2020-05-12 23:22:40 +02:00
Samuel Štancl
64383b4c56 Refactor DB config & Tenant DB managers 2020-05-12 03:32:28 +02:00
Samuel Štancl
b7c8f1fba7 Shared users - complete 2020-05-12 01:54:02 +02:00
Samuel Štancl
daae67c0f7 Synced resources - proof of concept 2020-05-11 07:32:20 +02:00
Samuel Štancl
6f4b9f486c Bootstrapper tests 2020-05-11 03:37:47 +02:00
Samuel Štancl
73fc525126 Automatic mode 2020-05-10 23:47:11 +02:00
Samuel Štancl
2492345280 Add methods to Tenant contract 2020-05-10 20:20:44 +02:00
Samuel Štancl
8ea4940f34 Identification middleware & tests 2020-05-10 05:47:27 +02:00
Samuel Štancl
e1a4054743 Domain model & resolver test 2020-05-08 18:16:18 +02:00
Samuel Štancl
bd9aad229b vague first draft of v3. TenantModelTest is passing 2020-05-08 04:37:43 +02:00
Samuel Štancl
3bb2759fe2
[3.x] DB users (#382)
* Initial draft

* Apply fixes from StyleCI

* Use CI on master branch too

* Pass correct argument to queued DB creators/deleters

* Apply fixes from StyleCI

* Remove new interface from MySQLDBManager

* Make phpunit run

* Apply fixes from StyleCI

* Fix static property

* Default databaseName

* Use database transactions for creating users & granting permissions

* Apply fixes from StyleCI

* Get old tests to pass

* Apply fixes from StyleCI

* Add tests for PermissionControlledMySQLDatabaseManager

* Apply fixes from StyleCI

* Write test for extra config, fix bug with extra config

* Apply fixes from StyleCI
2020-05-03 18:12:27 +02:00
Samuel Štancl
95ee295da1
Fix PDO serialization exception (#289)
* Fix PDO serialization exception when queueing tenant creation

* Apply fixes from StyleCI

* Fix $this->database() calls
2020-02-10 16:04:40 +01:00
Samuel Štancl
fed8c0f9d1
[2.2.4] [WIP] Respect custom connections when creating database (#244)
* Add TenantDatabaseManager::setConnection()

* Apply fixes from StyleCI
2019-12-11 22:16: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
Samuel Štancl
509d00f9f3 Add docblocks 2019-09-20 20:14:58 +02:00
Samuel Štancl
c9903cd43c Clean up 2019-09-19 20:32:09 +02:00
Samuel Štancl
8565cc7acc Get multiple envs (redis/db) to run correctly 2019-09-17 19:39:57 +02:00
Samuel Štancl
67bfb20e96 Unique ID generator 'handle' -> 'generate' 2019-09-16 16:59:18 +02:00
Samuel Štancl
c65b6839ff Tenant-specific connections, some work to get tests running 2019-09-15 17:44:26 +02:00
Samuel Štancl
e25a01a997 TenantStorageException 2019-09-15 12:16:45 +02:00
Samuel Štancl
5fb11dfc9f DB driver ensureTenantCanBeCreated 2019-09-15 11:50:19 +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
Samuel Štancl
445b2650cf ID generation 2019-09-11 19:25:30 +02:00
Samuel Štancl
c20942cda5 Close #44 2019-09-11 15:34:25 +02:00
stancl
76fae5c287 Apply fixes from StyleCI 2019-09-11 12:32:39 +00:00
Samuel Štancl
69db512d30 Storage drivers WIP 2019-09-11 14:32:13 +02:00
Samuel Štancl
52542a8ee3 Merge branch 'master' of github.com:stancl/tenancy 2019-09-08 17:18:34 +02:00
Samuel Štancl
4872197fb6 TenantManager storage 2019-09-08 17:18:31 +02:00
stancl
8206cd07cc Apply fixes from StyleCI 2019-09-08 14:52:18 +00:00
Samuel Štancl
de54b5708c canCreate database 2019-09-08 16:52:10 +02:00
Samuel Štancl
f6717fa5c9 Feature -> FeatureProvider 2019-09-08 15:33:58 +02:00
Samuel Štancl
9dd90746aa WIP DatabaseManager 2019-09-08 15:31:45 +02:00
stancl
63ebbe1b44 Apply fixes from StyleCI 2019-09-08 13:05:21 +00:00
Samuel Štancl
ff71197341 Merge branch 'master' of github.com:stancl/tenancy 2019-09-08 15:05:09 +02:00
Samuel Štancl
37567336a5 Atomic tenant creation 2019-09-08 15:05:04 +02:00
stancl
11e278553e Apply fixes from StyleCI 2019-09-08 12:40:58 +00:00
Samuel Štancl
b0d119753d Remove some todos 2019-09-08 14:40:49 +02:00
Samuel Štancl
04b4e0644f WIP DatabaseManager 2019-09-08 13:46:07 +02:00
stancl
f66613476b Apply fixes from StyleCI 2019-09-08 09:41:45 +00:00
Samuel Štancl
39503fe76b Docblocks 2019-09-08 11:41:34 +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