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

[Program Migration] Export/Import Question Validation Predicates #7808

Open
rockycodes opened this issue Jun 17, 2024 · 0 comments · May be fixed by #7947
Open

[Program Migration] Export/Import Question Validation Predicates #7808

rockycodes opened this issue Jun 17, 2024 · 0 comments · May be fixed by #7947
Assignees

Comments

@rockycodes
Copy link
Contributor

We need to import Question Validation Predicates as a part of importing Question Definitions. Question Validation Predicates are tricky to import, however, because ValidationPredicates are already being stored as JSON strings in our database and don't have the "type" field we need to deserialize them into the specific ValidationPredicate class for each question type.

Caitlin outlined three different ways to address this:

  1. Perform a database migration
  2. Write code to dynamically add the "type" field
  3. Write a custom deserializer

See more details in the TDD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Review
Development

Successfully merging a pull request may close this issue.

1 participant