You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The survey site (CorrelAid/cdl-wp-eins, src/content/pages/fragetypen.mdx) embeds live examples via GET /api/examples/{type}. The example ids come from the Type: field in internal/examples/examples.go and form a second naming scheme next to the formtransform registry slugs that the converters, the generated cdl-survey-types skill and the DDI output use. Tracked on the site side in CorrelAid/cdl-wp-eins#30.
Proposal
Key examples by registry slug:
current example Type
registry slug
example's XLSForm type
single_choice
select_one
select_one bildungsgrad
single_choice_long_list
select_one_long_list
select_one_from_file iso_3166_1.csv
multiple_choice
select_multiple
select_multiple wochenendtage
multiple_choice_long_list
select_multiple_long_list
select_multiple_from_file iso_3166_1.csv
single_choice_other
select_one_other
select_one + _other text
multiple_choice_other
select_multiple_other
select_multiple + _other text
grid
grid
begin_group (table-list) + select_one
integer
integer
integer
text
text
text
Registry types without an example yet: decimal, range, date, time, note.
Transition
The site's QuestionTypeBlock shows "unavailable" when an id 404s, and the llm*.txt endpoints embed the examples at build time. So please serve both ids for a while (old ids as aliases of the slugs), then:
qwacback serves the slugs (plus the old ids as aliases).
The survey site (
CorrelAid/cdl-wp-eins,src/content/pages/fragetypen.mdx) embeds live examples viaGET /api/examples/{type}. The example ids come from theType:field ininternal/examples/examples.goand form a second naming scheme next to the formtransform registry slugs that the converters, the generatedcdl-survey-typesskill and the DDI output use. Tracked on the site side in CorrelAid/cdl-wp-eins#30.Proposal
Key examples by registry slug:
Typesingle_choiceselect_oneselect_one bildungsgradsingle_choice_long_listselect_one_long_listselect_one_from_file iso_3166_1.csvmultiple_choiceselect_multipleselect_multiple wochenendtagemultiple_choice_long_listselect_multiple_long_listselect_multiple_from_file iso_3166_1.csvsingle_choice_otherselect_one_otherselect_one+_othertextmultiple_choice_otherselect_multiple_otherselect_multiple+_othertextgridgridbegin_group(table-list) +select_oneintegerintegerintegertexttexttextRegistry types without an example yet:
decimal,range,date,time,note.Transition
The site's
QuestionTypeBlockshows "unavailable" when an id 404s, and thellm*.txtendpoints embed the examples at build time. So please serve both ids for a while (old ids as aliases of the slugs), then:exampleIds to the slugs (Use registry slugs as question-type example ids (coordinate with qwacback) cdl-wp-eins#30).Does this direction work for you, or should the site keep its own ids?