キーノート招待作成時の user_id=nil Speaker の重複バリデーションエラーを修正#2748
Merged
Conversation
gitops-for-cloudnativedays bot
added a commit
to cloudnativedaysjp/dreamkast-infra
that referenced
this pull request
Mar 9, 2026
gitops-for-cloudnativedays bot
added a commit
to cloudnativedaysjp/dreamkast-infra
that referenced
this pull request
Mar 9, 2026
commit: cloudnativedaysjp/dreamkast@23ac89f action URL: https://github.com/cloudnativedaysjp/dreamkast/actions/runs/22856088547 Co-authored-by: gitops-for-cloudnativedays[bot] <113280573+gitops-for-cloudnativedays[bot]@users.noreply.github.com>
Simplecov Report
|
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.
概要
同一カンファレンス内に
user_id = nilの暫定 Speaker が既に存在する場合、キーノート招待作成に失敗する問題を修正しました。原因
Speakerに以下のバリデーションがあり、nilでも一意性チェックが実行されていました。このため、同一 conference で2件目以降の暫定 Speaker(
user_id IS NULL)作成時に重複と判定され、保存失敗していました。変更内容
Speakerのuser_id一意性バリデーションにallow_nil: trueを追加しました。影響範囲
user_id=nilの暫定 Speaker を複数作成可能になります。user_idが入っているデータの一意性制約は従来通り維持されます。