Refactor SwitchTenant task
Refactor how we switch tenants
ci:multitenancy ci:deploy ci:k8s-branch:remove-tenant-specific-cache
[!NOTE] Refactors tenant switching to set env/config per-tenant, adds cache settings prefixing and JSON-enabled
tenants:verify, integrates DB switch task, and removes legacy bootstrap/queue Horizon listen logic.
- Multitenancy Core:
- Switching:
ProcessMaker\Multitenancy\SwitchTenantnow saves landlord config, setsAPP_URL, updatesapp.instance,app.url, filesystem roots, lang path, decrypts and setsapp.key, and resets logging;forgetCurrent()restores landlord paths/keys.- Cache Prefixing: New
ProcessMaker\Multitenancy\PrefixCacheTaskprefixes default cache andcache_settingsstore per-tenant; registered inconfig/multitenancy.phpalongsideSwitchTenantDatabaseTask.- Queues: New
MakeQueueTenantAwareActionavoids exceptions when multitenancy is disabled; wired inconfig/multitenancy.php.- CLI:
tenants:verify: Adds--jsonoutput, structured tables/logging, expected per-tenant validations (paths, configs, env vars), and error aggregation.- App/Providers Cleanup:
- Remove
TenantBootstrapperintegration andApplication::bootstrapWithoverride; deleteHorizonListencommand and related Horizon bootstrap/event hooks fromProcessMakerServiceProvider.- Config/Tests:
- Add
MULTITENANCY=falsetophpunit.xml.- Keep
PackageManifestsingleton override; no other provider registration changes.Written by Cursor Bugbot for commit a64fbed91b36ed3be9f01622a2dc8d0f7b368e4d. This will update automatically on new commits. Configure here.
Quality Gate passed
Issues
0 New issues
0 Fixed issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication
QA server K8S was successfully deployed https://tenant-1.ci-be8634c205.engk8s.processmaker.net