fix: always get points so state last works with other graphs#1075
fix: always get points so state last works with other graphs#1075jasonlewis wants to merge 1 commit into
Conversation
|
@jasonlewis, thanks for contributing! It seems we'll have to work on it a bit still. See my comment. Unfortunately, I will only be able to look into it in a few days... |
|
I did think about this quite some time. Sorry for the delay. Although it's a small change, I don't like that we would treat
What do you think? Maybe you discarded these ideas already for some reason? |
Your concern is valid, its a bit smelly to use a graph construct as data retrieval, but dont let a little smell stand in the way of a decent fix. This bug is real and the proposed fix works, and is just slightly smelly. But this bug could have been fixed 2 years ago. A follow up issue could have been opened to refactor this so it doesnt fall through if the time for refactors arises. So my suggestion; merge this, make a follow up issue for a refactor. Get it fixed today, its waiting 2 years already for a minor smell. |
|
yeah well nvm, just close this PR in the favor or this one #1308 and get it merged. |
Fixes #736 by always getting points.
There's probably a few ways to fix this as it seems the
state: lastfunctionality specifically relies on points being available, but points are only set when specifically showing points (and never for bar graphs).I decided to always define points and adjust the logic for rendering points to be based on whether the config is set. Granted I haven't tested all scenarios for rendering points so this may not be an adequete solution in all cases.