[施設予約] 「重複予約を許可しない」設定にしていても、予約の終了時間を「24:00」にすると重複して予約ができてしまう不具合対応 - #2202
Merged
Conversation
masaton0216
reviewed
May 29, 2025
masaton0216
left a comment
Contributor
There was a problem hiding this comment.
@akagane99 ご対応ありがとうございます。
そもそも、24時に丸めてしまう処理を除去してしまえば?と考えたのですが、この処理を入れたのにもきっと何か経緯があるんですよね?
3f498e6
24時丸め処理が必要なのであれば、本修正も問題ないとは思いますが、丸め処理が入った経緯ご存知だったらお伺いしてもよいでしょうか?
Contributor
Author
|
@masaton0216 |
masaton0216
approved these changes
May 29, 2025
masaton0216
left a comment
Contributor
There was a problem hiding this comment.
@akagane99 説明ありがとうございます。
そうしたら仕方ないですね。本修正も妥当なものと思います。
マージさせて頂きます。
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.
概要
施設予約で「重複予約を許可しない」設定にしていても、予約の終了時間を「24:00」にすると重複して予約ができてしまう不具合がありましたので、重複予約チェックを修正しました。
不具合詳細
※ 終了時間の24:00表示は、施設予約特有の表示で、変換して表示しています。
システム上では
2025-05-30 24:00はイレギュラーな値で、CarbonやDBのdatetime型ですと、正しい値は 翌日の0時2025-05-31 00:00になります。2025-05-30 24:00のイレギュラーな値で、予約重複チェックを行ったため、うまくチェックが働きませんでした。対応
2025-05-30 24:00等の24:00がきた場合、正しい値の 翌日の0時2025-05-31 00:00に変換してチェックするよう対応しました。レビュー完了希望日
5/30(金)
修正後画面
(参考) 施設管理>施設変更(重複予約=許可しない)
(参考) 施設予約>初期表示(05-30 14:00-17:00予定あり)
施設予約>予約(05-30 12:00-24:00予定を登録で、重複予約エラーが出ることを確認しました)
簡易テスト
関連Pull requests/Issues
なし
参考
なし
DB変更の有無
無し
チェックリスト