Sync docs/02-interfaces.md with the actual GetRecurringExpenses signature #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
docs/02-interfaces.md:107documents:But PR #10 (
feat/3-implement-recurring-interactors) ships it as single-DAO:The simplification is correct:
RecurringExpenseDao.subscribeAll()uses@Relationto join the category in a single query (app/src/main/java/dev/achmad/ledgerr/data/local/dao/RecurringExpenseDao.kt:27-29), so a secondCategoryDaowould be redundant.awaitOne(id)only needs the recurring entity, not the category, so the simpler constructor is enough.GetExpensesin PR #2 keeps its two-DAO shape becauseExpenseDao.getByIdandsearchdo not use@Relation— so the asymmetry between the two interactors is justified by the DAO design, not a doc bug.The original issue #3 step 3 also told the implementer to register
GetRecurringExpenses(get(), get()); the implementer correctly registered it with one arg, but the spec was stale.What to do
docs/02-interfaces.md:107to the single-DAO form:docs/02-interfaces.mdexplaining whyGetRecurringExpensesis one-DAO whileGetExpensesis two-DAO — the difference is whether the DAO query uses@Relation.Acceptance
docs/02-interfaces.mdmatches the actualGetRecurringExpensesconstructorGetExpensesis documentedImplementation rule
Per
AGENTS.md— do not start implementation without explicit user sign-off on this issue. When working, check for related issues in the remote repo first.Closing — addressed as a review comment on PR #10 (#10) instead of a separate issue.