lukinovec
|
8b8cd00ca8
|
CI testing
|
2023-06-16 08:38:16 +02:00 |
|
lukinovec
|
1f5ed5ba22
|
Use getModels (testing CI)
|
2023-06-16 08:37:31 +02:00 |
|
lukinovec
|
6bd78b4520
|
Delete dump()
|
2023-06-15 13:52:18 +02:00 |
|
lukinovec
|
b0effa60e7
|
debug
|
2023-06-15 13:44:39 +02:00 |
|
lukinovec
|
8c87dde85d
|
Use getTenantModels instead of getModels in RLS poilcy creation command
|
2023-06-15 13:44:31 +02:00 |
|
lukinovec
|
f0b31d1820
|
debug
|
2023-06-15 13:36:26 +02:00 |
|
lukinovec
|
9e9e81b69c
|
debug
|
2023-06-15 13:28:17 +02:00 |
|
lukinovec
|
7b092ec9d3
|
Check RLS policies by name
|
2023-06-15 13:16:57 +02:00 |
|
lukinovec
|
0f9e0f33b0
|
Move Postgres user permissions to config
|
2023-06-15 13:03:44 +02:00 |
|
lukinovec
|
1ce18d2759
|
Add basic model discovery test
|
2023-06-15 11:45:38 +02:00 |
|
lukinovec
|
5cb3b5f4c1
|
Improve query scoping test
|
2023-06-15 11:07:31 +02:00 |
|
lukinovec
|
e8b3c23c72
|
Purge central connection in RLS bootstrapper's bootstrap()
|
2023-06-15 11:06:57 +02:00 |
|
lukinovec
|
f859a5da06
|
Move RLS toggling and model directories config to tenancy.rls
|
2023-06-15 10:27:18 +02:00 |
|
lukinovec
|
6b19a26d2c
|
Automatically scan subdirectories in getModels()
|
2023-06-15 10:20:18 +02:00 |
|
PHP CS Fixer
|
37b36430e5
|
Fix code style (php-cs-fixer)
|
2023-06-15 07:33:39 +00:00 |
|
lukinovec
|
7d77c171d5
|
Delete unused method
|
2023-06-15 09:33:05 +02:00 |
|
lukinovec
|
97f227a037
|
Use instanceof instead of class_parents()
|
2023-06-15 09:32:56 +02:00 |
|
lukinovec
|
00af2d6eaf
|
Check for class traits instead of the DB columns
|
2023-06-15 09:32:25 +02:00 |
|
lukinovec
|
741af3929c
|
Add test for granting permissions to new Postgres users
|
2023-06-14 09:40:55 +02:00 |
|
lukinovec
|
c31340bff0
|
Only grant the permissions from the static property in the user creation job
|
2023-06-14 08:30:33 +02:00 |
|
lukinovec
|
73144a874a
|
Use new static instead of checking class_implements()
|
2023-06-14 08:27:40 +02:00 |
|
PHP CS Fixer
|
f0faf41522
|
Fix code style (php-cs-fixer)
|
2023-06-07 13:01:53 +00:00 |
|
lukinovec
|
ac00f03273
|
Move model-related things from Tenancy to a trait
|
2023-06-07 14:45:36 +02:00 |
|
PHP CS Fixer
|
a5a9f1431e
|
Fix code style (php-cs-fixer)
|
2023-06-07 11:59:10 +00:00 |
|
lukinovec
|
b7c24ef4ab
|
Rename RLSModel
|
2023-06-07 13:58:47 +02:00 |
|
PHP CS Fixer
|
f37a29f592
|
Fix code style (php-cs-fixer)
|
2023-06-07 11:56:08 +00:00 |
|
lukinovec
|
fa43d8ae1d
|
Rename RLSModel to RlsModel, fix global scope test
|
2023-06-07 13:55:43 +02:00 |
|
lukinovec
|
f84e3ffc02
|
Put DB statements into transaction
|
2023-06-07 11:00:28 +02:00 |
|
lukinovec
|
6bd23d5e3e
|
Simplify CreateRLSPoliciesForTenantTables
|
2023-06-07 10:03:53 +02:00 |
|
PHP CS Fixer
|
1bc6885a4c
|
Fix code style (php-cs-fixer)
|
2023-06-07 07:41:48 +00:00 |
|
lukinovec
|
d0d38cef26
|
Update RLS tests (test both the config and the interface)
|
2023-06-07 09:41:22 +02:00 |
|
lukinovec
|
bc28b0c2ed
|
Add RLSModel interface, update BelongsToTenant
|
2023-06-07 09:37:32 +02:00 |
|
PHP CS Fixer
|
b3d9090284
|
Fix code style (php-cs-fixer)
|
2023-06-06 13:48:32 +00:00 |
|
lukinovec
|
4175ac07bd
|
Rework model discovery
|
2023-06-06 15:46:50 +02:00 |
|
PHP CS Fixer
|
3bfef9e2c4
|
Fix code style (php-cs-fixer)
|
2023-06-05 14:36:19 +00:00 |
|
lukinovec
|
7d44322b7e
|
Rename test file, update tests
|
2023-06-05 16:35:50 +02:00 |
|
lukinovec
|
cc28d1813a
|
Move reusable methods to Tenancy, get rid of tenancy.models.rls
|
2023-06-05 16:35:16 +02:00 |
|
lukinovec
|
bad5c693ab
|
Add config('tenancy.database.rls')
|
2023-06-05 16:33:26 +02:00 |
|
lukinovec
|
cb775a9fba
|
Improve RLS policy creation command
|
2023-06-05 13:43:21 +02:00 |
|
PHP CS Fixer
|
9f166a59a4
|
Fix code style (php-cs-fixer)
|
2023-06-05 10:04:15 +00:00 |
|
lukinovec
|
983e4c1f84
|
Get RLS models from a temporary tenant
|
2023-06-05 12:03:48 +02:00 |
|
lukinovec
|
7c7680baf6
|
Make PostgresRLSBootstrapper a singleton
|
2023-06-05 12:02:41 +02:00 |
|
lukinovec
|
45df85d2a3
|
Reverr all docker-compose changes
|
2023-06-05 10:09:18 +02:00 |
|
lukinovec
|
5754f8bdc4
|
Get central connection name from the config
|
2023-06-05 10:08:48 +02:00 |
|
lukinovec
|
12b36f407d
|
Rename bootstrapper, improve docblock
|
2023-06-01 10:26:39 +02:00 |
|
lukinovec
|
3738d2885c
|
Revert beforeEach cleanup (tests fail in CI)
|
2023-05-31 14:02:54 +02:00 |
|
lukinovec
|
b964aa90d3
|
Improve code style, beforeEach cleanup
|
2023-05-31 13:58:25 +02:00 |
|
lukinovec
|
5b07afcc33
|
Improve comment
|
2023-05-31 13:44:22 +02:00 |
|
lukinovec
|
ac6bf3651a
|
Delete redundant str($x)->toString()
|
2023-05-31 13:33:37 +02:00 |
|
lukinovec
|
61519ecec3
|
Wrap makeModelUseRls() in transaction
|
2023-05-31 07:53:21 +02:00 |
|