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

Đang mở
#153 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 10 ngày

@TimeToBuildBob đang làm issue này rồi.

Từ ngày 28/10/2026.

  • #154 của @TimeToBuildBob — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
73
Fork
76
Merge trung bình
8 ngày 13 giờ
Pull request đã merge (30 ngày)
17

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ActivityWatch/aw-client

Tất cả issue của ActivityWatch/aw-client

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.