1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 10:34:04 +00:00
Commit graph

1151 commits

Author SHA1 Message Date
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
lukinovec
b66773da80 Try conditionally creating tenants table 2023-04-27 13:08:24 +02:00
PHP CS Fixer
d14eb8609b Fix code style (php-cs-fixer) 2023-04-26 16:10:57 +00:00
lukinovec
e169cf49fa Create and drop schema in tests 2023-04-26 18:10:19 +02:00
PHP CS Fixer
4eea9f1031 Fix code style (php-cs-fixer) 2023-04-26 13:34:54 +00:00
lukinovec
034c284303 wip 2023-04-26 15:34:27 +02:00
lukinovec
562d507482 Test if policies get created correctly using action 2023-04-26 15:25:50 +02:00
lukinovec
338d6f1151 Revert ci.yml changes 2023-04-26 15:09:12 +02:00
lukinovec
6496f77415 Update ci.yml 2023-04-26 15:07:14 +02:00
lukinovec
044406c917 Update ci.yml 2023-04-26 15:06:27 +02:00
lukinovec
8a7c78fd53 Change environment to env 2023-04-26 15:04:05 +02:00
lukinovec
b66a163393 Update ci.yml 2023-04-26 15:01:36 +02:00
lukinovec
e58efc5964 Use latest Postgres version in docker-compose 2023-04-26 15:01:20 +02:00
lukinovec
ab0e53b402 Update ci.yml 2023-04-26 14:22:08 +02:00
lukinovec
910da724e4 WIP 2023-04-26 14:02:18 +02:00
lukinovec
e15eb01c7f WIP 2023-04-26 13:58:52 +02:00
lukinovec
add92b99cc Fixing test WIP 2023-04-26 13:54:56 +02:00
lukinovec
fd254e6a45 Update ci.yml 2023-04-26 13:35:48 +02:00
lukinovec
800af2d818 Try fixing the CI issue 2023-04-26 13:11:37 +02:00
lukinovec
9226a1ec6c Fix syntax error 2023-04-26 12:48:04 +02:00
lukinovec
44acaadb6e Improve command for creating RLS policies 2023-04-26 12:43:45 +02:00
lukinovec
331df8e239 Update Postgres tests 2023-04-26 12:42:19 +02:00
lukinovec
4ceb7c82e1 Add test for creating RLS policies for tables 2023-04-25 18:00:44 +02:00
lukinovec
9f4079e774 Revert extra changes in docker-compose 2023-04-25 14:46:27 +02:00
lukinovec
aafb629bae Use env variables in docker-compose 2023-04-25 14:33:09 +02:00
lukinovec
f4b0f4cee6 Delete 'user' from Postgres CI 2023-04-25 14:29:05 +02:00
lukinovec
7f1f594809 Merge branch 'master' of github.com:archtechx/tenancy into add-postgres-rls-support 2023-04-25 14:25:01 +02:00
lukinovec
607ef15758 Revert ci.yml changes 2023-04-25 14:24:28 +02:00
lukinovec
18b47fb4d0 Change Postgres port 2023-04-25 14:20:55 +02:00
lukinovec
28f8e3854a Update dependencies 2023-04-25 14:13:26 +02:00
lukinovec
a22666ed2d Update ci.yml 2023-04-25 14:12:07 +02:00
lukinovec
6e9d6aa5f4 Fix env variables in docker-compose 2023-04-25 14:04:56 +02:00
lukinovec
e7736c8244 Use port 5432 2023-04-25 13:54:26 +02:00