Follow-through: 4 untracked items deferred from merged PRs (widget fallback order, notify migration, test flake, rollout guard)

Abierto
#405 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
38/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
android, kotlin, rust

Línea de trabajo

This is a bundle of four deferred items against master aa9cea0, not a single edit, so pick one bullet at a time. For item 1, read AsyncBroadcast.launch and its onFailure fallback, then write the described unit test that blocks the fallback while a later pass renders data. For item 2, trace the aw-notify opt-in path through setSetting, awaitRustInterface() and isUpgradeInstall(). Item 3 is WebWatcherTest's focused-address-bar case, which needs to wait on a later known event; item 4 is the pre-release-skipped Play edits.insert/tracks.get guard.

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

Descripción

Follow-through on PRs merged in the last 60 days. These items were deferred in the PR threads and never tracked. Code references are against master aa9cea0.

1. A stale widget fallback can overwrite newer data (#360, the remaining P2 from review). In AsyncBroadcast.launch, the onFailure fallback runs detached and can outlive its 1s wait. It can then render "No data yet" after a later pass has already rendered real data. Erik's decline covered only the skipped-fallback edge, not this ordering.
Repro (unit test): block the fallback, let a later pass render data, release the fallback, and assert the data is still shown.

2. aw-notify opt-in migration edge cases (#365).

  • (a) A failed migration (non-ok setSetting, or awaitRustInterface() returning null) is not retried within the same service. Alerts stay blocked until the service is recreated.
  • (b) isUpgradeInstall() compares lastUpdateTime > firstInstallTime. An Auto Backup restore on a new phone can look like a fresh install, so an existing user's alerts get written as {"enabled":false}.

3. WebWatcherTest's focused-address-bar test can pass too early (#307, Greptile, posted after merge). It asserts that the typed text is absent after waiting only for the four earlier visits. A single read can miss a still-queued write. The test should wait for a later known event before asserting.

4. The production-rollout guard has never made a live call (#361). The only release since the merge was v0.14.4b1, a pre-release, where the step is skipped. The next stable tag will be the first real edits.insert and tracks.get against Play. A 403 from the service account fails closed and blocks the release, so expect that run to need a look.

Checked on master aa9cea0 (CI debug APK, fresh API 34 emulator), all working:

  • #369: /api/0/info hostname is sdk_gphone64_x86_64, which matches device_name.
  • #389 and #390: buckets are created and events are returned.
  • #365 and #329: a fresh install materializes aw-notify = {"enabled":false}.
  • #327: Back from Timeline returns to Home and does not finish the activity.
  • #395: an external link with Chrome disabled shows a toast via SafeIntents, and the app survives.
  • #355: the web menu shows the Sync settings and API authentication items.
Lenguaje dominante
Kotlin
Estrellas
289
Forks
67
Merge medio
8 d 52 min
PR fusionados (30 d)
8

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

  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 ActivityWatch/aw-android

Todos los issues de ActivityWatch/aw-android

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.