refactor: decouple sync mode from DB structs#24
Open
fkautz wants to merge 2 commits intogastownhall:mainfrom
Open
refactor: decouple sync mode from DB structs#24fkautz wants to merge 2 commits intogastownhall:mainfrom
fkautz wants to merge 2 commits intogastownhall:mainfrom
Conversation
- 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
modefield fromLocalDBandRemoteDB— backends no longer know about workflow modesPushWithSync→PushAllRemotesacross bothcommons.DBandbackend.DBinterfacesCloses w-bd-004.
Test plan
go test ./...)go vetcleangofmtclean🤖 Generated with Claude Code