Repository navigation
TTSのRemote Config判定をプラットフォーム別キーのみに変更して旧バージョンへの影響を防ぐ - #6635
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Au84kZNZN65jY6t86iLLcT
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughChangesTTS Remote Config制御
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Remote Config による TTS の有効/無効判定を、旧マスタースイッチ
tts_enabledから切り離し、プラットフォーム別キーtts_enabled_ios/tts_enabled_androidのみで行うように変更する。従来は
tts_enabledとプラットフォーム別キーの AND で判定していたため、tts_enabled: falseで TTS を停止している状態から特定プラットフォームだけ再開するにはtts_enabledをtrueに戻す必要があり、プラットフォーム別キーを解釈しない旧バージョンのアプリでも TTS が復活してしまう問題があった。判定を分離することで、旧バージョン向けのtts_enabledと対応バージョン向けのプラットフォーム別キーを独立して制御できるようにする。変更の種類
変更内容
isTTSFeatureEnabled()をPlatform.OSに応じたtts_enabled_ios/tts_enabled_androidのみで判定するよう変更(iOS/Android 以外はフォールバックtrue)tts_enabledのキャッシュ・取り込み処理と AND 合成ヘルパーisTTSPlatformEnabled()を削除し、TTS_PLATFORM_ENABLED_FALLBACKをTTS_ENABLED_FALLBACKへ一本化REMOTE_CONFIG_KEYS.TTS_ENABLEDとRemoteConfigResponse.tts_enabledは Worker 側との対応表として定義のみ残し、「旧バージョン専用キーで当バージョンは参照しない」旨をコメントで明記src/lib/remoteConfig.test.tsのテストをプラットフォーム別キーベースへ全面移行。tts_enabled: falseでもプラットフォーム別キーがtrueなら有効になること、tts_enabled: trueでもプラットフォーム別キーがfalseなら無効になることを回帰テストとして追加FxTTS.tsx/useTTSFeatureEnabled.tsおよび関連テストのコメント・describe名を新しい判定基準に合わせて更新回帰リスクと緩和策
true(利用可能)のため、/config/remoteがtts_enabled_ios/tts_enabled_androidを返さない状態で本変更をリリースすると、現在tts_enabled: falseで停止中の TTS が本バージョンでのみ有効化される。BFF(TrainLCD/BFF)で両キーの配信を先に有効化してからリリースすることで回避する。tts_enabled: falseではなくtts_enabled_ios/tts_enabled_androidの両方をfalseにする操作へ変わる。この運用はREMOTE_CONFIG_KEYSおよびisTTSFeatureEnabled()のコメントに明記済み。FxTTSマウント制御と設定画面のトグル無効化はキルスイッチの購読経路をそのまま利用しており、挙動は不変(既存テストで担保)。テスト
npm run lint/npm test/npm run typecheckをローカルで実行し、いずれも成功することを確認済み(215 suites / 2263 tests パス)。npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Summary by CodeRabbit
機能改善
テスト