-
Notifications
You must be signed in to change notification settings - Fork 251
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
Improve the handling of out-of-DataResultTree
data result items
#5742
Labels
ui
concerns graphical user interface
Comments
5 tasks
abey79
changed the title
Improve the handling of out-of-
Improve the handling of out-of-Apr 2, 2024
DataRestultTree
space originDataRestultTree
data result items
abey79
changed the title
Improve the handling of out-of-
Improve the handling of out-of Apr 2, 2024
DataRestultTree
data result itemsDataRestultTree
data result items
abey79
changed the title
Improve the handling of out-of
Improve the handling of out-of-Apr 2, 2024
DataRestultTree
data result itemsDataResultTree
data result items
The place where we invoke |
abey79
added a commit
that referenced
this issue
Apr 2, 2024
### What - Fixes #5683 This PR fixes an issue where "placeholder" `DataResult` (as per `DataResultNodeOrPath`) could not be selected because they would be rejected as invalid by `ViewportBlueprint::is_item_valid()`. This fix is quite hacky and should be improved: - #5742 ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested the web demo (if applicable): * Using newly built examples: [rerun.io/viewer](https://rerun.io/viewer/pr/5743) * Using examples from latest `main` build: [rerun.io/viewer](https://rerun.io/viewer/pr/5743?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [rerun.io/viewer](https://rerun.io/viewer/pr/5743?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG * [x] If applicable, add a new check to the [release checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)! - [PR Build Summary](https://build.rerun.io/pr/5743) - [Docs preview](https://rerun.io/preview/e1c43deb543078c413ec716c540255852b6dc429/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/e1c43deb543078c413ec716c540255852b6dc429/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
In #5342, a
DataResultNodeOrPath
structure was introduced in the blueprint tree UI code address the fact that we want the tree to display$origin
even if that actual entity path is not part of the data results. That happens for example when the query is set to something like+ $origin/sub_entity/**
. In that case, for the purpose of tree UI code,$origin
would be a "placeholder" node.Problem
This has unfortunately wider ranging implications. Since the "placeholder" origin is displayed, it can be selected. However, it is considered "invalid" by some other part of the code (namely
ViewportBlueprint::is_item_valid()
), which in turns preclude said item to be selected. This caused #5683.This bug was fixed in #5743 with a hack that is probably fragile (aka tightly coupled to what we want to display in the blueprint tree).
Solution
As per @jleibs's comment below:
AppState::show()
should always include the entire$origin
subtreetree_prefix_only
flag set, be displayed in the blueprint tree, but not in the actual space viewDataResultsNodeOrPath
enumDataResults
couldn't be selected #5743 should be revertedThe text was updated successfully, but these errors were encountered: