1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-06 13:34:04 +00:00

Commit graph

  • fd24da9526
    Merge 00f4e9fcc0 into 23b18c93a0 Jimish Gamit 2026-05-05 09:59:56 +00:00
  • 00f4e9fcc0 Simplify tests lukinovec 2026-05-05 11:59:48 +02:00
  • 9ed7f1abf9
    Merge d9ae27425d into 23b18c93a0 lukinovec 2026-05-05 10:06:56 +02:00
  • d9ae27425d Delete redundant cleanup validate-sql-parameters lukinovec 2026-05-05 10:06:41 +02:00
  • 519c819e28 Delete user created in validation test lukinovec 2026-05-05 08:30:18 +02:00
  • 649c8027f4 Use unique DB names and passwords in test lukinovec 2026-05-04 17:14:16 +02:00
  • 099a666dbc Add valid password assertion lukinovec 2026-05-04 15:38:42 +02:00
  • 587f347b64 Restore default charset after assertion lukinovec 2026-05-04 15:19:12 +02:00
  • bbd8f6fd98 Add parentheses to instanceof check lukinovec 2026-05-04 14:37:01 +02:00
  • b03895de47 Merge branch 'validate-sql-parameters' into boilerplate-temp boilerplate-temp lukinovec 2026-05-04 13:41:57 +02:00
  • 03318752b6 Specify charset and collation config in test lukinovec 2026-05-04 13:40:42 +02:00
  • 66ae88a325 Fix non-string parameter validation assertion lukinovec 2026-05-04 13:26:01 +02:00
  • 90608e5a0b Merge branch 'validate-sql-parameters' into boilerplate-temp lukinovec 2026-05-04 13:07:25 +02:00
  • e59195eefe Improve coverage lukinovec 2026-05-04 13:04:57 +02:00
  • bdbfbd4561 Remove extra variable lukinovec 2026-05-04 12:32:25 +02:00
  • de913486e0 Specify exception message in assertions lukinovec 2026-05-04 12:27:46 +02:00
  • 6ed9975e85 Catch broader range of exceptions (harden() in DB bootstrapper) lukinovec 2026-05-04 12:14:39 +02:00
  • 98a808bb98 Quote schema names in GRANT statements lukinovec 2026-05-04 11:58:24 +02:00
  • fec170ada9 Fix code style (php-cs-fixer) github-actions[bot] 2026-05-04 09:55:13 +00:00
  • 338526d9fb Query for MySQL defaults instead of assuming them in charset test lukinovec 2026-05-04 11:54:45 +02:00
  • 2b3466f951 Check the current DB name instead of configured one in harden() lukinovec 2026-05-04 11:48:55 +02:00
  • 405aaafb4e Handle MySQL charset and collation lukinovec 2026-05-04 11:15:51 +02:00
  • 3e32ec2118
    Merge ddd8c68fbd into 23b18c93a0 lukinovec 2026-05-04 08:47:55 +02:00
  • 01fc80975f
    Merge f690945a82 into 23b18c93a0 lukinovec 2026-05-04 08:47:55 +02:00
  • 5299cfb6d4
    Merge 0c463ead28 into 23b18c93a0 lukinovec 2026-05-04 08:47:55 +02:00
  • 04d299885e
    Merge 6e474aca80 into 23b18c93a0 lukinovec 2026-05-04 08:47:54 +02:00
  • 47abd579fe
    Merge 7426adf402 into 23b18c93a0 lukinovec 2026-05-04 08:47:54 +02:00
  • abb231ae4c
    Merge 360b0ca7cb into 23b18c93a0 lukinovec 2026-05-04 08:47:54 +02:00
  • 487084b7d9
    Merge 142efdccd6 into 23b18c93a0 lukinovec 2026-05-04 08:47:54 +02:00
  • f2ef6091db
    Merge ac90ef08e4 into 23b18c93a0 lukinovec 2026-05-03 21:11:03 +02:00
  • 260eab5a9e
    Merge c2c2ca2e6a into 23b18c93a0 Sarwar Alam 2026-05-01 20:22:44 -07:00
  • 23b18c93a0
    Skip DB deletion when create_database=false, add ignoreFailures (#1394) master Thomas 2026-05-01 21:57:19 +02:00
  • 0772a940f7
    merge last two tests into one with a dataset Samuel Stancl 2026-05-01 21:44:57 +02:00
  • ab5e67fc34
    add tests Samuel Stancl 2026-05-01 21:27:21 +02:00
  • 9b11e69ddc
    merge master Samuel Stancl 2026-05-01 19:15:17 +02:00
  • c100d90e67
    move event() calls Samuel Stancl 2026-05-01 19:08:38 +02:00
  • c2c2ca2e6a
    use a different encoding than utf8 in tests, more robust assertions Samuel Stancl 2026-05-01 16:25:37 +02:00
  • e400b28daa
    query -> statement, remove unnecessary strtoupper() Samuel Stancl 2026-05-01 16:21:49 +02:00
  • 41701aff5f
    phpstan fix: Model covariants in Scope generics Samuel Stancl 2026-05-01 16:07:18 +02:00
  • 53f44762ca
    docker: change mssql env yaml syntax Samuel Stancl 2026-05-01 15:48:11 +02:00
  • ea20eb13b6 Validate in-memory DBs outside of isInMemory lukinovec 2026-05-01 15:22:40 +02:00
  • 429e0985fd Improve code quality and comments lukinovec 2026-05-01 15:17:38 +02:00
  • 26c161a940 Add regression test for makeConnectionConfig not working correctly with custom $path lukinovec 2026-05-01 15:16:54 +02:00
  • 7660ddd3ab Improve readability of harden() call lukinovec 2026-05-01 14:43:27 +02:00
  • 7f93f4460a Test that the SQLite DB manager recognizes in-memory DBs lukinovec 2026-05-01 14:35:18 +02:00
  • 9a9adc0d99 Use getPath() in makeConnectionConfig() lukinovec 2026-05-01 14:27:56 +02:00
  • e48d822772 Validate SQLite DB name unconditionally in getPath() lukinovec 2026-05-01 14:15:47 +02:00
  • 7683befa54 Fix code style (php-cs-fixer) github-actions[bot] 2026-05-01 12:10:13 +00:00
  • 48b4837905 Validate in-memory db names, move SQLite-specific methods to the SQLiteManager lukinovec 2026-05-01 14:09:56 +02:00
  • 7363318f6e Make in-memory DB detection more strict lukinovec 2026-05-01 13:09:37 +02:00
  • b1f0d0a43c
    Get central DB from config in harden test lukinovec 2026-05-01 12:34:28 +02:00
  • 2ae1f79d50 Cover empty string parameters lukinovec 2026-05-01 12:32:03 +02:00
  • 0ce3d863ce DATABASE_URL test: set config for both datasets lukinovec 2026-05-01 12:11:00 +02:00
  • 52f6857302 If harden throws an exception, revert connection back to central lukinovec 2026-05-01 12:08:02 +02:00
  • f5f5f1d4aa Fix DB bootstrapper test lukinovec 2026-05-01 11:52:56 +02:00
  • fc6a931a32 Fix code style (php-cs-fixer) github-actions[bot] 2026-05-01 09:50:30 +00:00
  • fbd1e02564 Correct DatabaseTenancyBootstrapper test filename lukinovec 2026-05-01 11:50:01 +02:00
  • 665404e7fa Add DatabaseTenancyBootstrapper::$harden lukinovec 2026-05-01 11:44:56 +02:00
  • 1a01164b87 Make validateFilename accept string instead of ?string lukinovec 2026-05-01 10:46:37 +02:00
  • 2bdda23a56 Disallow empty strings as filenames lukinovec 2026-05-01 10:37:22 +02:00
  • f3836cc623 Fix code style (php-cs-fixer) github-actions[bot] 2026-05-01 07:34:32 +00:00
  • 9611a05f35 Skip null parameters, throw for other non-string parameters lukinovec 2026-05-01 09:34:11 +02:00
  • e8168eb0b9 Add string check to validateFilename, swap validation order lukinovec 2026-05-01 09:16:17 +02:00
  • d3607f84bf Use 'allowedCharacters' instead of 'allowlist', code quality lukinovec 2026-05-01 09:11:55 +02:00
  • 76c324d758 Add validateFilename() lukinovec 2026-05-01 09:03:50 +02:00
  • 2bd3a868ec Quote database parameter in GRANT statement for consistency lukinovec 2026-04-30 16:14:06 +02:00
  • 37a4c7dd27 Check if paremeter is string lukinovec 2026-04-30 15:08:46 +02:00
  • bacbf934e1 Improve validation exception message lukinovec 2026-04-30 14:52:53 +02:00
  • 50ea524ad2 Simplify test, improve comments lukinovec 2026-04-30 11:16:39 +02:00
  • 4bdb877ca4 Cover null parameter skipping lukinovec 2026-04-30 10:45:29 +02:00
  • 46f73c42ad Improve ValidatesDatabaseParameters comments, delete extra early return lukinovec 2026-04-30 10:44:36 +02:00
  • 322257f456 Validate SQLite filename in databaseExists lukinovec 2026-04-30 09:49:03 +02:00
  • 75b74f2e6c Make validateParameter have void return type lukinovec 2026-04-30 09:28:48 +02:00
  • f3f1ab977a
    Skip null parameters in validateParameter lukinovec 2026-04-30 09:15:18 +02:00
  • 85929493d5 Improve ValidatesDatabaseParameters docblocks lukinovec 2026-04-29 17:30:58 +02:00
  • 740d53e9cc Rename ValidatesSqlParameters to ValidatesDatabaseParameters lukinovec 2026-04-29 17:25:15 +02:00
  • 4a3e6bae00 Test invalid passwords, improve test name and comments lukinovec 2026-04-29 17:23:22 +02:00
  • 0fdb8b2041 Validate user passwords in DB managers lukinovec 2026-04-29 17:22:24 +02:00
  • db03997339 Validate SQLite DB names in create/deleteDatabase() lukinovec 2026-04-29 16:01:49 +02:00
  • d5087d19c5 Extract parameter validation into a trait lukinovec 2026-04-29 15:54:13 +02:00
  • 0c463ead28 Resolve docs to-do pending-improvements lukinovec 2026-04-29 14:21:12 +02:00
  • 182f3a2eb2 Fix code style (php-cs-fixer) github-actions[bot] 2026-04-29 12:16:22 +00:00
  • 5adbc14a7e Test SQL parameter validation lukinovec 2026-04-29 14:16:00 +02:00
  • bdf592c0ff Add parameter validation to DB managers lukinovec 2026-04-29 14:13:56 +02:00
  • ad7d229daf Use parameter binding in SELECT queries lukinovec 2026-04-29 10:21:47 +02:00
  • 808f52765c Use select() instead of selectOne() in databaseExists() and userExists() lukinovec 2026-04-29 10:08:45 +02:00
  • 2dfbbef0f3 Merge branch 'pending-improvements' into boilerplate-dev boilerplate-dev lukinovec 2026-04-28 14:55:44 +02:00
  • 4764b99c8f Merge pending_since into the other attributes during pending tenant creation lukinovec 2026-04-28 12:50:31 +02:00
  • e81e6ac651 Add regression test for jobs recognizing pending tenants lukinovec 2026-04-28 12:47:42 +02:00
  • e3673f5557 Dispatch pending tenant creating/created events in the appropriate hooks lukinovec 2026-04-28 12:28:31 +02:00
  • 0bb112dbdf Cover invalid --with-pending values in tests lukinovec 2026-04-28 12:19:09 +02:00
  • f309dcc65c Test pending tenant creation with job pipelines lukinovec 2026-04-28 10:59:04 +02:00
  • 66114e6835 Default to including pending tenants in MigrateDatabase and SeedDatabase lukinovec 2026-04-28 10:55:42 +02:00
  • b592d3dad4 Give pending_since to pending tenants during creation lukinovec 2026-04-28 10:51:15 +02:00
  • 6b4d22bb92 Update --with-pending tests lukinovec 2026-04-28 10:39:42 +02:00
  • 950ff0fbfd Make --with-pending override include_in_queries when passed lukinovec 2026-04-28 10:35:54 +02:00
  • 6b0ff48a86 Delete the "utf8" specification in test comment lukinovec 2026-04-24 12:15:40 +02:00
  • d41ac46340 Test how the Postgres DB manager handles charsets lukinovec 2026-04-24 12:02:13 +02:00
  • 7001e2d161 Only specify ENCODING= in CREATE DATABASE if charset is configured lukinovec 2026-04-24 11:52:18 +02:00
  • e8608f1d05 Merge branch 'master' into boilerplate-dev lukinovec 2026-04-24 09:51:40 +02:00