Skip to content

DDD refactor 7/8: sync bounded context - #34

Merged
gjong merged 1 commit into
mainfrom
devin/ddd-7-sync
Oct 30, 2026
Merged

gjong merged 1 commit into
mainfrom
devin/ddd-7-sync

Conversation

@gjong

@gjong gjong commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Part 7 of 8 of the DDD reorganization. Moves the sync bounded context into com.pledgerio.app.sync:

  • domain/repository — TransactionOutboxRepository port
  • data — TransactionOutboxRepositoryImpl
  • data/local — SyncMetadataDao/Entity, TransactionOutboxDao/Entity
  • work — WorkManager machinery: SyncWorker, SyncWorkRunner, SyncWorkScheduler, OutboxFlushScheduler, OutboxFlushOnReconnect

Also moves the Room infrastructure that no context owns — PledgerDatabase, Converters, PledgerDatabaseMigrations — from the old data.local into shared.data.local. The Room schema export directory was renamed to the new package path; Room regenerated 8.json under it and the content is identical to the old export.

Tests moved to matching packages; FakeSyncMetadataDao lives in sync.work and is imported by tests across contexts.

Pure package moves + import fixes; no behavior changes.

Verification

  • ./gradlew compileDebugKotlin — clean
  • ./gradlew testDebugUnitTest — all tests pass
  • ./gradlew lintDebug — passes (baseline-filtered issues unchanged)

Depends on #33.

Link to Devin session: https://app.devin.ai/sessions/b4abe677e08c40eea4954207aac218de
Open in Devin Desktop: https://app.devin.ai/desktop/session/b4abe677e08c40eea4954207aac218de?variant=devin
Requested by: @gjong

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@gjong
gjong added this pull request to stack #36 October 30, 2026 11:23
@gjong
gjong force-pushed the devin/ddd-7-sync branch 5 times, most recently from aeb59f3 to 820ba68 Compare October 30, 2026 11:44
Base automatically changed from devin/ddd-6-reports to main October 30, 2026 11:49
Move TransactionOutbox repository port/impl, SyncMetadata/TransactionOutbox
DAO+entity, and the WorkManager sync machinery (SyncWorker, SyncWorkRunner,
SyncWorkScheduler, OutboxFlush*) into com.pledgerio.app.sync. Move the Room
database, converters and migrations into shared.data.local (schema export
dir renamed to match the new package; 8.json regenerated by Room is
content-identical).

Pure package move; no behavior changes.
@gjong
gjong merged commit caf6e69 into main Oct 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant