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

Commit graph

  • e6cc6d6777 phpstan: Remove ignore that is no longer necessary Samuel Štancl 2025-09-01 21:09:47 +02:00
  • f87f353cf9 docker-compose: Properly pass through PHP_VERSION Samuel Štancl 2025-09-01 21:09:47 +02:00
  • a0a9b85982 Refactor DatabaseConfig, minor DB manager improvements, resolve todos Samuel Štancl 2025-09-01 21:09:47 +02:00
  • 2208363ec7
    Remove redundant condition check Victor R 2025-10-01 14:00:51 -04:00
  • 85a319a57a
    Apply suggestion from @Copilot Victor R 2025-10-01 13:59:03 -04:00
  • ed538ccf92
    Refactor disk management in FilesystemTenancyBootstrapper Victor R 2025-10-01 13:55:41 -04:00
  • 6c0e58ad10
    Apply suggestion from @Copilot Victor R 2025-10-01 13:53:58 -04:00
  • 2a864e237e
    Refactor forgetDisks to handle scoped disks Victor R 2025-10-01 13:32:59 -04:00
  • 3846fe88ec install: support starring using GH CLI Samuel Štancl 2025-09-26 13:41:43 +02:00
  • b320f8f33d Add TenantConfigBootstrapper, deprecate Feature implementation Samuel Štancl 2025-09-26 11:29:14 +02:00
  • c152031cc1 util: add static_properties.nu, more portable shebangs, PHP 8.5 beta Samuel Štancl 2025-09-18 00:32:08 +02:00
  • d983bf9547
    Add tenant parameter BEFORE existing prefixes by default, add tenantParameterBeforePrefix() to allow customizing this (#1393) lukinovec 2025-09-03 15:56:12 +02:00
  • d9ee7cac44 Merge remote-tracking branch 'origin/august' into tenant-param-before-route-prefix lukinovec 2025-09-03 15:35:54 +02:00
  • 364637dc23 Fix code style (php-cs-fixer) github-actions[bot] 2025-09-01 14:14:34 +00:00
  • 13a2209f11 SQLite improvements Samuel Štancl 2025-09-01 02:07:36 +02:00
  • 4e22c4dd6e Remove temp todo Samuel Štancl 2025-08-31 23:37:51 +02:00
  • b2f95592a6 Fix code style (php-cs-fixer) github-actions[bot] 2025-08-31 21:19:08 +00:00
  • 4578c9ed7d Features refactor Samuel Štancl 2025-08-31 23:14:07 +02:00
  • 33e4a8e4e2 Remove and recategorize todos Samuel Štancl 2025-08-31 16:57:52 +02:00
  • 035f8a3d14 fix: abort deletion when setting exists ju5t 2025-08-27 19:22:00 +02:00
  • 24797278cd phpstan fix Samuel Štancl 2025-08-25 17:50:09 +02:00
  • 1f0c668578 Merge branch 'master' into august Samuel Štancl 2025-08-25 17:44:11 +02:00
  • e806825f71 Merge branch 'master' of github.com:archtechx/tenancy Samuel Štancl 2025-08-25 17:43:53 +02:00
  • a4309fdbc7 Remove TestCase::randomString() Samuel Štancl 2025-08-25 17:43:45 +02:00
  • 99d854ed8e
    [4.x] Fix ViteBundler not affecting Vite static calls (#1389) Farishrf 2025-08-25 18:27:59 +03:00
  • 412c1d04d6
    Merge branch 'master' into add-log-bootstrapper Samuel Štancl 2025-08-25 16:18:20 +02:00
  • 70f939715f Re-add file creation logic Samuel Štancl 2025-08-25 16:12:54 +02:00
  • 316a3b45fe Simplify test further Samuel Štancl 2025-08-25 16:09:13 +02:00
  • 6974147042 Merge remote-tracking branch 'origin/master' into vite-asset-path-fix Samuel Štancl 2025-08-25 16:08:14 +02:00
  • 0de59b6d8a Remove redundant logic from tests Samuel Štancl 2025-08-25 16:04:40 +02:00
  • 3b42c9e20c
    [4.x] Use --database in tenants:migrate as the template connection (#1386) lukinovec 2025-08-25 15:57:15 +02:00
  • 916316f1e8 Reset template connection regardless of process count Samuel Štancl 2025-08-25 15:49:38 +02:00
  • d9f3525700
    Add --force option to tenants:migrate-fresh (#1391) lukinovec 2025-08-25 15:47:16 +02:00
  • 6b0066c5ef Pending tenants refactor (BC break) - [BC BREAK] Make pullPendingFromPool() $firstOrCreate arg default to false (pullPending() is now a direct alias for pullPendingFromPool() with default $firstOrCreate=true) - Resolve race conditions in pullPendingFromPool() - Make createPending() set pending_since regardless of exceptions - Make pullPending() accept $attributes - Fire PullingPendingTenant from within a DB transaction - Clarify --count arg description for CreatePendingTenants command - Add docblock to PullingPendingTenant with a notice Samuel Štancl 2025-08-24 23:54:34 +02:00
  • 7089efb2ee resolve minor todos Samuel Štancl 2025-08-18 15:04:42 +02:00
  • 0dc7e5d4ec Add tenant parameter BEFORE existing prefixes by default, add tenantParameterBeforePrefix() to allow customizing this lukinovec 2025-08-13 10:15:04 +02:00
  • 413da36c4a Simplify validate workflow (use regex) Samuel Štancl 2025-08-12 13:12:43 +02:00
  • ecc3374293 [4.x] Support database cache store tenancy (#1290) (resolve #852) Samuel Štancl 2025-08-08 00:54:01 +02:00
  • 889d58b787 Refactor tests database-cache-bootstrapper Samuel Štancl 2025-08-08 00:48:10 +02:00
  • 8b9b913c88 Refactor DatabaseCacheBootstrapper Samuel Štancl 2025-08-08 00:31:40 +02:00
  • 54a2d8a693 tests: remove pointless cache TTLs Samuel Štancl 2025-08-08 00:06:30 +02:00
  • 4129b2d956 Finalize GlobalCache-related changes Samuel Štancl 2025-08-08 00:00:41 +02:00
  • 2d6887d7b3 Add--force option to tenants:migrate-fresh, also add a test for that lukinovec 2025-08-07 14:02:58 +02:00
  • b7b5e4de0a Fix code style (php-cs-fixer) github-actions[bot] 2025-08-07 11:07:39 +00:00
  • 0bf7c10f0e Make TenancyUrlGenerator inherit the original UrlGenerator's scheme lukinovec 2025-08-07 13:07:17 +02:00
  • f6a54defe6 Test that TenancyUrlGenerator inherits the original UrlGenerator's scheme (http x https) lukinovec 2025-08-07 13:06:23 +02:00
  • 37667bd9e7 Fix ViteBundler not affecting Vite static calls Faris Alherf 2025-08-07 10:53:02 +03:00
  • a760c52ef2 Reset static $stores property Samuel Štancl 2025-08-06 20:44:05 +02:00
  • 6a8358fd80 Reset adjustCacheManagerUsing in revert() and TestCase Samuel Štancl 2025-08-06 19:54:12 +02:00
  • b7df2ca436 Run all cached resolver/global cache tests with DatabaseCacheBootstrapper Samuel Štancl 2025-08-06 18:44:56 +02:00
  • d2f55e620c Add docblock to command, improve description and output messages lukinovec 2025-08-06 14:32:23 +02:00
  • 8619f18830 Test command output lukinovec 2025-08-06 14:30:06 +02:00
  • f0b395ce23 Add and test command for deleteing expired impersonation tokens lukinovec 2025-08-06 14:06:08 +02:00
  • 2d5b6aa0c8 Clean up impersonation tokens before aborting, add tests lukinovec 2025-08-06 12:58:18 +02:00
  • 999caa65d9 Add database connection assertions in GlobalCacheTest Samuel Štancl 2025-08-05 22:38:24 +02:00
  • dbb8470b80 Make GlobalCache facade not cached. Even though it wasn't causing issues in our existing tests, it likely was flaky, and making it not $cached makes it now consistent with global_cache() - always getting a new CacheManager from the globalCache container binding Samuel Štancl 2025-08-05 22:26:30 +02:00
  • 3ca90bc445 Partially revert CI changes Samuel Štancl 2025-08-05 21:05:08 +02:00
  • 4b823fca7d Configure globalCache's DB stores to use central connection instead of default connection every time it's reinstantiated Samuel Štancl 2025-08-05 21:00:56 +02:00
  • f5e03bff62 Add failing test (GlobalCacheTest) Samuel Štancl 2025-08-05 17:31:44 +02:00
  • fc14e6dbf6 Fix withTenantDatabases() Samuel Štancl 2025-08-05 16:46:37 +02:00
  • 8f5e12a202 Make sure DatabaseCacheBootstrapper runs after DatabaseTenancyBootstrapper, misc wip changes Samuel Štancl 2025-08-05 16:10:14 +02:00
  • ae9b91d62e Make the --database option passed to tenants:migrate use the passed connection as the tenant connection template lukinovec 2025-08-05 15:31:22 +02:00
  • 59718317a3 Merge branch 'master' into database-cache-bootstrapper Samuel Štancl 2025-08-05 12:40:04 +02:00
  • 3984d64cfa Use globalCache in CachedTenantResolver (fix #1340) Samuel Štancl 2025-08-05 12:33:16 +02:00
  • 8f8af34c32
    [4.x] Only revert initialized bootstrappers (#1385) Samuel Štancl 2025-08-05 11:12:25 +02:00
  • 872bf9df72 Refactor DB cache bootstrapper, update tests accordingly lukinovec 2025-08-04 11:29:48 +02:00
  • 0af256746a Fix use of @property across the codebase Samuel Štancl 2025-08-04 01:51:49 +02:00
  • 2d7206fb16 Only revert initialized bootstrappers (Tenancy::initializedBootstrappers) Samuel Štancl 2025-08-04 01:40:44 +02:00
  • f308e2f84d
    [4.x] Resolve testing todos (#1361) lukinovec 2025-08-03 23:21:03 +02:00
  • 675193dd09 static property reset Samuel Štancl 2025-08-03 23:17:57 +02:00
  • 81fff15afe
    [4.x] Update ForgetTenantParameter-related comments (#1375) lukinovec 2025-08-03 23:15:34 +02:00
  • 3ec6a91428 make comment more clear Samuel Štancl 2025-08-03 23:14:11 +02:00
  • 4fd7233285 improve docblocks Samuel Štancl 2025-08-03 22:42:47 +02:00
  • 8620985a7c Merge branch 'master' into forget-tenant-parameter-refactor Samuel Štancl 2025-08-03 20:07:34 +02:00
  • c180c2c54e Use more accurate terminology lukinovec 2025-07-31 16:54:08 +02:00
  • 7bdbe9d880 Improve checking if tenant attribute is set lukinovec 2025-07-31 16:52:06 +02:00
  • 42c837d967 Refactor bootstrapper, provide more info in comments lukinovec 2025-07-31 16:25:40 +02:00
  • 81daa9d054 Simplify test lukinovec 2025-07-31 16:16:32 +02:00
  • 63bf4bf80e Clarify bootstrapper comments lukinovec 2025-07-31 15:30:14 +02:00
  • bd44036a9f By default, only override the config if the override tenant property is set (otherwise, just skip the override and keep the default config value) lukinovec 2025-07-31 15:15:33 +02:00
  • 16ed2bcc8f Merge branch 'master' of github.com:archtechx/tenancy Samuel Štancl 2025-07-29 22:25:31 +02:00
  • 0a48767c32 Bump jobpipeline dependency to rc6 Samuel Štancl 2025-07-29 22:25:07 +02:00
  • 475ea10ae9
    Delete unused import (#1382) lukinovec 2025-07-29 17:18:14 +02:00
  • b2f2669885
    [4.x] Cloning: addTenantParameter(bool), domain(string|null) (#1374) lukinovec 2025-07-29 17:17:32 +02:00
  • 52a39eb896 Delete unused import lukinovec 2025-07-29 13:40:39 +02:00
  • 582243c53f Clarify test name lukinovec 2025-07-29 13:22:02 +02:00
  • 62a0e395c3 Delete redundant test, test the same logic in the one larger test lukinovec 2025-07-29 13:13:31 +02:00
  • 8cd35d3985 Add @see to bootstrapper docblock lukinovec 2025-07-29 12:50:18 +02:00
  • ec4752881c Refactor bootstrapper, make comments more concise lukinovec 2025-07-29 12:48:11 +02:00
  • a806df063d Stop using real domains in the tests lukinovec 2025-07-29 12:25:02 +02:00
  • 718afd3069 Simplify the slack channel usage test lukinovec 2025-07-29 12:24:06 +02:00
  • a13110c880 Test real usage with slack channel (the bootstrapper updates the webhook used by the slack channel correctly) lukinovec 2025-07-29 12:19:04 +02:00
  • b80d7b3996 Test real usage with storage path-based channels lukinovec 2025-07-29 11:44:32 +02:00
  • 50853a3c45 Test LogTenancyBootstrapper logic (low-level tests) lukinovec 2025-07-29 10:59:56 +02:00
  • 43cf6d2359 Merge branch 'master' into add-log-bootstrapper lukinovec 2025-07-29 08:37:08 +02:00
  • 317bb795ed Make addTenantParameter(false) sound by adding domain() logic to route cloning Samuel Štancl 2025-07-29 02:36:45 +02:00
  • 8c55bc4139
    Merge 53f18e80f5 into e1b007946b lordofthebrain 2025-07-28 22:40:57 +07:00
  • e1b007946b Fix TestWith usage 3.x Samuel Štancl 2025-07-28 17:30:49 +02:00
  • 5fa5c3b7dd Change @test annotations to #[Test] attributes Samuel Štancl 2025-07-28 17:20:58 +02:00
  • 0ef0104355 Add MariaDB database manager config Samuel Štancl 2025-07-28 17:08:07 +02:00