Skip to content
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

refactor: use feedback string column #87

Merged
merged 3 commits into from
Nov 5, 2024
Merged

Conversation

sripwoud
Copy link
Owner

@sripwoud sripwoud commented Oct 29, 2024

Towards supporting multiple types of questions.
This changes the type of the feedback column of the feedbacks table to text so that it is future proof.
It would be too complex (impossible?) to check constraints between feedback value and corresponding question type on each inserts (e.g we can only insert yes/no text feedback for a boolean question type). So this is done at the application layer within the feedbacks service with a dynamic schema.

@sripwoud sripwoud changed the title feat: create freetext questions refactor(db): use feedback string column Oct 30, 2024
@sripwoud sripwoud changed the title refactor(db): use feedback string column refactor: use feedback string column Nov 4, 2024
@sripwoud sripwoud marked this pull request as ready for review November 4, 2024 16:13
@sripwoud sripwoud marked this pull request as draft November 4, 2024 16:13
@sripwoud sripwoud changed the base branch from main to dev November 5, 2024 10:07
@sripwoud sripwoud marked this pull request as ready for review November 5, 2024 10:09
@sripwoud sripwoud merged commit bff60ea into dev Nov 5, 2024
@sripwoud sripwoud deleted the feat/freetext-feedback branch November 5, 2024 14:06
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