Skip to content

Add git-like pull and push sync commands - #12

Merged
hyharry merged 2 commits into
masterfrom
feat/pull-push-sync
Apr 11, 2026
Merged

Add git-like pull and push sync commands#12
hyharry merged 2 commits into
masterfrom
feat/pull-push-sync

Conversation

@hyharry

@hyharry hyharry commented Apr 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • add direct pull and push commands for easier local/remote sync
  • reuse the existing sync artifact merge logic under a simpler CLI
  • keep artifact-based sync available for advanced/manual usage
  • update tests and README

Verification

  • python3 -m unittest -v

@hyharry
hyharry force-pushed the feat/pull-push-sync branch from 6650892 to 7cb17d2 Compare April 11, 2026 20:48
@hyharry

hyharry commented Apr 11, 2026

Copy link
Copy Markdown
Owner Author

@codex

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread sim_db.py
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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@hyharry
hyharry merged commit c77830a into master Apr 11, 2026
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