query(cache=False) omits bypass and uses the server cache

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

メンテナーはふだん 10 日以内に返信

@TimeToBuildBob がすでに取り組んでいます。

2026年10月28日 から。

  • #154 @TimeToBuildBob による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python

調査の方向性

Start at ActivityWatchClient.query and inspect the captured _post arguments described in the issue; the payload does not name a file or test. Reproduce the cache=False request and add a regression for its wire encoding, then check Python and Rust server compatibility. Done means default and explicit cache=False bypass caching while named cache=True keeps working; pull request #154 is already open.

索引モデルが issue の本文から書いたものです。

説明

On current master c88cf12c6fb122447157c183322eb2b5c12e6266, ActivityWatchClient.query(..., cache=False) sends neither a cache query parameter nor a body cache value. The Python server defaults omission to enabled caching, so the client's default false is ignored.\n\nReproduced by capturing the actual query method's _post arguments: params={} and body contains only query/timeperiods. An offline Flask/MemoryStorage replay with synthetic RETURN = 17; requests records one cache miss then one hit for two cache=False calls; explicit body false leaves counters unchanged. This is ignored bypass, not a claim of stale/corrupt data.\n\nExpected: default and explicit cache=False bypass caching. Named cache=True retains caching; unnamed cache=True and naive datetime validation remain unchanged. Fix scope is client wire encoding plus regressions, with Python/Rust server compatibility checked.

主要言語
Python
スター
73
フォーク
76
平均マージ
8日 13時間
マージ済み PR(30日)
17

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

ActivityWatch/aw-client のほかの issue

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

似ている issue

Python の issue をもっと見る

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

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