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
Update dropdown conditions on column rename #1038
Update dropdown conditions on column rename #1038
Changes from 10 commits
88a857b
3014237
a773272
df10e29
6c9477e
1c37047
d9d5100
270c7a9
b9ea716
9847b84
0a47c00
c4a48c1
063d412
c5d0b4a
faa51ff
52d196f
d8dae4b
4ebd73b
df11bc6
fd04bbd
5000a57
cde015c
72ba84c
68b9005
a9c3d73
85429a3
9b1cc5f
32d988e
c444496
4d59833
1c8a866
da16ab9
98b08b7
db8bb18
aaf772a
993d202
c1bfccc
8752b16
a8cf19a
9464fb4
4dfc31b
7b6fae9
8ee7492
c00dd77
09f485c
e7c37e6
848b1aa
a457bec
9e6551c
6f02e7c
913d5a4
b260b82
41d992e
6f97e18
5b7fc3d
49344cb
652a229
ba95ef4
28a22ca
18a39cb
55d13bd
511a4a3
419403a
9e0ba09
74e57a3
e1d0224
af8c261
3f6f0e9
5865134
89f5fc0
530ff8f
d1e70e3
5c6eece
49b55c2
78ace36
421eafb
e73f0dc
ca67ec2
b4f415f
06d50a4
94263cf
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.
It worries me if this can happen -- wouldn't it mean that
aclFormulaParsed
remains un-fixed and broken (even thoughaclFormula
will appear fixed)? Are there situations when either SyntaxError or ValueError with "Unsupported syntax" could legitimately happen?If not, might it be better to not catch the errors at all?
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 don't believe this can result in inconsistency. The new
process_renames
function doesn't do anything to a formula with syntax errors, so nothing will actually happen.Even if
aclFormula
is updated, it will still be broken if it originally was. The parsed version will stay obsolete and broken until the text version is fixed by the user, when the parsed version is re-generated and fixed thereof.Error checking here seems redundant, but not catching errors here will make the data engine stop processing remaining formulas whenever it hits a problematic one. Thus, syntax errors must be explicitly ignored.
I revised this logic so that it is still (hopefully) logically correct, but avoids try-except. This is admittedly complicated and error-prone, so I added some detailed comments to explain my code and possible gotchas for future maintainers.
Also: I have a test case for this behavior (don't process syntactically wrong formulas), so we should be safe.
This file was deleted.