1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 00:14:05 +00:00

Commit graph

  • ac6bf3651a Delete redundant str($x)->toString() lukinovec 2023-05-31 13:33:37 +02:00
  • 61519ecec3 Wrap makeModelUseRls() in transaction lukinovec 2023-05-31 07:53:21 +02:00
  • 3ef1c38414 Delete single-call DB transactions lukinovec 2023-05-31 07:38:43 +02:00
  • db4aec7771
    fix: fixes custom disk file url for non-root_override disks Suraj Dadral 2023-05-30 12:06:23 +05:30
  • 8ccc27e8c3 Rename bootstrapper lukinovec 2023-05-29 11:15:38 +02:00
  • 28efc0ca97 Update model docblocks lukinovec 2023-05-29 09:55:59 +02:00
  • 0cea45f101 Use specific Postgres version, use superuser credentials directly lukinovec 2023-05-29 09:54:40 +02:00
  • 1f9a344f33 Make the (Scoped)Comment model distinction clearer lukinovec 2023-05-24 15:12:35 +02:00
  • 47fe86c21e Use DB transactions lukinovec 2023-05-24 14:57:06 +02:00
  • ea9690f915 Handle phpstan errors lukinovec 2023-05-24 14:47:17 +02:00
  • ae568e1227 Reduce nesting, rename methods lukinovec 2023-05-24 14:29:30 +02:00
  • 526002c7b2 Fix code style (php-cs-fixer) PHP CS Fixer 2023-05-24 10:59:36 +00:00
  • 0a6c1b69ea Update RLS policy command (use DB transactions, improve nesting) lukinovec 2023-05-24 12:59:12 +02:00
  • 0991f62aa5 Add info to bootstrapper's docblock lukinovec 2023-05-24 12:32:36 +02:00
  • 8eb9e5f19b Put DB operations inside transactions lukinovec 2023-05-24 12:02:46 +02:00
  • 6e2b56237f Add docblock to PostgresTenancyBootstrapper lukinovec 2023-05-24 11:04:57 +02:00
  • 2461f76e59 Use $tenant->database()->getUsername(), default to $tenant->getTenantKey() lukinovec 2023-05-24 10:50:03 +02:00
  • 57df6e2b30 Delete setting database.connections.pgsql config in TestsCase lukinovec 2023-05-24 10:38:12 +02:00
  • d60062131a Complete todo cleanup lukinovec 2023-05-23 10:30:47 +02:00
  • 5aed290de6 Delete complete todos lukinovec 2023-05-23 10:28:59 +02:00
  • ed688b6f87 Try minimizing docker-compose.yml changes lukinovec 2023-05-23 10:16:39 +02:00
  • ef87056862 Revert all ci.yml changes lukinovec 2023-05-23 10:11:07 +02:00
  • aec8d50b7d Set default credentials lukinovec 2023-05-23 09:57:24 +02:00
  • c4b1d1c6c4 Update configuring Postgres credentials in TestCase lukinovec 2023-05-22 17:00:40 +02:00
  • aa21514c49 Try using different credentials than postgres:postgres lukinovec 2023-05-22 16:06:58 +02:00
  • cb7f85c401 Use quotes in the healthcheck lukinovec 2023-05-22 15:16:16 +02:00
  • a46b26800f Add docblocks to single-db models, add return types to relationship methods lukinovec 2023-05-22 15:01:49 +02:00
  • c13fe5183f Revert change lukinovec 2023-05-22 14:46:13 +02:00
  • 46201c68c6 Revert Postgres credential changes in ci.yml lukinovec 2023-05-22 14:07:03 +02:00
  • dfdfe533d6 Revert change lukinovec 2023-05-22 13:55:48 +02:00
  • 315b2dd113 Use PGPASSWORD instead of hardcoding POSTGRES_PASSWORD in ci.yml lukinovec 2023-05-22 13:43:20 +02:00
  • 601d897a63 Completely revert Postgres healthcheck changes lukinovec 2023-05-22 13:32:26 +02:00
  • 0b8fc9aa11 Try deleting arguments from Postgres container healthcheck lukinovec 2023-05-22 13:18:56 +02:00
  • 700d8e0ee6 Revert changes lukinovec 2023-05-22 12:45:39 +02:00
  • c9f585a7e0 Try setting the Postgres password in docker-compose instead of ci.yml lukinovec 2023-05-22 12:40:09 +02:00
  • a29a5bb89a Add the default root password back to ci.yml lukinovec 2023-05-22 12:36:25 +02:00
  • 31dc922d87 Delete root Postgres password from ci.yml lukinovec 2023-05-22 12:22:33 +02:00
  • 462e84ce60 Delete POSTGRES_USER env var from ci.yml lukinovec 2023-05-22 11:39:32 +02:00
  • 53cc550cab Delete PGPASSWORD and PGPORT env variables lukinovec 2023-05-22 11:24:14 +02:00
  • aa227e82c2 Add root Postgres user credentials back to ci.yml lukinovec 2023-05-22 11:23:32 +02:00
  • 88b774f5b4 Delete Postgres DB credentials from ci.yml lukinovec 2023-05-22 11:13:27 +02:00
  • fcb54cbe8e Delete the UUID-specific logic, make RLS possible with non-UUID primary keys lukinovec 2023-05-10 15:36:07 +02:00
  • 90a0343223 Simplify UUID models lukinovec 2023-05-10 13:07:08 +02:00
  • 974950c300 Clean up lukinovec 2023-05-10 12:49:53 +02:00
  • 253061730e Remove UUID constraint from RLS policy lukinovec 2023-05-10 12:48:06 +02:00
  • 99fc1e3f87 Add return types to relationship methods lukinovec 2023-05-10 12:47:51 +02:00
  • 0f921c1362 Fix Postgres test lukinovec 2023-05-10 12:27:28 +02:00
  • fb042a0671 Use models with UUID in the tests (wip) lukinovec 2023-05-10 11:21:43 +02:00
  • c41559fd3d Fix code style (php-cs-fixer) PHP CS Fixer 2023-05-10 03:54:12 +00:00
  • 3449f19748 Fix PHPStan errors lukinovec 2023-05-10 05:52:50 +02:00
  • 4f9147bf81 Fix code style (php-cs-fixer) PHP CS Fixer 2023-05-09 14:07:40 +00:00
  • 17d779e130 Scope queries using Postgres RLS (WIP) lukinovec 2023-05-09 16:07:06 +02:00
  • 3c098dc78e Add Postgres bootstrapper lukinovec 2023-05-09 15:13:10 +02:00
  • eb7baa5360 Skip RLS test (RLS is WIP) lukinovec 2023-04-28 14:28:20 +02:00
  • 9ad183d296 Use tenantKeyColumn() instead of the config lukinovec 2023-04-28 14:27:55 +02:00
  • ce7ddbf401 Complete scaffolded RLS test lukinovec 2023-04-28 14:27:29 +02:00
  • b90b635f90 Add todos lukinovec 2023-04-28 14:23:22 +02:00
  • 0a2415319b Improve RLS policies test, move setup things to beforeEach, scaffold test for scoping queries lukinovec 2023-04-27 18:06:11 +02:00
  • dc81b0ec20 Move classes to separate files lukinovec 2023-04-27 18:01:37 +02:00
  • d9b7107900
    Typo in PHPdoc (#1106) Chris Thompson 2023-04-27 20:40:27 +07:00
  • c4eacb4d5a
    Typo in PHPdoc Chris Thompson 2023-04-27 18:52:20 +07:00
  • 483630897e Fix code style (php-cs-fixer) PHP CS Fixer 2023-04-27 11:48:25 +00:00
  • a5d004132c Delete temp action, improve tests lukinovec 2023-04-27 13:47:56 +02:00
  • 2745f824aa Fix command lukinovec 2023-04-27 13:44:45 +02:00
  • b66773da80 Try conditionally creating tenants table lukinovec 2023-04-27 13:08:24 +02:00
  • d14eb8609b Fix code style (php-cs-fixer) PHP CS Fixer 2023-04-26 16:10:57 +00:00
  • e169cf49fa Create and drop schema in tests lukinovec 2023-04-26 18:09:50 +02:00
  • 4eea9f1031 Fix code style (php-cs-fixer) PHP CS Fixer 2023-04-26 13:34:54 +00:00
  • 034c284303 wip lukinovec 2023-04-26 15:34:27 +02:00
  • 562d507482 Test if policies get created correctly using action lukinovec 2023-04-26 15:25:50 +02:00
  • 338d6f1151 Revert ci.yml changes lukinovec 2023-04-26 15:09:12 +02:00
  • 6496f77415 Update ci.yml lukinovec 2023-04-26 15:07:14 +02:00
  • 044406c917 Update ci.yml lukinovec 2023-04-26 15:06:27 +02:00
  • 8a7c78fd53 Change environment to env lukinovec 2023-04-26 15:04:05 +02:00
  • b66a163393 Update ci.yml lukinovec 2023-04-26 15:01:36 +02:00
  • e58efc5964 Use latest Postgres version in docker-compose lukinovec 2023-04-26 15:01:20 +02:00
  • ab0e53b402 Update ci.yml lukinovec 2023-04-26 14:22:08 +02:00
  • 910da724e4 WIP lukinovec 2023-04-26 14:02:18 +02:00
  • e15eb01c7f WIP lukinovec 2023-04-26 13:58:52 +02:00
  • add92b99cc Fixing test WIP lukinovec 2023-04-26 13:54:56 +02:00
  • fd254e6a45 Update ci.yml lukinovec 2023-04-26 13:35:48 +02:00
  • 800af2d818 Try fixing the CI issue lukinovec 2023-04-26 13:11:37 +02:00
  • 9226a1ec6c Fix syntax error lukinovec 2023-04-26 12:48:04 +02:00
  • 44acaadb6e Improve command for creating RLS policies lukinovec 2023-04-26 12:43:45 +02:00
  • 331df8e239 Update Postgres tests lukinovec 2023-04-26 12:42:19 +02:00
  • 4ceb7c82e1 Add test for creating RLS policies for tables lukinovec 2023-04-25 18:00:44 +02:00
  • 9f4079e774 Revert extra changes in docker-compose lukinovec 2023-04-25 14:46:27 +02:00
  • aafb629bae Use env variables in docker-compose lukinovec 2023-04-25 14:33:09 +02:00
  • f4b0f4cee6 Delete 'user' from Postgres CI lukinovec 2023-04-25 14:29:05 +02:00
  • 7f1f594809 Merge branch 'master' of github.com:archtechx/tenancy into add-postgres-rls-support lukinovec 2023-04-25 14:25:01 +02:00
  • 607ef15758 Revert ci.yml changes lukinovec 2023-04-25 14:24:28 +02:00
  • 18b47fb4d0 Change Postgres port lukinovec 2023-04-25 14:20:55 +02:00
  • 28f8e3854a Update dependencies lukinovec 2023-04-25 14:13:26 +02:00
  • a22666ed2d Update ci.yml lukinovec 2023-04-25 14:12:07 +02:00
  • 6e9d6aa5f4 Fix env variables in docker-compose lukinovec 2023-04-25 14:04:56 +02:00
  • e7736c8244 Use port 5432 lukinovec 2023-04-25 13:54:26 +02:00
  • 55258e6411 Add Postgres port to ci.yml lukinovec 2023-04-25 13:39:37 +02:00
  • b4238e5cf8 Use env variables in docker-compose lukinovec 2023-04-25 13:31:27 +02:00
  • e4aeccb2b0 Make postgres work in tests lukinovec 2023-04-25 12:33:56 +02:00
  • ae25e25715 Fix job & test lukinovec 2023-04-25 12:33:29 +02:00