aw-sync: daemon pull is opt-in (default off) for v0.14.0b8 — first config.toml in the aw-sync config dir
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 68/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- rust
調査の方向性
Start at the aw-sync daemon pass and the existing dirs::get_config_dir() entry point, then trace how SyncMode and --mode are selected. Check the aw-sync sync and status commands and the #687 warning path. Done means a commented config.toml is created, the listed mode precedence and status behavior work, and the daemon tests cover the three requested cases.
索引モデルが issue の本文から書いたものです。
説明
Decision by Erik for v0.14.0b8: with #710 merged the daemon can pull, but it must not pull by default. 0.14 is push-only everywhere unless the user opts in — Android by design (ActivityWatch/aw-android#291), desktop because #711 (boundary re-import every pass) is unfixed and because sync v2 will replace pull with "read from the sync folder". Erik opts in on his own machine to test sync v1, the multidevice query, etc.
Requirement
- One setting, one place: the daemon's pull is controlled by aw-sync's own config, not by aw-qt/aw-tauri launch arguments (they would drift).
dirs::get_config_dir()already exists ({config}/activitywatch/aw-sync/, profile-aware, "TODO: add proper config support") — add the firstconfig.tomlthere, e.g.# aw-sync config pull = false # default; set true to import peers from the sync folder every pass - Default off ⇒ the daemon's pass is push-only (
SyncMode::Push);pull = true⇒SyncMode::Both. An explicit--modeon the command line still wins. aw-sync sync(the one-shot) is unaffected — it stays pull+push, that is how testers verify an import.aw-sync statusprints the effective mode and where the config was read from, and the #687 "zero peers … layout problem" warning is suppressed when pull is off (there was no pull).- A missing file is created with the commented default on first daemon start, so users find the switch.
Tests: daemon pass with no config ⇒ Push; with pull = true ⇒ Both; --mode pull overrides a pull = false config.
Sequence agreed on ActivityWatch/activitywatch#1445: #712 → this → #711 → v2 (manifest + segment writer). The default flips when #711 is fixed, or is superseded by v2's read-from-staging.
cc @TimeToBuildBob
- 主要言語
- Rust
- スター
- 317
- フォーク
- 99
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 61
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ActivityWatch/aw-server-rust のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
ActivityWatch/aw-server-rust#763 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
ActivityWatch/aw-server-rust#724 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
ActivityWatch/aw-server-rust#717 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
ActivityWatch/aw-server-rust#696 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Imported (-synced-from-) buckets are writable and unmarked; local writes to them are silently lostオープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
ActivityWatch/aw-server-rust#694 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
ActivityWatch/aw-server-rust の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
area: cli bug priority: P2 ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信