Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

aw-sync: daemon pull is opt-in (default off) for v0.14.0b8 — first config.toml in the aw-sync config dir

オープン
#714 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 first config.toml there, 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 --mode on 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 status prints 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ActivityWatch/aw-server-rust のほかの issue

ActivityWatch/aw-server-rust の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。