Add git-like pull and push sync commands - #12
Conversation
6650892 to
7cb17d2
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7cb17d2b4d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| with tempfile.NamedTemporaryFile(prefix='mini_sim_db_push_', suffix='.json', delete=False) as tmp: | ||
| artifact_path = tmp.name | ||
| try: | ||
| sync_export(db_path, artifact_path, include_all=True, mark_synced=False) |
There was a problem hiding this comment.
Mark source rows synced after successful push
sync_push calls sync_export(..., mark_synced=False), so even when the remote import succeeds the local sim_sync_state is never advanced. In practice, a row that was just pushed still appears in sync-status as pending, which can mislead operators and trigger redundant exports in automation that relies on pending counts. The same pattern is used in sync_pull for the remote source export, so source-side sync metadata is skipped in both directions.
Useful? React with 👍 / 👎.
Summary
pullandpushcommands for easier local/remote syncVerification