-
Notifications
You must be signed in to change notification settings - Fork 8
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
Bugfix: no Trrack action for unchanged filters #319
Conversation
✅ Deploy Preview for upset2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@JakeWags I'm not sure if this is exactly what you had in mind; lmk what you think. It might make more sense to have all of the actions confirm that change has occurred before updating the provenance graph, but it appears that declining to update the state inside one of the action callback functions still adds a node to the trrack graph, so I wasn't able to stop the action there. I'm not seeing another place to halt the action except before it's dispatched, which I've done here. |
I think this solution works fine because there really isn't anything else which both updates Trrack state AND can be set to the current value. |
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.
Approved 👍
Does this PR close any open issues?
Closes #306
Give a longer description of what this PR addresses and why it's needed
Previously, moving the degree filter slider around and returning it to its original position dispatched a trrack action to the provenance graph despite no change being made. In addition, changing only the lower or upper bound would dispatch an action for the unchanged bound. This fixes both issues by only dispatching actions for changed bounds after the slider is released.
Provide pictures/videos of the behavior before and after these changes (optional)
Have you added or updated relevant tests?
Have you added or updated relevant documentation?
Are there any additional TODOs before this PR is ready to go?
TODOs: