lukinovec
87efdd2954
Toggle cache tags
2022-12-13 05:25:57 +01:00
lukinovec
5c6226befc
Use better class for the macro
2022-12-12 17:31:05 +01:00
PHP CS Fixer
bc70a2fab8
Fix code style (php-cs-fixer)
2022-12-12 16:25:57 +00:00
lukinovec
35a3412011
Move Cache::macro() to a slightly more appropriate place
2022-12-12 17:25:29 +01:00
lukinovec
d3c7fef002
Revert condition in CacheManager to avoid excessive nesting
2022-12-12 17:16:53 +01:00
lukinovec
b41d8d19dc
Uncomment cache tagging
2022-12-12 17:11:14 +01:00
PHP CS Fixer
3cadefd41c
Fix code style (php-cs-fixer)
2022-12-12 16:07:21 +00:00
lukinovec
d364568e53
Update CacheManager, add refreshStore()
2022-12-12 17:06:49 +01:00
lukinovec
9ec0b6dae3
Make Tenancy override CacheManager
2022-12-12 17:05:53 +01:00
lukinovec
dc9c8fcf68
Simplify cache store refreshing
2022-12-12 16:58:40 +01:00
PHP CS Fixer
012a39f79d
Fix code style (php-cs-fixer)
2022-12-09 11:22:03 +00:00
lukinovec
50d46139f6
Add macro
2022-12-09 12:21:37 +01:00
lukinovec
825a565fa2
Update prefix bootstrapper and test (setStore() in CacheManager and Repository needed)
2022-12-08 16:24:54 +01:00
lukinovec
4c33df1aa5
Rename CacheAction to CacheService
2022-12-07 14:48:52 +01:00
Abrar Ahmad
974414a12d
Update CacheAction.php
2022-12-07 18:26:10 +05:00
Abrar Ahmad
19255fd98f
use Repository in service class DI
2022-12-07 18:24:55 +05:00
Abrar Ahmad
2f91309990
introduce second tenant in test
2022-12-01 14:59:13 +05:00
Abrar Ahmad
6c955acd13
CacheService class as singleton
2022-12-01 14:58:13 +05:00
Abrar Ahmad
222686ec1d
CacheManager dependency injection test
2022-12-01 13:53:45 +05:00
Abrar Ahmad
70ee83b3b7
fix test
2022-11-30 13:27:15 +05:00
Abrar Ahmad
3407faf811
fix prefix test according to prefix changes
2022-11-30 13:25:39 +05:00
Abrar Ahmad
169a7f7cc9
build prefix using original prefix
2022-11-30 13:25:07 +05:00
Abrar Ahmad
387a10b918
use proper DI
2022-11-30 10:22:01 +05:00
Abrar Ahmad
2901d0190c
remove unused line
2022-11-29 18:11:10 +05:00
Abrar Ahmad
b920a2905e
assert tenants' data is accessible using the prefix from the central context
2022-11-29 17:13:04 +05:00
Abrar Ahmad
d6b4d9b7a7
user getTenantKey method
2022-11-28 15:09:39 +05:00
Abrar Ahmad
eef58bd93d
test names grammar
2022-11-28 12:50:14 +05:00
Abrar Ahmad
41a6f5b074
Update config.php
2022-11-28 12:08:56 +05:00
Abrar Ahmad
3cff2e3ba9
Update PrefixCacheBootstrapperTest.php
2022-11-24 12:05:19 +05:00
Abrar Ahmad
e550c7dcdd
Update PrefixCacheTenancyBootstrapper.php
2022-11-24 11:57:14 +05:00
Abrar Ahmad
1e44ef214d
add comments
2022-11-24 11:51:43 +05:00
Abrar Ahmad
2c0a8f4ef9
Update PrefixCacheBootstrapperTest.php
2022-11-23 12:59:51 +05:00
Abrar Ahmad
2302571f6a
Update PrefixCacheTenancyBootstrapper.php
2022-11-22 14:13:10 +05:00
Abrar Ahmad
c5f7de4b0e
fix phpstan error
2022-11-22 14:09:59 +05:00
Abrar Ahmad
e970c160d0
remove null check
2022-11-22 14:00:35 +05:00
Abrar Ahmad
c4f9324aa8
Create PrefixCacheBootstrapperTest.php
2022-11-22 13:54:01 +05:00
Abrar Ahmad
e5658fa300
cache prefix base from config
2022-11-22 11:32:23 +05:00
Abrar Ahmad
90c54ac733
DI app
2022-11-22 11:28:27 +05:00
Abrar Ahmad
c59a514490
remove comment
2022-11-22 11:21:35 +05:00
Abrar Ahmad
d6da626f73
prefix cache bootstrapper and tests
2022-11-21 17:53:21 +05:00
Abrar Ahmad
898d6c5d3b
cache prefix
2022-11-17 16:21:07 +05:00
Samuel Štancl
2a39b0526a
Fix #998 , properly replace ALL tenant_id literals
2022-11-10 16:44:52 +01:00
Samuel Štancl
8a00a105d0
Merge branch 'master' of github.com:archtechx/tenancy
2022-11-10 16:03:28 +01:00
Samuel Štancl
dd0f03f742
Fix #998 , centralize config used by BelongsToTenant and HasDomains
2022-11-10 16:03:13 +01:00
Abrar Ahmad
ea3e44576f
[4.x] Resource syncing improvements ( #992 )
...
* Update TenantSyncingTest.php
* Update ResourceSyncingTest.php
* rename UserTenant to ResourceTenant
* Revert "rename UserTenant to ResourceTenant"
This reverts commit f9ba778e1b .
* rename TenantUser class
* return style
* Update ResourceSyncingTest.php
* revert return style
* Update ResourceSyncingTest.php
2022-11-09 13:00:54 +01:00
Abrar Ahmad
99dd862b20
[4.x] [WIP] Add phpstan to CI ( #928 )
...
* add phpstan
* resolve phpstan issue from CI
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2022-11-08 13:47:24 +01:00
Samuel Štancl
942d79cbd7
resolve all phpstan issues
2022-11-08 13:34:04 +01:00
Samuel Štancl
b7a6953231
mention ./t in CONTRIBUTING.md
2022-11-04 15:17:54 +01:00
Abrar Ahmad
22d1b2065b
[4.x] Add feature to ignore the resource synchronization based on provided condition. ( #993 )
...
* wip
* add test
* readability
* remove group
* DisabledSync -> ConditionalSync; test both cases with dataset
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2022-11-04 15:04:29 +01:00
Abrar Ahmad
77c5ae1f32
[4.x] Configure attributes for synced resources when creating models ( #915 )
...
* configure attributes for creating resource
* Update ResourceSyncingTest.php
* Update ci.yml
* Update ResourceSyncingTest.php
* Update ci.yml
* cs
* comments
* Update tests/ResourceSyncingTest.php
Co-authored-by: Samuel Štancl <samuel@archte.ch>
* improve comments, move method to `SyncMaster` interface
* Revert "improve comments, move method to `SyncMaster` interface"
This reverts commit 5ddd50deb9 .
* Update ResourceSyncingTest.php
* Update ResourceSyncingTest.php
* update comment
* Update ResourceSyncingTest.php
* Update ResourceSyncingTest.php
* wip
* wip
* wip
* add a todo
* assert that creation attributes returns null
* classes at the end
* rename method to `getAttributesForCreation`
* Update ResourceSyncingTest.php
* update comments
* Fix little grammer
* merge default values with sync attributes and tests
* Update ResourceSyncingTest.php
* method rename
* method rename
* Update ResourceSyncingTest.php
* comments
* Update ResourceSyncingTest.php
* allow defining a mix of attribute names and default values
* add test
* code improvements
* Fix code style (php-cs-fixer)
* remove unused import
* fix all phpstan issues in resource syncing code
* Fix code style (php-cs-fixer)
* wip
* improve tests
* Update ResourceSyncingTest.php
* better names
* Update UpdateSyncedResource.php
* code style
* Update UpdateSyncedResource.php
* add comments above new tests
* methods dockblocks and correct names
* Update ResourceSyncingTest.php
* update comments
* remove different schema setup
* delete custom migrations
* self review
* grammar, code style
* refactor helpers for creating tenants
Co-authored-by: Samuel Štancl <samuel@archte.ch>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
2022-11-03 17:51:29 +01:00