Skip to content

refactor(ledger): account pkg cleanup - #4286

Merged
GAlexIHU merged 1 commit into
mainfrom
refactor/ledger-accounts
May 5, 2026
Merged

GAlexIHU merged 1 commit into
mainfrom
refactor/ledger-accounts

Conversation

@GAlexIHU

@GAlexIHU GAlexIHU commented May 4, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Refactors ledger package boundaries around stronger root-level public abstractions.

  • slims ledger.Account / ledger.SubAccount to identity + routing primitives
  • moves balance reads out of account/subaccount methods into ledger.BalanceQuerier
  • adds root contracts for AccountCatalog, AccountLocker, and balance querying
  • updates ledger/account to implement catalog + locking behind root interfaces
  • updates ledger/historical to depend on root interfaces instead of concrete account services
  • removes implementation-type assertions from customer balance transaction flow
  • updates wiring/tests for the new split

Notes for Reviewer

  • think of it as an incremental improvement
  • better pkgs will likely help with closing & breakage

Summary by CodeRabbit

  • Refactor
    • Internal restructuring of ledger account and balance querying system to improve code organization and dependency management.

@GAlexIHU GAlexIHU added the release-note/misc Miscellaneous changes label May 4, 2026
@GAlexIHU
GAlexIHU requested a review from a team as a code owner May 4, 2026 15:57
@coderabbitai

coderabbitai Bot commented May 4, 2026 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

Failed to post review comments

📝 Walkthrough

Walkthrough

This PR refactors ledger balance querying by introducing an explicit BalanceQuerier interface and threading it through the DI system. Balance-query methods are removed from Account and SubAccount, while new ledger abstractions (AccountCatalog, AccountLocker, AccountReader, AccountProvisioner) are introduced to separate concerns. Account services and all dependent charge/billing/customer-balance components are updated to use the new interfaces and value-based return types.

Changes

Core Ledger API Refactor

Layer / File(s) Summary
New Interfaces & Types
openmeter/ledger/account.go, openmeter/ledger/balance.go
New AccountCatalog, AccountReader, AccountProvisioner, AccountLocker interfaces. New BalanceQuerier interface with GetAccountBalance / GetSubAccountBalance. New input types (ListAccountsInput, ListSubAccountsInput, CreateAccountInput, CreateSubAccountInput) with validation methods.
Updated Primitives
openmeter/ledger/primitives.go, openmeter/ledger/query.go
Account interface gains ID() and Type(), loses GetBalance(...). SubAccount gains AccountID(), loses GetBalance(...). Removed Querier interface.
Account Service Refactor
openmeter/ledger/account/service.go, openmeter/ledger/account/service/service.go
Service now embeds AccountCatalog and AccountLocker. Input types become aliases to ledger types. Implementation returns value types (ledger.Account, ledger.SubAccount) instead of pointers. New EnsureSubAccount, GetSubAccountByID, LockAccountsForPosting methods added. Constructor signature simplified to New(repo, locker).
Account Implementations
openmeter/ledger/account/account*.go, openmeter/ledger/account/subaccount.go
NewAccountFromData now returns ledger.Account selected by type switch. NewSubAccountFromData drops parent account parameter. Removed As*Account() wrappers and CustomerAccount.Lock() method. Account casting now delegated to interface assertions. GetBalance() methods removed from all account types.
Historical Ledger Balance
openmeter/ledger/historical/balance.go
New file implementing BalanceQuerier: GetAccountBalance queries entries via sumEntries, GetSubAccountBalance resolves parent account via catalog then delegates. Balance struct holds settled/pending decimals.
Historical Ledger Locking
openmeter/ledger/historical/ledger.go
Constructor accepts AccountCatalog and AccountLocker instead of AccountService and locker. lockAccountsForTransactionInputs now fetches account objects via catalog and delegates locking to AccountLocker, removing type-specific account casting logic.
Noop Implementation
openmeter/ledger/noop/noop.go
Implements BalanceQuerier (returns zero balances). AccountService methods now return value types. Helper constructors return values instead of pointers. Account types implement ID() and Type() methods.

Dependency Injection Wiring

Layer / File(s) Summary
DI Provider Set
app/common/ledger.go
New providers: NewLedgerBalanceQuerier, NewLedgerAccountCatalog, NewLedgerAccountLocker. NewLedgerAccountService drops querier parameter. NewLedgerHistoricalLedger accepts AccountCatalog and AccountLocker instead of repo/locker. Removed NewLedgerQuerier.
Wire Generation
cmd/billing-worker/wire_gen.go, cmd/jobs/internal/wire_gen.go, cmd/server/wire_gen.go
All wire files updated to construct new ledger component graph: account service built without querier, account catalog/locker derived from service, historical ledger constructed with new interfaces, balance querier derived separately. NewBillingRegistry and NewCustomerBalanceService calls updated to accept balanceQuerier.
Test Utils
openmeter/ledger/testutils/deps.go, openmeter/ledger/testutils/integration.go
Simplified account service construction (New(repo, locker)). Updated balance lookups to use HistoricalLedger.GetSubAccountBalance. Removed separate internal account service wiring.

Charges & Transaction Resolution

Layer / File(s) Summary
Transaction Resolver
openmeter/ledger/transactions/resolve.go
ResolverDependencies struct updated: removes SubAccountService, adds AccountCatalog and BalanceQuerier.
Collection Logic
openmeter/ledger/transactions/collection.go
listCustomerFBOSources and collectFromAttributableCustomerAccrued now validate AccountCatalog and BalanceQuerier, list sub-accounts via catalog with ledger.ListSubAccountsInput, retrieve balances via settledBalanceForSubAccount(ctx, deps, subAccount).
Balance Lookup Helper
openmeter/ledger/chargeadapter/helpers.go
settledBalanceForSubAccount refactored to accept BalanceQuerier and sub-account, calls querier.GetSubAccountBalance(...) instead of subAccount.GetBalance(...).
Charge Handlers
openmeter/ledger/chargeadapter/creditpurchase.go, openmeter/ledger/chargeadapter/*_test.go
Handlers now store BalanceQuerier and AccountCatalog instead of AccountService. ResolverDependencies in all test/adapter files updated to provide new interfaces instead of SubAccountService. Balance queries route through BalanceQuerier.
Recognizer Service
openmeter/ledger/recognizer/service.go, openmeter/ledger/recognizer/service_test.go
Validation now requires AccountCatalog and BalanceQuerier. Test environment wiring updated to provide new dependency structure.

Billing & Customer Balance

Layer / File(s) Summary
Billing Registry
app/common/billing.go
NewBillingRegistry adds balanceQuerier parameter and threads it into newChargesRegistry.
Charges Configuration
app/common/charges.go
All charge service constructors (NewChargesCollectorService, NewChargesFlatFeeHandler, NewChargesCreditPurchaseHandler, NewChargesUsageBasedHandler, NewRecognizerService) now accept balanceQuerier and wire it into ResolverDependencies. Internal newChargesRegistry stack updated to thread dependencies through.
Customer Balance Service
openmeter/ledger/customerbalance/service.go, app/common/customerbalance.go
Service gains BalanceQuerier config field. Balance retrieval now calls BalanceQuerier.GetAccountBalance(...) instead of account-type method. FBO currency listing uses AccountCatalog.ListSubAccounts with ledger.ListSubAccountsInput. DI provider updated to accept and wire balanceQuerier.
Customer Balance Logic
openmeter/ledger/customerbalance/transactions.go, openmeter/ledger/customerbalance/facade_test.go
Direct nil checks and ID retrieval replace type assertions. Removed fboAccountIDFromCustomerAccounts helper. Account enumeration uses AccountCatalog instead of casting. Test setup removes ledgeraccount import dependency.

Test Updates & Account Resolution

Layer / File(s) Summary
Test Environments
openmeter/ledger/customerbalance/testenv_test.go, openmeter/ledger/ledger_fx_test.go
Transaction resolver dependencies updated consistently across all test setups to provide AccountCatalog and BalanceQuerier, removing SubAccountService.
Account Resolution
openmeter/ledger/resolvers/account.go
GetCustomerAccounts and GetBusinessAccounts use direct type assertions instead of As*Account() wrappers, with explicit error messages including account ID and type mismatch details. listBusinessAccountsByType returns map[...] ledger.Account (value type).
Ledger Tests
openmeter/ledger/ledger_test.go, test/credits/*_test.go
Balance lookups updated to call BalanceQuerier.GetAccountBalance(...). Credit test suites capture BalanceQuerier and use it for all balance assertions instead of calling methods on specific account objects.
Test Backfill
cmd/jobs/ledger/backfillaccounts/backfillaccounts.go
Account service wiring simplified to accountservice.New(repo, locker), removing the ledgeraccount.AccountLiveServices wrapper with noop querier.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

This is a substantial, multi-layer refactoring touching the ledger core interfaces, dependency injection across multiple applications, charge/billing logic, and numerous test environments. While individual changes follow a consistent pattern (replacing direct balance-query method calls with BalanceQuerier + removing balance methods from account types), the breadth of files, the interplay between core interfaces and implementations, and the need to verify that all wiring chains correctly together demand careful review. The density of interface changes and the ripple effects across DI graphs increase review complexity.

Possibly related PRs

  • The main PR's threading of BalanceQuerier into charge handlers and recognizer services directly relates to billing/charges wiring changes across multiple PR iterations.
  • The ledger account provisioning surface and AccountCatalog/AccountLocker interfaces are dependencies for downstream PRs that rely on account management and balance querying.
  • Historical ledger persistence refactors (SumEntries, balance computation) are foundational to the new BalanceQuerier implementations in this PR.

Suggested labels

area/billing, area/ledger, type/refactor

Suggested reviewers

  • tothandras
  • turip
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 16.13% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'refactor(ledger): account pkg cleanup' clearly summarizes the primary change—a refactoring focused on cleaning up and reorganizing the ledger/account package with improved abstractions.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/ledger-accounts

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (3)
openmeter/ledger/recognizer/service_test.go (1)

35-39: 💤 Low value

Minor duplication with resolverDeps()

newRecognizerTestEnv builds the same ResolverDependencies (lines 35–39) that resolverDeps() (lines 71–75) returns verbatim. If a fourth field lands on ResolverDependencies there are two spots to update. You could partially construct the env, then call resolverDeps() for both uses:

♻️ Optional simplification
 func newRecognizerTestEnv(t *testing.T) *recognizerTestEnv {
     t.Helper()
 
     base := ledgertestutils.NewIntegrationEnv(t, "recognizer")
-    deps := transactions.ResolverDependencies{
-        AccountService: base.Deps.ResolversService,
-        AccountCatalog: base.Deps.AccountService,
-        BalanceQuerier: base.Deps.HistoricalLedger,
-    }
+    env := &recognizerTestEnv{IntegrationEnv: base}
+    deps := env.resolverDeps()
 
     // ... rest of construction unchanged ...
 
-    return &recognizerTestEnv{
-        IntegrationEnv: base,
-        recognizer:     recSvc,
-        lineage:        lngeSvc,
-    }
+    env.recognizer = recSvc
+    env.lineage = lngeSvc
+    return env
 }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@openmeter/ledger/recognizer/service_test.go` around lines 35 - 39, The block
in newRecognizerTestEnv duplicates construction of
transactions.ResolverDependencies already produced by resolverDeps(); replace
the inline construction in newRecognizerTestEnv with a call to resolverDeps()
(or call resolverDeps() and merge any additional test-only overrides) so both
places use the same source of truth; update newRecognizerTestEnv to consume the
resolverDeps() result rather than re-creating transactions.ResolverDependencies.
openmeter/ledger/transactions/collection.go (1)

147-170: 💤 Low value

Consider adding matching nil checks here for consistency.

listCustomerFBOSources now validates that AccountCatalog and BalanceQuerier are non-nil before using them, but collectFromAttributableCustomerAccrued uses the same deps without validation. While upstream code likely validates, adding the same checks here would be consistent and provide defense-in-depth.

♻️ Optional: Add nil checks for consistency
 func collectFromAttributableCustomerAccrued(
 	ctx context.Context,
 	customerID customer.CustomerID,
 	currency currencyx.Code,
 	target alpacadecimal.Decimal,
 	deps ResolverDependencies,
 ) ([]subAccountAmount, error) {
+	if deps.AccountCatalog == nil {
+		return nil, fmt.Errorf("account catalog is required")
+	}
+
+	if deps.BalanceQuerier == nil {
+		return nil, fmt.Errorf("balance querier is required")
+	}
+
 	customerAccounts, err := deps.AccountService.GetCustomerAccounts(ctx, customerID)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@openmeter/ledger/transactions/collection.go` around lines 147 - 170,
collectFromAttributableCustomerAccrued currently assumes dependencies exist; add
the same nil checks used in listCustomerFBOSources at the start of
collectFromAttributableCustomerAccrued to defend against nil deps. Validate
deps.AccountService, deps.AccountCatalog (and deps.BalanceQuerier if the
function later queries balances) and return an error like "missing
AccountCatalog in resolver dependencies" (or "missing BalanceQuerier in resolver
dependencies") so callers get consistent, descriptive failures before calling
GetCustomerAccounts or ListSubAccounts.
app/common/charges.go (1)

55-106: ⚡ Quick win

Consider reducing repeated transactions.ResolverDependencies construction.

NewChargesCollectorService, NewChargesFlatFeeHandler, and NewChargesUsageBasedHandler all build identical transactions.ResolverDependencies{} structs inline. Since all three are called from newChargesRegistry with the exact same (balanceQuerier, accountResolver, accountService) triple, if the struct ever gains a new required field you'll need to update three sites instead of one.

Two easy options:

  1. Build deps once in newChargesRegistry and thread it through (mirrors how NewChargesFlatFeeHandler already forwards a complete deps to ledgerchargeadapter.NewFlatFeeHandler).
  2. Change the public signatures to accept transactions.ResolverDependencies directly, which also makes them easier to call and test in isolation.
✨ Option 1 – build deps once in the private registry
 func newChargesRegistry(
 	db *entdb.Client,
 	...
 	ledgerService ledger.Ledger,
 	balanceQuerier ledger.BalanceQuerier,
 	accountResolver ledger.AccountResolver,
 	accountService ledgeraccount.Service,
 	fsNamespaceLockdown []string,
 ) (*ChargesRegistry, error) {
+	resolverDeps := transactions.ResolverDependencies{
+		AccountService: accountResolver,
+		AccountCatalog: accountService,
+		BalanceQuerier: balanceQuerier,
+	}
 	...
-	collectorService := NewChargesCollectorService(ledgerService, balanceQuerier, accountResolver, accountService)
+	collectorService := NewChargesCollectorService(ledgerService, resolverDeps)
 
-	recognizerService, err := NewRecognizerService(db, ledgerService, balanceQuerier, accountResolver, accountService, lineageService)
+	recognizerService, err := NewRecognizerService(db, ledgerService, resolverDeps, lineageService)
 
-	flatFeeHandler := NewChargesFlatFeeHandler(ledgerService, balanceQuerier, accountResolver, accountService, collectorService)
+	flatFeeHandler := NewChargesFlatFeeHandler(ledgerService, resolverDeps, collectorService)
-	usageBasedHandler := NewChargesUsageBasedHandler(ledgerService, balanceQuerier, accountResolver, accountService, collectorService)
+	usageBasedHandler := NewChargesUsageBasedHandler(ledgerService, resolverDeps, collectorService)

The public function signatures would change to accept transactions.ResolverDependencies instead of the three individual fields:

 func NewChargesCollectorService(
 	ledgerService ledger.Ledger,
-	balanceQuerier ledger.BalanceQuerier,
-	accountResolver ledger.AccountResolver,
-	accountService ledgeraccount.Service,
+	deps transactions.ResolverDependencies,
 ) ledgercollector.Service {
 	return ledgercollector.NewService(ledgercollector.Config{
 		Ledger:       ledgerService,
-		Dependencies: transactions.ResolverDependencies{
-			AccountService: accountResolver,
-			AccountCatalog: accountService,
-			BalanceQuerier: balanceQuerier,
-		},
+		Dependencies: deps,
 	})
 }

(Same pattern for NewChargesFlatFeeHandler, NewChargesUsageBasedHandler, NewRecognizerService.)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/common/charges.go` around lines 55 - 106, Multiple constructors
(NewChargesCollectorService, NewChargesFlatFeeHandler,
NewChargesUsageBasedHandler) duplicate building
transactions.ResolverDependencies; change them to accept a single
transactions.ResolverDependencies parameter (or build one deps in
newChargesRegistry and pass it) and update newChargesRegistry to construct that
deps once from (balanceQuerier, accountResolver, accountService) and pass it
into those functions; update all calls (including where
ledgerchargeadapter.NewFlatFeeHandler and
ledgerchargeadapter.NewUsageBasedHandler are invoked) to forward the shared deps
so you only maintain one ResolverDependencies construction site.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@openmeter/ledger/account.go`:
- Around line 110-116: CreateAccountInput.Validate() currently only validates
the Type and misses checking that Namespace is non-empty, causing inconsistency
with CreateSubAccountInput.Validate(); update CreateAccountInput.Validate() to
mirror the sub-account validation by returning an error when c.Namespace is
empty (use the same or similar error message used in
CreateSubAccountInput.Validate()), and keep the existing Type validation (i.e.,
validate Namespace first, then call c.Type.Validate()).

In `@openmeter/ledger/account/service/service.go`:
- Around line 127-130: The current switch only adds FBO and receivable accounts
to byID, which allows accrued/business accounts (posted by
TranslateCustomerAccruedCostBasisTemplate via historical.Ledger.CommitGroup) to
escape locking; change the logic in service.go so accrued/business accounts are
not skipped—either add the specific accrued/business account type constants to
the case list alongside ledger.AccountTypeCustomerFBO and
ledger.AccountTypeCustomerReceivable, or remove the switch/filter entirely and
unconditionally set byID[acc.ID()] = acc so all customer-related accounts
(including those touched by TranslateCustomerAccruedCostBasisTemplate) are
locked.

In `@openmeter/ledger/historical/balance.go`:
- Around line 76-80: The historical ledger function is returning a
QuerySummedResult with PendingSum equal to total, which incorrectly marks
settled funds as pending; change the returned object in the function that
currently constructs ledger.QuerySummedResult (the one using the local variable
total) to set SettledSum: total and PendingSum: zero (the appropriate zero value
for the sum type) so pending remains zero for historical balances.

---

Nitpick comments:
In `@app/common/charges.go`:
- Around line 55-106: Multiple constructors (NewChargesCollectorService,
NewChargesFlatFeeHandler, NewChargesUsageBasedHandler) duplicate building
transactions.ResolverDependencies; change them to accept a single
transactions.ResolverDependencies parameter (or build one deps in
newChargesRegistry and pass it) and update newChargesRegistry to construct that
deps once from (balanceQuerier, accountResolver, accountService) and pass it
into those functions; update all calls (including where
ledgerchargeadapter.NewFlatFeeHandler and
ledgerchargeadapter.NewUsageBasedHandler are invoked) to forward the shared deps
so you only maintain one ResolverDependencies construction site.

In `@openmeter/ledger/recognizer/service_test.go`:
- Around line 35-39: The block in newRecognizerTestEnv duplicates construction
of transactions.ResolverDependencies already produced by resolverDeps(); replace
the inline construction in newRecognizerTestEnv with a call to resolverDeps()
(or call resolverDeps() and merge any additional test-only overrides) so both
places use the same source of truth; update newRecognizerTestEnv to consume the
resolverDeps() result rather than re-creating transactions.ResolverDependencies.

In `@openmeter/ledger/transactions/collection.go`:
- Around line 147-170: collectFromAttributableCustomerAccrued currently assumes
dependencies exist; add the same nil checks used in listCustomerFBOSources at
the start of collectFromAttributableCustomerAccrued to defend against nil deps.
Validate deps.AccountService, deps.AccountCatalog (and deps.BalanceQuerier if
the function later queries balances) and return an error like "missing
AccountCatalog in resolver dependencies" (or "missing BalanceQuerier in resolver
dependencies") so callers get consistent, descriptive failures before calling
GetCustomerAccounts or ListSubAccounts.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 03224b12-a43b-4201-a42f-20d2cf756a09

📥 Commits

Reviewing files that changed from the base of the PR and between acff67d and 6e1dfd6.

📒 Files selected for processing (44)
  • app/common/billing.go
  • app/common/charges.go
  • app/common/customerbalance.go
  • app/common/ledger.go
  • cmd/billing-worker/wire_gen.go
  • cmd/jobs/internal/wire_gen.go
  • cmd/jobs/ledger/backfillaccounts/backfillaccounts.go
  • cmd/server/wire_gen.go
  • openmeter/ledger/account.go
  • openmeter/ledger/account/account.go
  • openmeter/ledger/account/account_business.go
  • openmeter/ledger/account/account_customer.go
  • openmeter/ledger/account/service.go
  • openmeter/ledger/account/service/service.go
  • openmeter/ledger/account/subaccount.go
  • openmeter/ledger/accounts.go
  • openmeter/ledger/balance.go
  • openmeter/ledger/chargeadapter/creditpurchase.go
  • openmeter/ledger/chargeadapter/creditpurchase_test.go
  • openmeter/ledger/chargeadapter/flatfee_test.go
  • openmeter/ledger/chargeadapter/helpers.go
  • openmeter/ledger/chargeadapter/usagebased_test.go
  • openmeter/ledger/customerbalance/facade_test.go
  • openmeter/ledger/customerbalance/service.go
  • openmeter/ledger/customerbalance/testenv_test.go
  • openmeter/ledger/customerbalance/transactions.go
  • openmeter/ledger/customerbalance/transactions_test.go
  • openmeter/ledger/historical/balance.go
  • openmeter/ledger/historical/ledger.go
  • openmeter/ledger/ledger_fx_test.go
  • openmeter/ledger/ledger_test.go
  • openmeter/ledger/noop/noop.go
  • openmeter/ledger/primitives.go
  • openmeter/ledger/query.go
  • openmeter/ledger/recognizer/service.go
  • openmeter/ledger/recognizer/service_test.go
  • openmeter/ledger/resolvers/account.go
  • openmeter/ledger/testutils/deps.go
  • openmeter/ledger/testutils/integration.go
  • openmeter/ledger/transactions/collection.go
  • openmeter/ledger/transactions/resolve.go
  • openmeter/ledger/transactions/testenv_test.go
  • test/credits/creditgrant_test.go
  • test/credits/sanity_test.go
💤 Files with no reviewable changes (3)
  • openmeter/ledger/accounts.go
  • openmeter/ledger/customerbalance/transactions_test.go
  • openmeter/ledger/query.go

Comment thread openmeter/ledger/account.go Resolved
Comment thread openmeter/ledger/historical/balance.go Resolved
@GAlexIHU
GAlexIHU merged commit 4a6634b into main May 5, 2026
33 of 35 checks passed
@GAlexIHU
GAlexIHU deleted the refactor/ledger-accounts branch May 5, 2026 11:50

@nawalrwandzey-creator nawalrwandzey-creator left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch was previously deployed

1 inactive deployment
dev — 6e1dfd60 Deployed May 4, 2026 by GAlexIHU via Migration Checks #14056
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/misc Miscellaneous changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants