feat(registration): add order extra question answers to ticket CSV im… - #566
feat(registration): add order extra question answers to ticket CSV im…#566JpMaxMan wants to merge 1 commit into
Conversation
…port
Adds extra_question:{question name} column support to the ticket data
import, template endpoint and OpenAPI docs. Answers are upserted through
the existing ExtraQuestionAnswerHolder persistence path; unknown
questions, order-scoped questions, disallowed questions, empty values
and locked answers are logged and skipped without failing the row.
List type questions accept value name/label/id ('|' separated for
CheckBoxList) and store value ids.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds support for importing and exporting summit order "extra question" answers via CSV ticket data. Introduces an ChangesExtra Question CSV Import
Estimated code review effort: 3 (Moderate) | ~30 minutes Sequence Diagram(s)sequenceDiagram
participant CSV as CSV Row
participant Service as SummitOrderService
participant Question as SummitOrderExtraQuestion
participant Attendee as SummitAttendee
CSV->>Service: processTicketData(row)
Service->>Service: determine answers owner (attendee or ticket owner)
Service->>Service: upsertAttendeeExtraQuestionAnswers(row, owner)
Service->>Question: resolve question by column name
Question-->>Service: question type, allowed values
Service->>Attendee: check canChangeAnswerValue for existing answers
Attendee-->>Service: former answers
Service->>Service: merge new and former answers
Service->>Attendee: hadCompletedExtraQuestions(mergedAnswers)
Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
📘 OpenAPI / Swagger preview ➡️ https://OpenStackweb.github.io/summit-api/openapi/pr-566/ This page is automatically updated on each push to this PR. |
feat(registration): add order extra question answers to ticket CSV import
Adds extra_question:{question name} column support to the ticket data import, template endpoint and OpenAPI docs. Answers are upserted through the existing ExtraQuestionAnswerHolder persistence path; unknown questions, order-scoped questions, disallowed questions, empty values and locked answers are logged and skipped without failing the row. List type questions accept value name/label/id ('|' separated for CheckBoxList) and store value ids.
Summary by CodeRabbit
New Features
Bug Fixes