Skip to content

release-candidate#1996

Merged
jeffersonrodrigues92 merged 114 commits intorelease-candidatefrom
develop
Mar 27, 2026
Merged

release-candidate#1996
jeffersonrodrigues92 merged 114 commits intorelease-candidatefrom
develop

Conversation

@jeffersonrodrigues92
Copy link
Copy Markdown
Contributor

No description provided.

ClaraTersi and others added 30 commits March 23, 2026 08:35
…ata, bootstrap resource cleanup, test correctness 🐛
refactor: unify onboarding and transaction into single ledger component
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).
jeffersonrodrigues92 and others added 18 commits March 27, 2026 01:04
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
…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
…iscovery

Feat/event driven tenant discovery
@jeffersonrodrigues92 jeffersonrodrigues92 requested review from a team as code owners March 27, 2026 19:45
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 27, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • develop

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2aacbceb-f781-460c-9c0f-b4f538026dd6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands and usage tips.

@lerian-studio
Copy link
Copy Markdown
Contributor

This PR is very large (739 files, 118855 lines changed). Consider breaking it into smaller PRs for easier review.

@lerian-studio
Copy link
Copy Markdown
Contributor

🔒 Security Scan Results — crm

Trivy

Filesystem Scan

✅ No vulnerabilities or secrets found.

Docker Image Scan

✅ No vulnerabilities found.


Docker Hub Health Score Compliance

✅ Policies — 4/4 met

Policy Status
Default non-root user ✅ Passed
No fixable critical/high CVEs ✅ Passed
No high-profile vulnerabilities ✅ Passed
No AGPL v3 licenses ✅ Passed

🔍 View full scan logs

@lerian-studio
Copy link
Copy Markdown
Contributor

📊 Unit Test Coverage Report: midaz-crm

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

@lerian-studio
Copy link
Copy Markdown
Contributor

📊 Unit Test Coverage Report: midaz-ledger

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

@lerian-studio
Copy link
Copy Markdown
Contributor

🔒 Security Scan Results — ledger

Trivy

Filesystem Scan

✅ No vulnerabilities or secrets found.

Docker Image Scan

✅ No vulnerabilities found.


Docker Hub Health Score Compliance

✅ Policies — 4/4 met

Policy Status
Default non-root user ✅ Passed
No fixable critical/high CVEs ✅ Passed
No high-profile vulnerabilities ✅ Passed
No AGPL v3 licenses ✅ Passed

🔍 View full scan logs

@jeffersonrodrigues92 jeffersonrodrigues92 merged commit 7d15014 into release-candidate Mar 27, 2026
46 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants