release-candidate#1996
Conversation
…and config helpers 🔨
…ata, bootstrap resource cleanup, test correctness 🐛
refactor: unify onboarding and transaction into single ledger component
… UpdateBulk methods ✨
…r bulk insert operations for atomicity ✨
fix: rabbitmq consumer fails to resolve tenant PG connection due to module name mismatch
… config cache Add MULTI_TENANT_CACHE_TTL_SEC env var (default 120s) to control tenant config in-memory cache TTL. - Ledger + CRM: WithCacheTTL added to client creation - 0 = disabled (every request hits tenant-manager) Works with MULTI_TENANT_SETTINGS_CHECK_INTERVAL_SEC for proactive refresh (lib-commons #384).
GetTenantIDFromContext→GetTenantIDContext, GetPG→GetPGContext, GetPGConnectionFromContext→GetPGConnectionContext, GetMB→GetMBContext, GetMongoFromContext→GetMongoContext, SetTenantIDInContext→ContextWithTenantID. lib-commons v4.5.0-beta.16. X-Lerian-Ref: 0x1
Replace ContextWithPGConnection→ContextWithPG, GetPGConnectionContext→GetPGContext, ContextWithMongo→ContextWithMB, GetMongoContext→GetMBContext, GetKeyFromContext→GetKeyContext. Swap arg order: db before module. lib-commons v4.5.0-beta.17. X-Lerian-Ref: 0x1
…iscovery refactor: standardize context getter names and lib-commons v4.5.0-beta.16
…NANT_CONNECTIONS_INTERVAL_SEC X-Lerian-Ref: 0x1
…ithConnectionsCheckInterval X-Lerian-Ref: 0x1
X-Lerian-Ref: 0x1
…iscovery refactor: standardize context API, env naming, and lib-commons v4.5.0-beta.19
…ition fix: resolve bulk recorder race conditions for channel closure and cross-worker acking
X-Lerian-Ref: 0x1
X-Lerian-Ref: 0x1
X-Lerian-Ref: 0x1
…iscovery Feat/event driven tenant discovery
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
This PR is very large (739 files, 118855 lines changed). Consider breaking it into smaller PRs for easier review. |
🔒 Security Scan Results —
|
| Policy | Status |
|---|---|
| Default non-root user | ✅ Passed |
| No fixable critical/high CVEs | ✅ Passed |
| No high-profile vulnerabilities | ✅ Passed |
| No AGPL v3 licenses | ✅ Passed |
📊 Unit Test Coverage Report:
|
| Metric | Value |
|---|---|
| Overall Coverage | 87.7% ✅ PASS |
| Threshold | 85% |
Coverage by Package
| Package | Coverage |
|---|---|
github.com/LerianStudio/midaz/v3/components/crm/internal/adapters/http/in |
86.2% |
github.com/LerianStudio/midaz/v3/components/crm/internal/adapters/mongodb/alias |
92.1% |
github.com/LerianStudio/midaz/v3/components/crm/internal/adapters/mongodb/holder |
87.1% |
github.com/LerianStudio/midaz/v3/components/crm/internal/services |
95.2% |
Generated by Go PR Analysis workflow
📊 Unit Test Coverage Report:
|
| Metric | Value |
|---|---|
| Overall Coverage | 86.8% ✅ PASS |
| Threshold | 85% |
Coverage by Package
| Package | Coverage |
|---|---|
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/http/in |
85.6% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/mongodb/onboarding |
66.7% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/mongodb/transaction |
66.7% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/postgres/account |
100.0% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/postgres/accounttype |
66.7% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/postgres/asset |
100.0% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/postgres/assetrate |
100.0% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/postgres/balance |
100.0% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/postgres/ledger |
100.0% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/postgres/operation |
90.0% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/postgres/operationroute |
100.0% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/postgres/organization |
100.0% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/postgres/portfolio |
100.0% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/postgres/segment |
100.0% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/postgres/transaction |
97.4% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/postgres/transactionroute |
100.0% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/rabbitmq |
90.6% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/adapters/redis/transaction/balance |
100.0% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/services/command |
88.5% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/services/query |
93.1% |
github.com/LerianStudio/midaz/v3/components/ledger/internal/services |
0.0% |
Generated by Go PR Analysis workflow
🔒 Security Scan Results —
|
| Policy | Status |
|---|---|
| Default non-root user | ✅ Passed |
| No fixable critical/high CVEs | ✅ Passed |
| No high-profile vulnerabilities | ✅ Passed |
| No AGPL v3 licenses | ✅ Passed |
7d15014
into
release-candidate
No description provided.