rails8まで上げた影響でスピーカー・セッションの登録ができなくなっていた問題を修正#2595
Merged
Conversation
Changed from `form.fields_for :talks` to explicit iteration over @speaker_form.talks to properly pass talk objects to nested form fields. The FormObject pattern requires explicit field mapping rather than Rails' automatic association detection. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Fix nil parameter handling in SpeakerForm#talks_attributes= - Update fields_for to use proper :talks_attributes with index option - Ensures individual talk objects are passed to form fields correctly 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add parameter normalization with symbolize_keys for consistent handling - Fix proposal_item attribute deletion using symbol keys instead of string keys - Add form_index parameter passing to nested partials - Add hidden ID field for existing Talk records to ensure updates instead of creates - Fix unknown attribute errors by properly removing proposal_item params before Talk.update 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Update Helper to use :talks_attributes instead of association parameter - Fix all form fields to use consistent parameter naming with form_index - Replace form helpers with tag helpers to ensure proper parameter structure - Set default values for new Talk objects (conference and type) - Ensure JavaScript-generated fields have same structure as existing fields This fixes the issue where dynamically added sessions had inconsistent parameter structures causing validation failures for title and abstract fields. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Update admin speakers edit view to use @speaker_form instead of @speaker - Fix admin speakers controller strong parameters to match other controllers - Add conference parameter to SpeakerForm initialization in admin context - Fix speaker_url helper method for proper routing This ensures admin speakers edit form displays existing values correctly and handles the same parameter structure as other speaker forms. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Claude finished @takaishi's task —— View job Rails 8アップグレードに伴うスピーカー・セッション登録機能の修正に関するレビューレビュータスクリスト
変更内容の概要Rails 8へのアップグレードに伴い、スピーカーとセッションの登録・編集・削除機能が動作しなくなった問題を修正しています。主な変更点は:
コード品質とベストプラクティス👍 良い点
|
gitops-for-cloudnativedays bot
added a commit
to cloudnativedaysjp/dreamkast-infra
that referenced
this pull request
Aug 6, 2025
gitops-for-cloudnativedays bot
added a commit
to cloudnativedaysjp/dreamkast-infra
that referenced
this pull request
Aug 6, 2025
commit: cloudnativedaysjp/dreamkast@ee272d3 action URL: https://github.com/cloudnativedaysjp/dreamkast/actions/runs/16780925732 Co-authored-by: gitops-for-cloudnativedays[bot] <113280573+gitops-for-cloudnativedays[bot]@users.noreply.github.com>
Simplecov Report
|
jacopen
approved these changes
Aug 12, 2025
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.
以下の2エンドポイントからスピーカーやセッションの登録・編集・削除がうまく動かなくなっていたので修正した