release(hotfix): env/dev → env/prod(「前回の参拝」誤表示の修正)#138
Merged
Conversation
status_version 導入により、旧prodの既存ユーザー(status_version未設定)は 初回のstatus呼び出しで必ずフル再計算経路を通る。ところが再計算経路は last_sanpaiを実際のTimestampを読まず固定文字列『参拝していないようです』に していたため、参拝済みでも『参拝していないようです』と誤表示していた (2回目以降はキャッシュ経路で正しく表示=自己修復するが明確な回帰)。 本番statusGo?user=mattn を2回叩いて再現確認(1回目=誤表示/2回目=正しい日時)。 再計算経路でもキャッシュ経路と同じくトップレベルlast_sanpai(Timestamp)から 生成する(未参拝=ゼロ値のときのみ従来文言)。Go(status.go)/Node(index.js)両方を修正。 Co-authored-by: kojira <kojira@users.noreply.github.com>
Co-authored-by: kojira <kojira@users.noreply.github.com>
Co-authored-by: kojira <kojira@users.noreply.github.com>
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.
本番ホットフィックス(
env/dev→env/prod)先の本番リリースで発生した「前回の参拝」誤表示(参拝済みでも「参拝していないようです」)の修正を本番へ反映する。
内容(#137)
statusのフル再計算経路がlast_sanpaiを実際の Timestamp を読まず固定文字列にしていた回帰を修正。再計算経路でもキャッシュ経路と同じくトップレベルlast_sanpai(Timestamp) から生成する。Go(status.go)/Node(index.js) 両方+docs/backend.md。原因確定(実データ)
本番
statusGo?user=mattnを2回連続実行し、1回目=誤表示(再計算経路)/2回目=正しい日時(キャッシュ経路)で切り分け済み。status_version新規導入により旧prod既存ユーザーが初回に必ず再計算経路を通ることが誘因。検証
3de3113)成功。Firestoreエミュレータ統合テスト通過、dev再デプロイ完了。go build/vet/test・node --checkパス。差分
status.go/index.js/docs/backend.mdの3ファイルのみ(回帰修正にスコープを限定)。マージ = 本番リリース
マージで
env/prodへ push され prod-deploy(Go関数→フロントの順)が走る。