Repository navigation
Google スプレッドシートへの書き込みを、応答を返したあとに行う - #3
Merged
Merged
Conversation
外部サービスが遅いと、フォームの応答まで待たされた。本体が Response::afterResponse() に対応しているときだけ後回しにし、 古い本体では従来どおり、その場で実行する。 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.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.
概要
フォームの送信後に行う外部サービスへの連携(Google スプレッドシートへの書き込み)を、本体が
Response::afterResponse()(応答を返したあとに処理を実行する仕組み)に対応しているときだけ、応答のあとに行います。外部サービスが遅くても、フォームの応答を待たせません。本体側の仕組みは、a-blog cms の CMS-8163(3.2.x。#5308)/ CMS-8164(3.3.x。#5310)で追加します。
変更内容
Hook::afterPostFire)を、runAfterResponse()経由で、応答のあとに実行します。afterResponse()が無い古い本体、または取得に失敗したときは、これまでどおり、その場で実行します(古い本体で動かなくなることはありません)。影響範囲
検証
afterResponse()がある場合は後回しに登録され、ない場合・取得に失敗した場合は、その場で実行されることを、新旧の本体を想定した確認で確かめました。🤖 Generated with Claude Code