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

Aperta
#269 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

Esamina il codice che genera l’e-mail sulle metriche scadute; l’issue non indica né un file né un test. Verifica come viene assemblato l’elenco delle metriche, quindi rendi l’output più facile da scansionare applicando l’ordinamento lessicografico richiesto e controllando se sia necessario rimuovere i code fences ridondanti. Verifica l’e-mail risultante rispetto all’esempio ordinato nell’issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Python
Stelle
27
Fork
74
Merge medio
5g 2h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mozilla/probe-scraper

Tutte le issue di mozilla/probe-scraper

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.