Skip to content

Conversation

@shoexue
Copy link
Member

@shoexue shoexue commented Jan 19, 2026

Change name formQuestionId -> formQuestionRef

Cloning form api now uses formQuestionRef(s) that is provided. Adjusted tests accordingly.

@shoexue shoexue requested review from BlazingAsher, Lindsay-X, dtpu and ja-der and removed request for BlazingAsher and dtpu January 19, 2026 15:48
Copy link
Contributor

@dtpu dtpu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remember to regenerate your migrations on top of the changes in main! Also, I don't see anything with the formName in your services. Could you also add that stuff? (e.x. formName should be provided by the user on the cloneForm route)

srcQuestions.map((q) => ({
formQuestionId: crypto.randomUUID(),
srcQuestions.map((q, index) => ({
formQuestionRef: newQuestionRefs[index], // Use provided new ref
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets not do this, would make more sense to keep the formQuestionRefs from the previous form.

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.

3 participants