Suggestion: Regex-based inbound data filters
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
- #598 de @TimeToBuildBob — cerrado sin fusionar
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
Comienza revisando el endpoint de heartbeat y el filtrado existente a nivel de watcher descrito en el issue. Aclara si el alcance previsto incluye únicamente el descarte o también el reemplazo mediante regex y la coincidencia específica por campo, y después define cómo deben acordarse la configuración del usuario y los criterios de finalización antes de la implementación.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 317
- Forks
- 99
- Merge medio
- 3 d 6 h
- PR fusionados (30 d)
- 77
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ActivityWatch/aw-server-rust
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ActivityWatch/aw-server-rust#798 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
Correctness bugs: heartbeat cache, query cache invalidation, commit rollback statePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
ActivityWatch/aw-server-rust#825 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
aw-sync: rowid upgrade bootstrap does not recover backfills lost under the old timestamp cursorAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
ActivityWatch/aw-server-rust#793 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
ActivityWatch/aw-server-rust#790 ·
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
ActivityWatch/aw-server-rust#717 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
Todos los issues de ActivityWatch/aw-server-rust
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
manuscript-lang/manuscript#1629 ·
Los mantenedores suelen responder en 1 día
-
autofixer: follow-up
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
tursodatabase/turso#10885 ·
Los mantenedores suelen responder en 1 día
-
🐞 bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
nannou-org/gantz#475 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día