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

Commit graph

  • 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
  • 23b18c93a0
    Skip DB deletion when create_database=false, add ignoreFailures (#1394) 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 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 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
  • 984911946a
    Change tenant storage listeners into jobs (#1446) lukinovec 2026-04-22 16:45:54 +02:00
  • 5d047089ea Merge branch 'master' into boilerplate-dev lukinovec 2026-04-22 14:47:28 +02:00
  • ab2a4d8438
    Fix chaining withoutPending() with where() (#1457) lukinovec 2026-04-22 14:32:53 +02:00
  • a11e2e0167 Simplify assertions lukinovec 2026-04-22 13:53:27 +02:00
  • 56e2d85087 Improve test lukinovec 2026-04-22 13:46:37 +02:00
  • 517861506b
    Test closure formatting lukinovec 2026-04-22 13:36:28 +02:00
  • c81ab75421
    Use $query parameter instead of $builder in the where() closure lukinovec 2026-04-22 13:36:01 +02:00
  • eed66c93f1 Wrap withoutPending where clauses in a closure lukinovec 2026-04-22 13:03:00 +02:00
  • f881203af8 Add regression test for withoutPending lukinovec 2026-04-22 13:01:19 +02:00
  • 230ee7ac51
    Update tenant filtering logic for recently created models Leandro Gehlen 2026-04-22 07:51:33 -03:00
  • 142efdccd6 Improve test name lukinovec 2026-04-21 14:04:59 +02:00
  • ac90ef08e4 Improve wording lukinovec 2026-04-21 13:46:26 +02:00
  • ddd8c68fbd Improve comments broadcasting-fixes lukinovec 2026-04-21 13:25:05 +02:00
  • 6e474aca80 Improve comments, test reverting on failure during configuration lukinovec 2026-04-21 12:25:44 +02:00
  • 8276f3b008 Improve comments in tests lukinovec 2026-04-21 12:03:11 +02:00
  • c5683d8e00 Extract cleanup in test file lukinovec 2026-04-21 12:02:52 +02:00
  • 3f9f7cda0b
    make test more clear Samuel Stancl 2026-04-20 19:35:27 +02:00
  • 5bb76e1421
    refactor 1. Remove the CreateTenantStorage job altogether since as the docblock says the class should be redundant now that FilesystemTenancyBootstrapper creates this path automatically when storage_path suffixing is enabled 2. Remove docblock on the DeleteTenantStorage job - a class's docblock should describe what it does, not how it handles edge cases. Here the former isn't even necessary and the latter is well explained by comments in the implementation. 3. Remove the CreateTenantStorage test following the class's removal, the test would pass on its own even without the job with just tenancy initialization as mentioned above. 4. Slightly improve the structure of the DeleteTenantStorage job and deprecated listener 5. Improve deprecation notices so they include full steps for upgrading to the new approach. Samuel Stancl 2026-04-20 18:22:04 +02:00
  • 97e856616c Add deprecated listener versions of the storage jobs lukinovec 2026-04-20 09:05:26 +02:00
  • 66957c34e1 Add docblocks to $tries and $backoff properties Josh Salway 2026-04-20 11:25:04 +10:00
  • 39f01e2b54 Extend retry policy to all queued jobs and add $backoff Josh Salway 2026-04-20 11:12:42 +10:00
  • 02093d67d8 Add $tries = 3 to tenant lifecycle jobs Josh Salway 2026-04-20 10:48:16 +10:00
  • fa075ef187
    Merge branch 'master' into add-log-bootstrapper lukinovec 2026-04-15 11:46:44 +02:00
  • 360b0ca7cb
    Merge branch 'master' into redundant-check lukinovec 2026-04-15 11:46:40 +02:00
  • 7426adf402
    Merge branch 'master' into subdomain-check lukinovec 2026-04-15 11:46:37 +02:00