Closed berkingurcan closed 5 months ago
Hello @berkingurcan, it is the same, the idea is to be able to retrieve the modal of a published survey and edit or update any information previously created.
CC: @es92
Okay!
We are testing 5 scenarios:
1- editing questions and descriptions without responses - single and multi response testing- OK 2- editing questions and descriptions with responses single and multi - with responses- OK 3- Multiresponse: delete questions - if only one questions it turns into single question modal- OK 4- Multiresponse : add questions - not able to do it so far- TBC
CC: @es92
Evidence:
Multiresponse: delete questions - if only one questions it turns into single question modal
Multiresponse changing description from 123 to 456
Videos of single response testing
TODO!: I have an error while adding more questions to initial question number while editing:
Unhandled exception: ValidationError > s.string
Expected a string primitive
Received:
| undefined
at _StringValidator.handle (/Users/berkingurcan/Documents/gptSurveySummarizer/node_modules/@sapphire/shapeshift/src/validators/StringValidator.ts:23:73)
at _StringValidator.parse (/Users/berkingurcan/Documents/gptSurveySummarizer/node_modules/@sapphire/shapeshift/src/validators/BaseValidator.ts:103:2)
at TextInputBuilder.setValue (/Users/berkingurcan/Documents/gptSurveySummarizer/node_modules/@discordjs/builders/src/components/textInput/TextInput.ts:117:36)
at <anonymous> (/Users/berkingurcan/Documents/gptSurveySummarizer/src/commands/handleRespondButton.ts:68:12)
at Array.map (<anonymous>)
at handleRespondButton (/Users/berkingurcan/Documents/gptSurveySummarizer/src/commands/handleRespondButton.ts:62:8)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at Client.<anonymous> (/Users/berkingurcan/Documents/gptSurveySummarizer/src/bot.ts:110:9)
Multiresponse editing and question deletion tested one more time, here the evidences:
TODO!: I have an error while adding more questions to initial question number while editing:
Unhandled exception: ValidationError > s.string Expected a string primitive Received: | undefined at _StringValidator.handle (/Users/berkingurcan/Documents/gptSurveySummarizer/node_modules/@sapphire/shapeshift/src/validators/StringValidator.ts:23:73) at _StringValidator.parse (/Users/berkingurcan/Documents/gptSurveySummarizer/node_modules/@sapphire/shapeshift/src/validators/BaseValidator.ts:103:2) at TextInputBuilder.setValue (/Users/berkingurcan/Documents/gptSurveySummarizer/node_modules/@discordjs/builders/src/components/textInput/TextInput.ts:117:36) at <anonymous> (/Users/berkingurcan/Documents/gptSurveySummarizer/src/commands/handleRespondButton.ts:68:12) at Array.map (<anonymous>) at handleRespondButton (/Users/berkingurcan/Documents/gptSurveySummarizer/src/commands/handleRespondButton.ts:62:8) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at Client.<anonymous> (/Users/berkingurcan/Documents/gptSurveySummarizer/src/bot.ts:110:9)
Solved.
FYI: detected that we cannot use "-" in a survey title. It let's us create the survey but if we want to edit the survey it show an error. usage of "-" will be restricted.
Is there a difference between editing and updating? @es92 @CristinaEche If there is, can you give an example?