Skip to content

fix(rsvp): restore optionOrders support dropped by c811f37 - #210

Open
qiyundai wants to merge 1 commit into
devfrom
fix/rsvp-option-orders
Open

fix(rsvp): restore optionOrders support dropped by c811f37#210
qiyundai wants to merge 1 commit into
devfrom
fix/rsvp-option-orders

Conversation

@qiyundai

Copy link
Copy Markdown
Collaborator

Summary

  • c811f37 dropped rsvpFormFields.optionOrders entirely, with a comment claiming ESP's RSVPFormFields schema only supports { required, visible }. That's stale — ESP added optionOrders in events-service-platform PR #1002, before c811f37 landed (confirmed against latest develop, openapi.json ScopeConfigRsvpField).
  • Restores building optionOrders on save (useEventFormSave.ts) and reading it back on load (eventFormMappers.ts) so per-field option overrides round-trip instead of being silently dropped.
  • Fixes EventApiResponse.rsvpFormFields (types/domain.ts) to match ESP's actual flat shape — it still had an unused { fields: [...] } shape left over from an earlier migration plan that never shipped.

Test plan

  • npm run check (lint + type-check) passes
  • Create/edit an event with an RSVP select/checkbox field that has a per-field option override; save, reload, and confirm the option order/whitelist round-trips
  • Confirm no console.warn about dropped options appears anymore

c811f37 dropped rsvpFormFields.optionOrders entirely, with a comment
claiming ESP's RSVPFormFields schema only supports { required, visible }.
That's stale: ESP added optionOrders (openapi.json, ScopeConfigRsvpField)
in events-service-platform PR #1002, well before c811f37 landed. Restore
building/reading optionOrders so per-field option overrides round-trip
instead of being silently dropped, and fix EventApiResponse.rsvpFormFields
to match the flat ESP shape (it still had the unused old { fields } shape).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant