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

Commit graph

  • 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 stop-impersonating lukinovec 2026-04-21 14:04:59 +02:00
  • ac90ef08e4 Improve wording override-toroute 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 add-log-bootstrapper 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 redundant-check lukinovec 2026-04-15 11:46:40 +02:00
  • 7426adf402
    Merge branch 'master' into subdomain-check subdomain-check lukinovec 2026-04-15 11:46:37 +02:00
  • 61bf6dc561
    Merge branch 'master' into override-toroute lukinovec 2026-04-15 11:46:36 +02:00
  • b7766ef76f
    Merge branch 'master' into storage-listeners lukinovec 2026-04-15 11:46:34 +02:00
  • c252ac4c55
    Merge branch 'master' into stop-impersonating lukinovec 2026-04-15 11:46:08 +02:00
  • e592b3700e
    Merge branch 'master' into broadcasting-fixes lukinovec 2026-04-15 11:45:07 +02:00
  • c32f52ce7c
    phpstan fix: Scope generics Samuel Stancl 2026-04-15 11:09:22 +02:00
  • d885659a16 Use toEqualCanonicalizing instead of toBe for custom creators lukinovec 2026-04-15 11:20:59 +02:00
  • 7db486d1b9 Extract cleanup in broadcasting config test file lukinovec 2026-04-15 11:12:59 +02:00
  • a7acd07e70 Reset BroadcastingConfigBootstrapper::$mapPresets in tests lukinovec 2026-04-15 10:44:18 +02:00
  • f3652a8509 Make with() formatting consistent lukinovec 2026-04-15 10:18:29 +02:00
  • a3c556870a Add regression test for credentialsMap merge order lukinovec 2026-04-15 10:16:22 +02:00
  • a5f5182db2 Improve stopImpersonating docblock lukinovec 2026-04-15 08:58:32 +02:00
  • 2f60e7672e Clean up nested log files created by tests lukinovec 2026-04-14 14:40:00 +02:00
  • c2a80c248f Fix code style (php-cs-fixer) github-actions[bot] 2026-04-14 12:07:13 +00:00
  • 42d60e9085 Make tenant log channels inherit paths from central config, improve comments lukinovec 2026-04-14 14:06:51 +02:00
  • b234308e26 Add comment about log path customization lukinovec 2026-04-14 11:17:31 +02:00
  • 23ae15a8f1 Preserve filename from central log path in tenant context lukinovec 2026-04-14 10:46:15 +02:00
  • 9ea3813d28 Improve $channelOverrides docblock lukinovec 2026-04-14 10:07:16 +02:00
  • 06472d5cae Fix code style (php-cs-fixer) github-actions[bot] 2026-04-14 07:53:45 +00:00
  • 95fd0462e6 Import InvalidArgumentException lukinovec 2026-04-14 09:53:25 +02:00
  • 1ae418c8b3 Store configured channels in a property, forget only the stored channels lukinovec 2026-04-14 09:31:32 +02:00
  • 7af2b8acb4 Improve BroadcastManager instance checks lukinovec 2026-04-14 09:26:34 +02:00
  • 20d494f4c6 Reset BroadcastingConfigBootstrapper::$broadcaster in tests lukinovec 2026-04-14 09:09:46 +02:00
  • e31249dd09
    Prevent mkdir() race conditions in FilesystemTenancyBootstrapper (#1453) Samuel Štancl 2026-04-13 23:57:59 +02:00
  • c344e3d916
    Prevent mkdir() race conditions in FilesystemTenancyBootstrapper Samuel Stancl 2026-04-13 23:20:51 +02:00
  • 5a045b4dcd
    Make skipping opt-out, add opt-in ignoreFailures logic Samuel Stancl 2026-04-12 19:41:12 +02:00
  • f4ee0a7943 Make central domain order not matter in isSubdomain() lukinovec 2026-04-13 17:59:57 +02:00
  • 5e0153c507
    Obtain suffix base from config instead of hardcoding lukinovec 2026-04-13 16:47:08 +02:00
  • 33c28405ad Guard against accidental central storage deletion lukinovec 2026-04-13 16:36:52 +02:00
  • a28593af17 Correct storage deletion test lukinovec 2026-04-13 16:24:12 +02:00
  • a247bb0b9e Correct config bootstrapper test comment lukinovec 2026-04-13 15:48:03 +02:00
  • b3d5197702 Correct channel prefix test comments lukinovec 2026-04-13 15:44:35 +02:00
  • 4aeaa66b23 Remove unused $broadcaster parameter lukinovec 2026-04-13 15:32:26 +02:00
  • 9ab0a729d6
    Fix typo lukinovec 2026-04-13 15:28:11 +02:00
  • 34115e84c7 Rollback config if bootstrap fails lukinovec 2026-04-13 15:23:04 +02:00
  • 3c9d532582 Fix code style (php-cs-fixer) github-actions[bot] 2026-04-13 13:19:53 +00:00
  • d17c7b3e86 Make stopImpersonating throw an exception if no user is impersonated currently lukinovec 2026-04-13 15:19:17 +02:00
  • 8fda84fcee Throw exception if override closure doesn't return array lukinovec 2026-04-13 14:39:42 +02:00
  • cdea112ad5 Fix code style (php-cs-fixer) github-actions[bot] 2026-04-13 12:26:58 +00:00
  • b74416721a Fix PHPStan error lukinovec 2026-04-13 14:26:41 +02:00
  • 697ba6592b Correct log file cleanup lukinovec 2026-04-13 14:23:39 +02:00
  • f705f5849f Fix code style (php-cs-fixer) github-actions[bot] 2026-04-13 12:15:54 +00:00
  • 221a9950c2 Support channel overrides using dot notation lukinovec 2026-04-13 14:15:27 +02:00
  • 9660faf2f9 Ensure Slack throws cURL exception in test lukinovec 2026-04-13 14:10:05 +02:00
  • 89b0d1cb4b Include all storage path channels and overrides in getChannels() lukinovec 2026-04-13 13:55:59 +02:00
  • c68b91cd43 Make tests not depend on setting the default logging channel lukinovec 2026-04-13 13:54:20 +02:00
  • aedb33bb3a Clean up log files in before/afterEach lukinovec 2026-04-13 12:45:53 +02:00
  • 1289550533 Rename test and use different current guard lukinovec 2026-04-13 10:41:21 +02:00
  • 920cb06d1f Test that stopImpersonating only has an effect on the original guard lukinovec 2026-04-13 10:23:30 +02:00
  • bff74c8c31 Handle unnamed routes lukinovec 2026-04-13 09:36:17 +02:00
  • 41e6e7c9c8
    Merge branch 'master' into abort-deletion-without-database Samuel Štancl 2026-04-12 19:28:47 +02:00
  • f690945a82
    Merge branch 'master' into coverage coverage Samuel Štancl 2026-04-12 14:40:04 +02:00
  • 6752bf1e66
    Merge 0e8729abbe into ab64f4599d lordofthebrain 2026-04-12 14:03:03 +02:00
  • 0e8729abbe
    Merge branch '3.x' into 3.x Samuel Štancl 2026-04-12 14:03:01 +02:00
  • 39fc72bea5
    Merge branch 'master' into add-log-bootstrapper Samuel Štancl 2026-04-12 14:02:39 +02:00
  • 1aa3e25962
    Merge branch 'master' into postgress-db-creation-update Samuel Štancl 2026-04-12 14:02:15 +02:00
  • 55f03dc220
    Merge branch 'master' into redundant-check Samuel Štancl 2026-04-12 14:01:59 +02:00
  • 3976880dcb
    Merge branch 'master' into subdomain-check Samuel Štancl 2026-04-12 14:01:44 +02:00
  • dc344b7ae6
    Merge branch 'master' into broadcasting-fixes Samuel Štancl 2026-04-12 13:29:28 +02:00
  • df44deafff
    Merge branch 'master' into stop-impersonating Samuel Štancl 2026-04-12 13:28:57 +02:00
  • dc2be5b59f
    Merge branch 'master' into override-toroute Samuel Štancl 2026-04-12 12:41:47 +02:00
  • dc659ed67a
    Merge branch 'master' into storage-listeners Samuel Štancl 2026-04-12 11:37:08 +02:00
  • 60dd5226c4
    [4.x] Add Tenancy::reinitialize() method (#1449) Samuel Štancl 2026-04-08 19:21:43 +02:00
  • 3ecaddca12 dump command: test dump content lukinovec 2026-04-06 08:30:57 +02:00
  • f8528fc9ac Add 'reverb' to TenancyBroadcastManager::$tenantBroadcasters lukinovec 2026-04-03 15:54:25 +02:00
  • ef476c5361 Polish comments lukinovec 2026-04-03 13:40:44 +02:00
  • c831393589 Update comment lukinovec 2026-04-03 13:10:19 +02:00
  • 4937a74ed5 BroadcastingConfigBootstrapper and TenancyBroadcastManager: comments lukinovec 2026-04-03 13:07:40 +02:00
  • 29dd23db61 BroadcastingConfigBootstrapperTest: add 'reverb' driver to datasets lukinovec 2026-04-03 11:26:46 +02:00
  • 6b99921839 BroadcastingConfigBootstrapper: correct $credentialsMap array_merge order lukinovec 2026-04-03 11:23:24 +02:00
  • fc45e09dc9 Update BroadcastingConfigBootstrapperTest lukinovec 2026-04-03 11:17:06 +02:00
  • d8c71539e6
    Add Tenancy::reinitialize() method Samuel Stancl 2026-04-03 10:51:45 +02:00
  • 4b1cc9c84a Improve comments lukinovec 2026-04-02 16:29:03 +02:00
  • 9e9bedc0f2 Fix code style (php-cs-fixer) github-actions[bot] 2026-04-02 14:15:16 +00:00
  • b2add06a98 Delete BroadcastingTest lukinovec 2026-04-02 16:14:53 +02:00
  • bbe2ff02df BroadcastingTest: update channel inheritance test lukinovec 2026-04-02 15:33:35 +02:00