-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add project form questions #335
Conversation
add some questions and alter the project_questions table to be more robust
notion questions updated
the enum for input type was removed because the option to include multiple inputs, such as url or file(s)
2c5145a
to
b94ba9d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just the tests need updating
the tests relied on the questions added by migration files which makes this method not reliable. The migration questions change all the time so it's better to remove the migrated questions and seed sample questions for testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 🔥
Description
All the questions from Notion have been added.
Explanation of new columns added to the
project_questions
table.sub_section_order
is the order for the questions to be rendered inside a sub section.input_type
is not an enum because of the need to allow multiple types for one question. Such as allowing users to input a URL to a google drive with documents or just uploading files. So having a varchar which allows the syntaxA|B
would make more sense and it would be more flexible.options
is a nullable column which contains the options for input typesselect
,checkbox
,radio
.Possible improvements is to store the order of sections too and these can be in a separate table or just defined in the frontend.
Linked Issues
Testing
Checklist
Before opening this PR, make sure the PR:
Additionally, make sure that: