fix(formulare): Antworten paginiert statt als Repeater (Memory-Limit) #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/formular-antworten-oom"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Behebt
Allowed memory size of 268435456 bytes exhaustedbeim Öffnen des Formular-Editors unter Kommunikation > Formulare.Ursache: Der Antworten-Reiter baute einen
Repeater::make('responses')->relationship()über alle Antworten. Der Komponentenbaum wächst mit Antworten x Formularfeldern, eingeklappte Repeater-Items werden von Filament trotzdem vollständig gerendert – der Blade-Output-Buffer lief auf mehrere MB und riss das 256M-Limit.Fix:
FormResponsesRelationManager, HasManyThrough überEvent::formResponses): paginierte Tabelle (25/50/100), Suche nach Name/E-Mail, Filter nach Formular, Bearbeiten/Löschen je Antwort im Modal. Die Antwortfelder werden pro Antwort aus dem jeweiligen Formular aufgebaut.memory_limit256M -> 512M als Sicherheitsmarge für die übrigen Repeater-Editoren.Tests: 5 neue Feature-Tests (Pagination, Bearbeiten inkl. Erhalt der übrigen Antwortwerte, Löschen, Tab-Link, Editor skaliert nicht mehr mit der Antwortzahl). Gesamte Suite: 728 passed.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LFofqq7YLjAUtARfSfexPx
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.