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
Excluding the last building on the map results in an error, reincluding the buildings makes them all the same size #901
Comments
I don't want to defend this behaviour, its not ideal, but I wanna mention that this is strictly not a bug but by design.
Maybe this helps understanding the issue :) |
Ah ok, I understood what led to the behaviour but still thought a user would expect a similar color scheme to the one before the exclusion. If this is a decision by design, I was wrong here. However, the console error still remains. Should I change the issue or close it? |
Yes you are right, we could think of another solution here. Not sure what you mean with color scheme though, as there is not other available metric nor more than one node ;) Nah, lets keep the issue as a bug (as it looks like one from a user perspective). But it requires more like a workaround than a fix. |
I had another look at this. There are actually different ways how a user might end up with no nodes at all. If a user clicks on a building or folder that would end up in having no nodes left by excluding them, I would just open a popup warning that it's not possible to hide all nodes. Another way to exclude all nodes is by e.g., searching for To do so, we could just check if the exclude operation would result in having no nodes left. If that's the case, open the mentioned notification and prevent the actual operation from succeeding (i.e., the exclude pattern from the search should not be added to the pattern list). I changed the priority of this issue, since it's pretty easy to run into this and it ends up with very weird behavior afterwards. |
#901 Refactor preRenderService for a more controllable data flow
…event it from being open when the error dialog appears #901
…unused list of flattened nodes when checking for the number of excluded ones #901
* Add simple fix #901 * Add error message when excluding last building #901 * Fix console error message #901 * Fix logic and add check to search #901 * Fix failing tests #901 * Add more tests #901 * Fix test logic #901 * Revert simple fix #901 * Add changelog entry #901 * Add e2e test for context menu #901 * Add e2e test for '*' search #901
Bug
Console Error after last building is excluded, Error in Building Size and Color afterwards if buildings are included again
Expected Behavior
When the user excludes the last building the map is empty, reincluded buildings look the same as before exclusion.
Actual Behavior
When the user excludes the last building on the map a console error is thrown, reincluding buidlings afterwards results in all of them being color, due to the metric switching to unary
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: