Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Remove SanitizedHostnameMigration once device_id-keyed sync lands (follow-up to #273)

オープン
#302 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
kotlin
領域
mobile

調査の方向性

Wait for ActivityWatch/activitywatch#302 and aw-server-rust#683 to land, then inspect the migration and callsites in SanitizedHostnameMigration.kt, SanitizedHostnameMigrationTest.kt, BackgroundService.kt, SyncInterface.kt, and AWPreferences.kt. Remove the migration, its tests, callsites, and HOSTNAME_MIGRATION_DONE, then run CI; done means all listed files and references are gone and CI is green.

索引モデルが issue の本文から書いたものです。

説明

Background

ActivityWatch/aw-android#273 fixed the immediate hostname-fork issue by adding a one-shot migration (SanitizedHostnameMigration.kt, ~356 lines) that rewrites bucket hostname rows to the sanitized form before the datastore opens.

The root cause — sync identity is hostname-keyed, so any future sanitizer/casing change will fork again — is tracked in ActivityWatch/activitywatch#302 (device_id-keyed sync direction) and ActivityWatch/aw-server-rust#683 (aw-sync data-loss from duplicate folders).

Remaining work

When ActivityWatch/activitywatch#302 lands and aw-server-rust implements device_id-keyed sync, the migration machinery from #273 becomes obsolete and should be removed:

  • mobile/src/main/java/net/activitywatch/android/SanitizedHostnameMigration.kt (356 lines)
  • mobile/src/test/java/net/activitywatch/android/SanitizedHostnameMigrationTest.kt (327 lines)
  • Remove calls to SanitizedHostnameMigration in BackgroundService.kt and SyncInterface.kt
  • Remove HOSTNAME_MIGRATION_DONE preference key from AWPreferences.kt

Done when

  • SanitizedHostnameMigration.kt and its test deleted
  • All callsites removed
  • CI green

Depends on

  • ActivityWatch/activitywatch#302 — device_id-keyed sync direction (upstream gate)
  • ActivityWatch/aw-server-rust#683 — aw-sync duplicate folder data-loss (upstream gate)

Closes via: ActivityWatch/aw-android#272

主要言語
Kotlin
スター
270
フォーク
57
平均マージ
20時間 32分
マージ済み PR(30日)
38

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ActivityWatch/aw-android のほかの issue

ActivityWatch/aw-android の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。