Skip to content

refactor: decouple sync mode from DB structs#24

Open
fkautz wants to merge 2 commits intogastownhall:mainfrom
fkautz:polecat/nux-mmhzzw76
Open

refactor: decouple sync mode from DB structs#24
fkautz wants to merge 2 commits intogastownhall:mainfrom
fkautz:polecat/nux-mmhzzw76

Conversation

@fkautz
Copy link
Copy Markdown

@fkautz fkautz commented Mar 8, 2026

Summary

  • Removed mode field from LocalDB and RemoteDB — backends no longer know about workflow modes
  • Renamed PushWithSyncPushAllRemotes across both commons.DB and backend.DB interfaces
  • Added mode-backend compatibility validation at config set time (wild-west + remote backend rejected early)
  • Updated 21 files with consistent interface changes

Closes w-bd-004.

Test plan

  • All unit tests pass (go test ./...)
  • go vet clean
  • gofmt clean

🤖 Generated with Claude Code

nux and others added 2 commits March 8, 2026 10:15
- Remove mode field from RemoteDB (was dead code, never read)
- Remove mode field from LocalDB, inject sync strategy via function
  parameter (PRSync/WildWestSync) instead of runtime string comparison
- Rename PushWithSync → PushAllRemotes across both DB interfaces and
  all implementations for clarity
- Add mode-backend compatibility validation at config set time
  (wild-west + remote backend now rejected early with clear error)

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
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