1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-03-22 23:24:04 +00:00

Commit graph

  • 00af2d6eaf Check for class traits instead of the DB columns lukinovec 2023-06-15 09:32:25 +02:00
  • 741af3929c Add test for granting permissions to new Postgres users lukinovec 2023-06-14 09:40:55 +02:00
  • c31340bff0 Only grant the permissions from the static property in the user creation job lukinovec 2023-06-14 08:30:33 +02:00
  • 73144a874a Use new static instead of checking class_implements() lukinovec 2023-06-14 08:27:40 +02:00
  • c1fb86cf34
    Prevent 500 error when non-real path is given Craig Riley 2023-06-11 01:53:58 +01:00
  • f93d075fa5
    Uniform deletion of 'tenant' from route params Craig Riley 2023-06-11 01:33:34 +01:00
  • a3a0320fb4
    Controller action for path-identified assets Craig Riley 2023-06-11 01:32:26 +01:00
  • e351a68f6f
    Changed controller action Craig Riley 2023-06-11 01:30:50 +01:00
  • 84f40f542c
    Add alternate route for path-identified assets Craig Riley 2023-06-11 01:29:22 +01:00
  • 212653e245
    Adapt tenant_asset for path identification Craig Riley 2023-06-11 01:26:31 +01:00
  • f0faf41522 Fix code style (php-cs-fixer) PHP CS Fixer 2023-06-07 13:01:53 +00:00
  • ac00f03273 Move model-related things from Tenancy to a trait lukinovec 2023-06-07 14:45:36 +02:00
  • a5a9f1431e Fix code style (php-cs-fixer) PHP CS Fixer 2023-06-07 11:59:10 +00:00
  • b7c24ef4ab Rename RLSModel lukinovec 2023-06-07 13:58:47 +02:00
  • f37a29f592 Fix code style (php-cs-fixer) PHP CS Fixer 2023-06-07 11:56:08 +00:00
  • fa43d8ae1d Rename RLSModel to RlsModel, fix global scope test lukinovec 2023-06-07 13:55:43 +02:00
  • f84e3ffc02 Put DB statements into transaction lukinovec 2023-06-07 11:00:28 +02:00
  • 6bd23d5e3e Simplify CreateRLSPoliciesForTenantTables lukinovec 2023-06-07 10:03:40 +02:00
  • 1bc6885a4c Fix code style (php-cs-fixer) PHP CS Fixer 2023-06-07 07:41:48 +00:00
  • d0d38cef26 Update RLS tests (test both the config and the interface) lukinovec 2023-06-07 09:41:22 +02:00
  • bc28b0c2ed Add RLSModel interface, update BelongsToTenant lukinovec 2023-06-07 09:37:32 +02:00
  • b3d9090284 Fix code style (php-cs-fixer) PHP CS Fixer 2023-06-06 13:48:32 +00:00
  • 4175ac07bd Rework model discovery lukinovec 2023-06-06 15:46:50 +02:00
  • 3bfef9e2c4 Fix code style (php-cs-fixer) PHP CS Fixer 2023-06-05 14:36:19 +00:00
  • 7d44322b7e Rename test file, update tests lukinovec 2023-06-05 16:35:50 +02:00
  • cc28d1813a Move reusable methods to Tenancy, get rid of tenancy.models.rls lukinovec 2023-06-05 16:35:16 +02:00
  • bad5c693ab Add config('tenancy.database.rls') lukinovec 2023-06-05 16:33:26 +02:00
  • cb775a9fba Improve RLS policy creation command lukinovec 2023-06-05 13:43:21 +02:00
  • 9f166a59a4 Fix code style (php-cs-fixer) PHP CS Fixer 2023-06-05 10:04:15 +00:00
  • 983e4c1f84 Get RLS models from a temporary tenant lukinovec 2023-06-05 12:03:48 +02:00
  • 7c7680baf6 Make PostgresRLSBootstrapper a singleton lukinovec 2023-06-05 12:02:41 +02:00
  • 45df85d2a3 Reverr all docker-compose changes lukinovec 2023-06-05 10:09:18 +02:00
  • 5754f8bdc4 Get central connection name from the config lukinovec 2023-06-05 10:08:48 +02:00
  • 825ef3bbe8
    Merge branch 'archtechx:3.x' into 3.x Leandro Gehlen 2023-06-01 14:47:15 -03:00
  • 12b36f407d Rename bootstrapper, improve docblock lukinovec 2023-06-01 10:26:39 +02:00
  • 3738d2885c Revert beforeEach cleanup (tests fail in CI) lukinovec 2023-05-31 14:02:54 +02:00
  • b964aa90d3 Improve code style, beforeEach cleanup lukinovec 2023-05-31 13:58:25 +02:00
  • 5b07afcc33 Improve comment lukinovec 2023-05-31 13:44:22 +02:00
  • 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