1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-03-22 01:04:04 +00:00

Commit graph

  • 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 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
  • f9f28c9d26
    Use testbench 10.3 Samuel Štancl 2025-07-28 16:54:33 +02:00
  • 30b6fc9702
    [3.x] Add MariaDB database manager config Julian Hundeloh 2025-07-28 16:43:47 +02:00
  • 96a05cdce8 Fix code style (php-cs-fixer) github-actions[bot] 2025-07-28 10:11:35 +00:00
  • 01a06c9210 Add LogTenancyBootstrapper lukinovec 2025-07-28 12:11:09 +02:00
  • bc846391ea Delete todo, update docblock lukinovec 2025-07-23 16:25:27 +02:00
  • 59910ec6e3 Make the tests clearer lukinovec 2025-07-23 16:20:46 +02:00
  • 6c3324ef86 Update DatabaseCacheBootstrapper to also handle cache locks connection lukinovec 2025-07-23 15:41:03 +02:00
  • 3238592364 Test that the cache lock connections also get changed correctly, make assertions more readable, update comments lukinovec 2025-07-23 15:38:42 +02:00
  • a0a164ffe7 Manually register the bootstrapper as singleton lukinovec 2025-07-23 13:18:22 +02:00
  • 16f56958eb Test the low-level/core bootstrapper logic lukinovec 2025-07-23 13:15:52 +02:00
  • 1be203b886 Add high-level assertions to DatabaseCacheBootstrapperTest, make the test follow the structure of the "cache data is separated" test lukinovec 2025-07-23 12:19:16 +02:00
  • ba0c710e4e Revert BootstrapperTest changes lukinovec 2025-07-23 11:42:19 +02:00
  • e5ca6eb776
    Fix typo lukinovec 2025-07-23 10:27:47 +02:00
  • 52052c807a Add DatabaseCacheBootstrapper docblock lukinovec 2025-07-22 20:00:56 +02:00
  • d482bb9e2d Simplify low-level DatabaseCacheBootstrapper test, delete migration file lukinovec 2025-07-22 19:55:04 +02:00
  • b00a037ea8 Test high-level DbCacheBootstrapper functionality in BootstrapperTest lukinovec 2025-07-22 19:40:15 +02:00
  • 2cfa8831a3 Merge branch 'master' into database-cache-bootstrapper lukinovec 2025-07-22 19:32:57 +02:00
  • f6019118a0 Fix code style (php-cs-fixer) configurable-tenants-relationship github-actions[bot] 2025-07-17 16:03:16 +00:00
  • fc809ba55f Make tenants relationship name configurable using the getTenantsRelationshipName()) method in SyncMaster lukinovec 2025-07-17 18:02:55 +02:00
  • 0d83ba28d5
    Update MailConfigBootstrapper.php Paras Suthar Darji 2025-07-15 11:36:34 +05:30
  • 62624275cc phpstan fix Samuel Štancl 2025-07-14 21:48:30 +02:00
  • 91295f01e2 fix origin identification: parse hostname when full URL is used Samuel Štancl 2025-07-14 21:44:12 +02:00
  • 1a31af1c3a Improve path id mw config docblock lukinovec 2025-07-11 07:49:10 +02:00
  • 32e3b375ca
    Merge branch 'archtechx:3.x' into 3.x Leandro Gehlen 2025-07-10 07:22:42 -03:00
  • 90272bcbb1 Fix central model creation to use only synced attributes Leandro G. Gehlen 2025-07-10 07:15:32 -03:00
  • d8af9b4b43 remove JobBatchBootstrapper Samuel Štancl 2025-07-10 01:08:49 +02:00
  • b1c9bd3491 Update ForgetTenantParameter-related comments lukinovec 2025-07-08 13:13:27 +02:00
  • 6676193ff5 Update clone action annotation lukinovec 2025-07-07 11:56:08 +02:00
  • 3178ea38f0 Fix code style (php-cs-fixer) github-actions[bot] 2025-07-07 09:47:10 +00:00
  • 4a4d76f8d1 Add $addTenantParameter properyt to the clone action lukinovec 2025-07-07 11:46:46 +02:00
  • ca57b89d02 Add test for the new clone action addTenantParameter property lukinovec 2025-07-07 11:44:56 +02:00
  • 393f263f03
    [4.x] Update route cloning example in TenancyServiceProvider stub (#1372) may25 lukinovec 2025-07-04 12:08:43 +02:00
  • 466e4fbe1a Delete double // from cloning example in TSP stub lukinovec 2025-07-04 12:03:53 +02:00
  • f57536c5a6 Update cloning example lukinovec 2025-07-04 11:22:10 +02:00
  • 4ead17a56b
    [4.x] TableRLSManager refactor, comment constraints (#1354) lukinovec 2025-07-03 21:12:04 +02:00
  • 3907b903ad code improvements Samuel Štancl 2025-07-03 20:09:13 +02:00
  • 3064c41b0e misc improvements Samuel Štancl 2025-07-03 14:45:31 +02:00
  • 4351415ee4 Rename shouldSkipPathLeadingThrough() to shouldSkipPathLeadingThroughConstraint() lukinovec 2025-07-02 17:54:29 +02:00
  • 1cfb85e756 Update key names of the formatted constraints lukinovec 2025-07-02 17:53:15 +02:00
  • 7ae11dca7f Fix code style (php-cs-fixer) github-actions[bot] 2025-07-02 15:51:15 +00:00
  • cb1209d1b2 Refactor constraint formatting in TableRLSManager lukinovec 2025-07-02 17:50:57 +02:00
  • 0feae8fe23 Use === instead of Str::is() lukinovec 2025-07-02 17:48:26 +02:00
  • 64048d2950 Fix typo lukinovec 2025-07-02 17:47:45 +02:00
  • aff8986c9b formatting Samuel Štancl 2025-07-02 15:42:12 +02:00
  • 870fb5d37c tests: add comment to clarify the chosen path Samuel Štancl 2025-07-01 19:16:40 +02:00
  • 5561ce208e Merge branch 'may25' into rls-fake-constrained-foreign-keys Samuel Štancl 2025-07-01 18:28:53 +02:00
  • 3614964cd7 test improvements Samuel Štancl 2025-07-01 18:28:44 +02:00
  • d1f12f594d
    Instead of assigning $innerMiddleware during group MW unpacking, merge it (#1371) lukinovec 2025-07-01 17:23:13 +02:00
  • 70d745d9b3 Instead of assigning $innerMiddleware during group MW unpacking, merge it lukinovec 2025-07-01 17:03:13 +02:00
  • 6c01635a3e Merge branch 'may25' into rls-fake-constrained-foreign-keys Samuel Štancl 2025-07-01 00:33:12 +02:00
  • 1e926a1dde
    [4.x] Route cloning refactor (#1353) lukinovec 2025-07-01 00:32:42 +02:00
  • c95d5a282e fix typo Samuel Štancl 2025-07-01 00:27:04 +02:00
  • 78d561f7dc clean up tests Samuel Štancl 2025-07-01 00:24:53 +02:00
  • 53f18e80f5
    migrate fresh show output with verbose lordofthebrain 2025-06-30 13:24:38 +02:00
  • 84ac69c908 Fully cover shouldSkipPathLeadingThrough in tests lukinovec 2025-06-27 14:58:17 +02:00
  • 8934114f92 Move RLSCommentConstraintException to src/RLS/Exceptions lukinovec 2025-06-27 11:54:13 +02:00
  • 60eb7cde09
    don't run migrate-fresh silent by default lordofthebrain 2025-06-27 10:48:19 +02:00
  • 7e1fe075f4
    [4.x] Test that global scopes on syncable models can break resource syncing, and that $scopeGetModelQuery can be used as a workaround for that (#1285) lukinovec 2025-06-26 13:39:11 +02:00
  • 4be5b95f9e add global scope reset to afterEach Samuel Štancl 2025-06-26 13:33:10 +02:00
  • 0b20f3122f improve docblock Samuel Štancl 2025-06-26 13:29:41 +02:00
  • 9a04fc0e7a add assertion Samuel Štancl 2025-06-26 12:57:25 +02:00
  • 0c41b3ba85 Revert changes in test lukinovec 2025-06-26 11:53:42 +02:00
  • 6f760ef4cd Add note about clearing the $routesToClone property lukinovec 2025-06-24 14:40:28 +02:00
  • 0bd5872a0f Improve route cloning action docblock lukinovec 2025-06-24 14:30:52 +02:00
  • 8254b9b7b7 Simplify comments in test lukinovec 2025-06-24 13:38:41 +02:00
  • ee28d9ec7d Explicitly reset global scopes on models in beforeEach() lukinovec 2025-06-24 13:16:51 +02:00
  • d62ad4a53a Improve docblocks,as discussed lukinovec 2025-06-24 12:50:41 +02:00