Hard to parse list of expired metrics in the expired metrics mails

Abierto
#269 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
tooling

Línea de trabajo

Inspecciona el código que genera el correo electrónico de métricas expiradas; el issue no indica ningún archivo ni prueba. Confirma cómo se ensambla la lista de métricas y, a continuación, facilita el análisis de la salida aplicando el orden lexicográfico solicitado y comprobando si se deberían eliminar los code fences redundantes. Verifica el correo electrónico resultante con el ejemplo ordenado del issue.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

I'm finding it tricky to read the list of expired metrics in the mail. Here's how it reads, from a recent go 'round:

```
TIME_TO_LOAD_EVENT_END_PRELOAD_MS
TIME_TO_LOAD_EVENT_START_NO_PRELOAD_MS
blocklist.mlbf_stash_time_oldest
TIME_TO_LOAD_EVENT_END_NO_PRELOAD_MS
COOKIE_PURGING_TRACKERS_USER_INTERACTION_REMAINING_DAYS
COOKIE_PURGING_DURATION_MS
js.run_time_us
COOKIE_PURGING_TRACKERS_WITH_USER_INTERACTION
wasm.compile_time_baseline_us
COOKIE_PURGING_ORIGINS_PURGED
blocklist.lastModified_rs_addons
blocklist.lastModified_rs_plugins
TIME_TO_LOAD_EVENT_START_PRELOAD_MS
blocklist.mlbf_generation_time
blocklist.lastModified_rs_addons_mlbf
wasm.compile_time_ion_us
WEBAUTHN_GET_ASSERTION_MS
TIME_TO_FIRST_INTERACTION_PRELOAD_MS
COOKIE_PURGING_INTERVAL_HOURS
security.webauthn_used
LOAD_INPUT_EVENT_RESPONSE_NO_PRELOAD_MS
blocklist.mlbf_stashes
TIME_TO_FIRST_INTERACTION_NO_PRELOAD_MS
LOAD_INPUT_EVENT_RESPONSE_PRELOAD_MS
WEBAUTHN_CREATE_CREDENTIAL_MS
STORAGE_ACCESS_API_UI
wasm.compile_time_cranelift_us
blocklist.mlbf_stash_time_newest
blocklist.mlbf_enabled
```

First I guess we could remove the backtick fences since they're not really needed. But that's not the big problem with readability I"m having.

Could the list be lexicographically sorted? Or grouped by the bug filed? Or something? All the TIME_TO_* probes are scattered all over the place, dominating over the lowercase scalars in between. If there were a telemetry.* scalar in there (ie, one I'd have to think about), I'm not sure I'd see it.

Here's what the list looks like sorted:

COOKIE_PURGING_DURATION_MS
COOKIE_PURGING_INTERVAL_HOURS
COOKIE_PURGING_ORIGINS_PURGED
COOKIE_PURGING_TRACKERS_USER_INTERACTION_REMAINING_DAYS
COOKIE_PURGING_TRACKERS_WITH_USER_INTERACTION
LOAD_INPUT_EVENT_RESPONSE_NO_PRELOAD_MS
LOAD_INPUT_EVENT_RESPONSE_PRELOAD_MS
STORAGE_ACCESS_API_UI
TIME_TO_FIRST_INTERACTION_NO_PRELOAD_MS
TIME_TO_FIRST_INTERACTION_PRELOAD_MS
TIME_TO_LOAD_EVENT_END_NO_PRELOAD_MS
TIME_TO_LOAD_EVENT_END_PRELOAD_MS
TIME_TO_LOAD_EVENT_START_NO_PRELOAD_MS
TIME_TO_LOAD_EVENT_START_PRELOAD_MS
WEBAUTHN_CREATE_CREDENTIAL_MS
WEBAUTHN_GET_ASSERTION_MS
blocklist.lastModified_rs_addons
blocklist.lastModified_rs_addons_mlbf
blocklist.lastModified_rs_plugins
blocklist.mlbf_enabled
blocklist.mlbf_generation_time
blocklist.mlbf_stash_time_newest
blocklist.mlbf_stash_time_oldest
blocklist.mlbf_stashes
js.run_time_us
security.webauthn_used
wasm.compile_time_baseline_us
wasm.compile_time_cranelift_us
wasm.compile_time_ion_us
Lenguaje dominante
Python
Estrellas
27
Forks
75
Merge medio
5 d 2 h
PR fusionados (30 d)
12

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de mozilla/probe-scraper

Todos los issues de mozilla/probe-scraper

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.