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.
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
Make LineUp v4 RegExp filter serialization backwards compatible #345
Make LineUp v4 RegExp filter serialization backwards compatible #345
Changes from all commits
7235fa3
c92f0e9
ed4e0ca
fcd5d7d
a5a1a9c
103e909
502eace
a6b1777
942e1d2
9f7b022
ab6b164
a4c34f2
e508584
77f5def
0aa6348
d4280ef
e117ac9
23c9e03
ddb0f56
f9b7e43
5f5bae1
1d72e89
09c65c5
2f16945
a4bf429
304e51f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I added this error message to prevent cases where the return value of this function is
void
. After playing around with this implementation I got an error with the regexp string:This is the error in the console:
@oltionchampari Can you check why calling it recursively (starting from line 121) and not returning
void
(without the error) and now we run into the error? In guess is that we still have an uncovered case where the three typeguards above are not working correctly.My expectation would be that we do not get the error message and one of the typeguards catches the recursive call and returns a valid filter object.
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.
The issue was that when you go back in the provenance graph the
restoreLineUpFilter()
function gets called with the old value which gets derived from the Ranking.Thus it hasn't been serialized:
I added a test to cover this case and returned the filter when it's already serialized.