Remove SanitizedHostnameMigration once device_id-keyed sync lands (follow-up to #273)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
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
SanitizedHostnameMigrationinBackgroundService.ktandSyncInterface.kt - Remove
HOSTNAME_MIGRATION_DONEpreference key fromAWPreferences.kt
Done when
SanitizedHostnameMigration.ktand 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ActivityWatch/aw-android のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ActivityWatch/aw-android#306 ·
メンテナーはふだん 1 日以内に返信
-
AuthSettingsActivity crashes on launch (InflateException: Material attributes under AppCompat theme)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
ActivityWatch/aw-android#210 · コメント 7 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
ActivityWatch/aw-android#300 · コメント 6 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
ActivityWatch/aw-android#296 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
ActivityWatch/aw-android#291 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
ActivityWatch/aw-android の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
AAswordman/Operit#1292 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
bug webview
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
home-assistant/android#7524 ·
メンテナーはふだん 1 日以内に返信
-
Issue: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
OpenAPITools/openapi-generator#25021 ·
メンテナーはふだん 1 日以内に返信