-
Notifications
You must be signed in to change notification settings - Fork 26
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
feat(caluma): Remove FormAnswer type #505
Merged
open-dynaMIX
merged 1 commit into
projectcaluma:master
from
open-dynaMIX:refactor_nested_answers
Jun 24, 2019
Merged
feat(caluma): Remove FormAnswer type #505
open-dynaMIX
merged 1 commit into
projectcaluma:master
from
open-dynaMIX:refactor_nested_answers
Jun 24, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/cc @anehx |
open-dynaMIX
force-pushed
the
refactor_nested_answers
branch
from
June 14, 2019 09:51
449c780
to
1c68b83
Compare
czosel
reviewed
Jun 14, 2019
open-dynaMIX
force-pushed
the
refactor_nested_answers
branch
9 times, most recently
from
June 20, 2019 14:18
e41d837
to
be2c695
Compare
❤️ 💯 🔥 |
open-dynaMIX
force-pushed
the
refactor_nested_answers
branch
4 times, most recently
from
June 21, 2019 05:41
beb5e7c
to
082a7fa
Compare
This was referenced Jun 21, 2019
Closed
Merged
winged
reviewed
Jun 21, 2019
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.
Nice work! Some clarifications / cleanups are needed however
open-dynaMIX
force-pushed
the
refactor_nested_answers
branch
2 times, most recently
from
June 24, 2019 06:41
8ee4ec8
to
7b14383
Compare
open-dynaMIX
force-pushed
the
refactor_nested_answers
branch
from
June 24, 2019 12:02
7b14383
to
c8cd03a
Compare
There was a conceptual misunderstanding that led us to implement nested answers. Which in turn created performance and complexity issues. This commit removes the FormAnswer type. Additionally also all implementations of recursive lookups and form path handling (that only existed as a result of this misconception) are removed. There is a data migration that flattens the document tree. Closes projectcaluma#504 BREAKING CHANGE: - The FormAnswer type is removed and answers to a question in a sub-form do not have their own document. - In order to access parent questions from within a table-sub-question JEXL, there is no need to prefix the question_slug with `parent.` anymore. - The JEXL expression `rootForm` is replaced by `form`.
open-dynaMIX
force-pushed
the
refactor_nested_answers
branch
from
June 24, 2019 12:05
c8cd03a
to
c9de785
Compare
@winged Ready for review! |
winged
approved these changes
Jun 24, 2019
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.
Looks good now! 💯 👍
sliverc
added a commit
to sliverc/caluma
that referenced
this pull request
Jul 30, 2019
* There is no need for answer_tree anymore as of projectcaluma#505 * parent doesn't exist and can be removed * requiredness does not to be inherited as a form question does actually have answers.
sliverc
added a commit
to sliverc/caluma
that referenced
this pull request
Jul 30, 2019
* There is no need for answer_tree anymore as of projectcaluma#505 * parent doesn't exist and can be removed * requiredness does not to be inherited as a form question does actually have answers.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a conceptual misunderstanding that led us to implement
nested answers. Which in turn created performance and complexity
issues.
This commit removes the FormAnswer type. Additionally also all
implementations of recursive lookups and form path handling (that only existed
as a result of this misconception) are removed.
There is a data migration that flattens the document tree.
Closes #504
BREAKING CHANGE:
in a sub-form do not have their own document.
JEXL, there is no need to prefix the question_slug with
parent.
anymore.
rootForm
is replaced byform
.