lukinovec
|
0a6c1b69ea
|
Update RLS policy command (use DB transactions, improve nesting)
|
2023-05-24 12:59:12 +02:00 |
|
lukinovec
|
0991f62aa5
|
Add info to bootstrapper's docblock
|
2023-05-24 12:32:36 +02:00 |
|
lukinovec
|
8eb9e5f19b
|
Put DB operations inside transactions
|
2023-05-24 12:02:46 +02:00 |
|
lukinovec
|
6e2b56237f
|
Add docblock to PostgresTenancyBootstrapper
|
2023-05-24 11:04:57 +02:00 |
|
lukinovec
|
2461f76e59
|
Use $tenant->database()->getUsername(), default to $tenant->getTenantKey()
|
2023-05-24 10:50:03 +02:00 |
|
lukinovec
|
57df6e2b30
|
Delete setting database.connections.pgsql config in TestsCase
|
2023-05-24 10:38:12 +02:00 |
|
lukinovec
|
d60062131a
|
Complete todo cleanup
|
2023-05-23 10:30:47 +02:00 |
|
lukinovec
|
5aed290de6
|
Delete complete todos
|
2023-05-23 10:28:59 +02:00 |
|
lukinovec
|
ed688b6f87
|
Try minimizing docker-compose.yml changes
|
2023-05-23 10:16:39 +02:00 |
|
lukinovec
|
ef87056862
|
Revert all ci.yml changes
|
2023-05-23 10:11:07 +02:00 |
|
lukinovec
|
aec8d50b7d
|
Set default credentials
|
2023-05-23 09:57:24 +02:00 |
|
lukinovec
|
c4b1d1c6c4
|
Update configuring Postgres credentials in TestCase
|
2023-05-22 17:00:40 +02:00 |
|
lukinovec
|
aa21514c49
|
Try using different credentials than postgres:postgres
|
2023-05-22 16:06:58 +02:00 |
|
lukinovec
|
cb7f85c401
|
Use quotes in the healthcheck
|
2023-05-22 15:16:16 +02:00 |
|
lukinovec
|
a46b26800f
|
Add docblocks to single-db models, add return types to relationship methods
|
2023-05-22 15:01:49 +02:00 |
|
lukinovec
|
c13fe5183f
|
Revert change
|
2023-05-22 14:46:13 +02:00 |
|
lukinovec
|
46201c68c6
|
Revert Postgres credential changes in ci.yml
|
2023-05-22 14:07:03 +02:00 |
|
lukinovec
|
dfdfe533d6
|
Revert change
|
2023-05-22 13:55:48 +02:00 |
|
lukinovec
|
315b2dd113
|
Use PGPASSWORD instead of hardcoding POSTGRES_PASSWORD in ci.yml
|
2023-05-22 13:43:20 +02:00 |
|
lukinovec
|
601d897a63
|
Completely revert Postgres healthcheck changes
|
2023-05-22 13:32:26 +02:00 |
|
lukinovec
|
0b8fc9aa11
|
Try deleting arguments from Postgres container healthcheck
|
2023-05-22 13:18:56 +02:00 |
|
lukinovec
|
700d8e0ee6
|
Revert changes
|
2023-05-22 12:45:39 +02:00 |
|
lukinovec
|
c9f585a7e0
|
Try setting the Postgres password in docker-compose instead of ci.yml
|
2023-05-22 12:40:09 +02:00 |
|
lukinovec
|
a29a5bb89a
|
Add the default root password back to ci.yml
|
2023-05-22 12:36:25 +02:00 |
|
lukinovec
|
31dc922d87
|
Delete root Postgres password from ci.yml
|
2023-05-22 12:22:33 +02:00 |
|
lukinovec
|
462e84ce60
|
Delete POSTGRES_USER env var from ci.yml
|
2023-05-22 11:39:32 +02:00 |
|
lukinovec
|
53cc550cab
|
Delete PGPASSWORD and PGPORT env variables
|
2023-05-22 11:24:14 +02:00 |
|
lukinovec
|
aa227e82c2
|
Add root Postgres user credentials back to ci.yml
|
2023-05-22 11:23:32 +02:00 |
|
lukinovec
|
88b774f5b4
|
Delete Postgres DB credentials from ci.yml
|
2023-05-22 11:13:27 +02:00 |
|
lukinovec
|
fcb54cbe8e
|
Delete the UUID-specific logic, make RLS possible with non-UUID primary keys
|
2023-05-10 15:36:07 +02:00 |
|
lukinovec
|
90a0343223
|
Simplify UUID models
|
2023-05-10 13:07:08 +02:00 |
|
lukinovec
|
974950c300
|
Clean up
|
2023-05-10 12:49:53 +02:00 |
|
lukinovec
|
253061730e
|
Remove UUID constraint from RLS policy
|
2023-05-10 12:48:06 +02:00 |
|
lukinovec
|
99fc1e3f87
|
Add return types to relationship methods
|
2023-05-10 12:47:51 +02:00 |
|
lukinovec
|
0f921c1362
|
Fix Postgres test
|
2023-05-10 12:27:28 +02:00 |
|
lukinovec
|
fb042a0671
|
Use models with UUID in the tests (wip)
|
2023-05-10 11:21:43 +02:00 |
|
PHP CS Fixer
|
c41559fd3d
|
Fix code style (php-cs-fixer)
|
2023-05-10 03:54:12 +00:00 |
|
lukinovec
|
3449f19748
|
Fix PHPStan errors
|
2023-05-10 05:52:50 +02:00 |
|
PHP CS Fixer
|
4f9147bf81
|
Fix code style (php-cs-fixer)
|
2023-05-09 14:07:40 +00:00 |
|
lukinovec
|
17d779e130
|
Scope queries using Postgres RLS (WIP)
|
2023-05-09 16:07:06 +02:00 |
|
lukinovec
|
3c098dc78e
|
Add Postgres bootstrapper
|
2023-05-09 15:13:10 +02:00 |
|
lukinovec
|
eb7baa5360
|
Skip RLS test (RLS is WIP)
|
2023-04-28 14:28:20 +02:00 |
|
lukinovec
|
9ad183d296
|
Use tenantKeyColumn() instead of the config
|
2023-04-28 14:27:55 +02:00 |
|
lukinovec
|
ce7ddbf401
|
Complete scaffolded RLS test
|
2023-04-28 14:27:29 +02:00 |
|
lukinovec
|
b90b635f90
|
Add todos
|
2023-04-28 14:23:22 +02:00 |
|
lukinovec
|
0a2415319b
|
Improve RLS policies test, move setup things to beforeEach, scaffold test for scoping queries
|
2023-04-27 18:06:11 +02:00 |
|
lukinovec
|
dc81b0ec20
|
Move classes to separate files
|
2023-04-27 18:01:37 +02:00 |
|
PHP CS Fixer
|
483630897e
|
Fix code style (php-cs-fixer)
|
2023-04-27 11:48:25 +00:00 |
|
lukinovec
|
a5d004132c
|
Delete temp action, improve tests
|
2023-04-27 13:47:56 +02:00 |
|
lukinovec
|
2745f824aa
|
Fix command
|
2023-04-27 13:44:45 +02:00 |
|