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

Commit graph

  • ae39e4dfd4 Clarify behavior in log bootstrapper comments add-log-bootstrapper lukinovec 2025-10-29 14:56:37 +01:00
  • 58a2447adc Use more direct assertions in the tests that assert the actual behavior, keep simpler/less direct assertions in tests that don't require direct assertions, add comments to clarify the behavior lukinovec 2025-10-29 14:47:07 +01:00
  • e133c87c66 Make test priovide sufficient context for understanding the default behavior, improve test by making assertions more specific lukinovec 2025-10-29 14:15:06 +01:00
  • 108e0d1363 Swap closure param order, add/update comments lukinovec 2025-10-29 14:12:53 +01:00
  • b36f3ce4ee Fix typo lukinovec 2025-10-29 13:36:55 +01:00
  • f878aaf4e4 Improve closure overrides lukinovec 2025-10-29 10:21:08 +01:00
  • 4173749069 Add regression test lukinovec 2025-10-28 15:39:36 +01:00
  • 0dc187510b
    [4.x] Clean up expired impersonation tokens instead of just aborting, add command for cleaning up expired tokens (#1387) lukinovec 2025-10-28 14:14:52 +01:00
  • a0727fe7a7
    rename command to PurgeImpersonationTokens Samuel Štancl 2025-10-28 13:42:42 +01:00
  • 469595534e
    [4.x] Make TenancyUrlGenerator inherit the original UrlGenerator's scheme (http or https) (#1390) lukinovec 2025-10-28 13:26:50 +01:00
  • e5b79ff603
    Merge branch 'master' into patch-1 lukinovec 2025-10-28 13:14:57 +01:00
  • c3c5955c84 Delete the ttl option from clear expired impersonation tokens command (only clears expired tokens now) lukinovec 2025-10-28 12:51:23 +01:00
  • 6523f24a60 Pending tenants: Add getPendingAttributes() Samuel Štancl 2025-10-27 17:54:39 +01:00
  • e0478cb828
    Merge branch 'master' into url-generator-bootstrapper-https Samuel Štancl 2025-10-28 12:46:59 +01:00
  • 69a1326029 Merge branch 'master' into impersonation-token-cleanup lukinovec 2025-10-28 12:04:01 +01:00
  • 0b3f6987c3
    Merge branch 'master' into add-log-bootstrapper lukinovec 2025-10-28 10:43:53 +01:00
  • 86dc9314e1 Improve annotation lukinovec 2025-10-28 10:32:46 +01:00
  • 47cbee458a Add assertion for formatScheme default lukinovec 2025-10-28 09:30:49 +01:00
  • a53860ed21
    Pending tenants: Add getPendingAttributes() Samuel Štancl 2025-10-27 17:54:39 +01:00
  • aba7a50619
    Minor fixes Samuel Štancl 2025-10-22 12:58:23 +02:00
  • 99b79a5d08
    SQLite DB manager: use setInternal() instead of hardcoded tenancy_db_* Samuel Štancl 2025-10-20 02:08:25 +02:00
  • 5dfb4843b9
    Resolve misc todos, fix phpstan error Samuel Štancl 2025-10-19 18:44:58 +02:00
  • be93d6031c Fix code style (php-cs-fixer) github-actions[bot] 2025-10-19 23:47:46 +00:00
  • fadf1001f8
    PHP 8.5 support Samuel Štancl 2025-10-19 18:44:58 +02:00
  • 91f6c61fcd
    Fix assert: run createDatabase() outside assert() Samuel Štancl 2025-10-16 01:09:53 +02:00
  • 6049ade20e
    Fix exception message Samuel Štancl 2025-10-16 00:15:28 +02:00
  • 74634dfe4b
    Session scoping (cache bootstrapper): throw on incompatible driver Samuel Štancl 2025-09-01 21:09:47 +02:00
  • ddf83c4b55
    Assert createDatabase() success Samuel Štancl 2025-09-01 21:09:47 +02:00
  • 151e81b412
    Merge dev branch (minor breaking changes) august Samuel Štancl 2025-10-14 17:30:24 +02:00
  • 5fdae28edc Fix code style (php-cs-fixer) github-actions[bot] 2025-10-14 15:26:19 +00:00
  • e1b8658414
    Fix #1404: support universal routes in CheckTenantForMaintenanceMode Samuel Štancl 2025-10-14 17:11:47 +02:00
  • 3cf102ebd6 Update stubs, add PHP 8.5 todo Samuel Štancl 2025-09-01 21:09:47 +02:00
  • 211be22735 misc: update .gitattributes and .nvim.lua Samuel Štancl 2025-09-01 21:09:47 +02:00
  • 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