Closed travisstebbins closed 3 weeks ago
Latest commit: 45808540e7dc553c20e42e6a855e59b21e31a723
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 46.32%. Comparing base (
a408fa8
) to head (4580854
). Report is 4 commits behind head on master.
Summary
This PR re-commits the changes to improve the handling of changing constant/parameter/derivation types, but without the
useEffect
hook that was causing a bug.The below is taken from the original PR:
Improve how we handle when a user changes the type of a constant/parameter/derivation. This PR implements new behavior such that if a user changes the type of a constant/parameter/derivation, if the value is used in the filter or post-filter panels and is no longer compatible, we show it as an error. This ensures users can't change the types of these values and accidentally create an invalid query.
How did you test this change?
Changing const type:
Changing param type:
Changing derivation type when used as post-filter condition left value:
Changing derivation type when used as post-filter condition right value:
Derivation is maintained when "edit pure" modal is opened and closed (bug that was occurring previously with the
useEffect
hook):