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
Build breadcrumbs from right to left where possible #5620
Comments
How I said, we could do this only for trees which are lazy loaded. 🌴 But I am not sure which ones they are (or if every tree is lazyloaded..) |
The following explorer trees are lazyloaded:
And also in Ivanchuk, so backporting #6002 and #6019
|
For now I see option 3 as the most viable solution with the future possibility of implementing option 4, but I'm still trying hard with option 2 in the meantime. |
So we need to sort the issues into:
Looking forward we need 2 types of fixes:
I suggest by starting collecting all the BZs/issues here and sorting them regression yes/no. That should give us an estimate about the size of fixes 1). Meanwhile we can discuss fixes 2). Most importantly: we need:
|
@martinpovolny we're talking about a single issue here, if you're trying to jump navigate into an explorer, the tree hierarchy is not reflected in the breadcrumbs when rendered for the first time. |
The most minimal change is option 3, i.e. not displaying the tree hierarchy in the breadcrumbs... |
Yes, that is my suggestion for Ivanchuk: Do not display the tree hierarchy, because:
Instead display the breadcrumbs up to the open accordion and then the active node breadcrumb (item). For master (future release) the hierarchy will be displayed. For that a proper solution based on calculation the path through the tree from leaf to the root is needed. |
Okay so we need a way to retrieve parent node info from the child node using The problem is hitting us with hash nodes, some of them are necessary, but we're kinda overusing them for records with custom attributes where we could avoid this. We have to go through all the hash nodes defined for explorer |
This issue has been automatically marked as stale because it has not been updated for at least 6 months. If you can still reproduce this issue on the current release or on Thank you for all your contributions! |
@miq-bot rm_label stale |
This issue has been automatically marked as stale because it has not been updated for at least 3 months. If you can still reproduce this issue on the current release or on Thank you for all your contributions! More information about the ManageIQ triage process can be found in the traige process documentation. |
@skateman Is this still relevant? |
Yes, explorer trees are still using the old stuff. |
This issue has been automatically marked as stale because it has not been updated for at least 3 months. If you can still reproduce this issue on the current release or on Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation. |
Breadcrumbs mostly follow the tree hierarchy and @rvsia builds the related tree any time a breadcrumb requires it. This is not very effective and there are also issues when the tree has hidden leaves or it's lazily loadable.
My proposal is to define a reverse
TreeBuilder#has_kids_for
for breadcrumbs for the reverse path in the hierarchy for building just the breadcrumbs. This way we would no longer depend on the ˙TreeBuilder˙ when we need just a few breadcrumbs.Something like:
The text was updated successfully, but these errors were encountered: