Suggestion: Regex-based inbound data filters
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
- #598 của @TimeToBuildBob — đã đóng, không merge
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Bắt đầu bằng việc xem xét heartbeat endpoint và cơ chế lọc hiện có ở cấp watcher được mô tả trong issue. Làm rõ liệu phạm vi dự kiến chỉ bao gồm việc loại bỏ hay còn bao gồm thay thế bằng regex và so khớp theo từng trường, sau đó xác định cách thống nhất về cấu hình người dùng và các tiêu chí hoàn thành trước khi triển khai.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Being able to filter the inbound data has been the most popular feature request for a very long time and comes up again and again in the issues of different repositories. In the status quo, some watchers (e.g. the window watcher) have their own filtering, but they have various problems:
- Discoverability: The configuration is so hidden that even the developers forget that it exist (no offense). Even when it's exposed as a config, it still requires the user to find it somewhere in the docs, then edit the configuration file to set it up correctly. This is not very discoverable.
- Consistency: The user needs to look into the docs for each watcher to see whether it supports data filtering and to find out how it's configured.
- Limited expressiveness: For the window watcher, it's only possible to remove all window titles. Many people say they only want to exclude some sensitive information (e.g. mail subjects). In my case, I'm frequently using an app that shows a timer in the window title, creating a new entry every second, which makes the timeline barely readable and very unresponsive.
Suggestion
We could add regex-based filtering on the heartbeat level: whenever a heartbeat comes in, it's checked against a set of user-configurable regexes. If one matches on any field of the entry, the entry is discarded. We could also extend this feature to allow regex-replacing entries or matching only some fields of the JSON entry.
Similar inbound data filters can be found in e.g. Sentry.
I could probably implement this by myself, at least in Python and the Vue frontend, but probably in Rust as well, but I'd like to know if the approach is welcome in the first place. Tbh, if it isn't, I'd consider writing a simple proxy server that does exactly this -- applying some replacements to the heartbeat endpoint and passing everything else through.
- Ngôn ngữ chính
- Rust
- Star
- 320
- Fork
- 101
- Merge trung bình
- 3 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 47
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ActivityWatch/aw-server-rust
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ActivityWatch/aw-server-rust#798 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Correctness bugs: heartbeat cache, query cache invalidation, commit rollback stateCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
ActivityWatch/aw-server-rust#825 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
aw-sync: rowid upgrade bootstrap does not recover backfills lost under the old timestamp cursorĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
ActivityWatch/aw-server-rust#793 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
ActivityWatch/aw-server-rust#790 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
ActivityWatch/aw-server-rust#717 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của ActivityWatch/aw-server-rust
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mozilla-services/syncstorage-rs#2715 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
physicsdolphin/nv-uefi-unlocker#53 · 4 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/desktop-shell
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
yantrikos/yantrik-os#1012 ·
Maintainer thường phản hồi trong vòng 1 ngày