-
Notifications
You must be signed in to change notification settings - Fork 4
Conversation
This should allow the use of another kindName without an appended "_rootNode" as hierarchy root kind. The former behavior is preserved to stay backward compatible.
…as children or not This feature is required for later improvements in the Vi widget for displaying the hierarchy, where the availability of children in nodes can directly be visualized before any data is fetched.
…rototype This stub should serve as a reference implementation to provide a suitable default behavior.
…ables The replacement is generally recommended in Python, see https://stackoverflow.com/questions/5477134/how-can-i-get-around-declaring-an-unused-variable-in-a-for-loop
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.
I think there a lot of issues here...
- What's the benefit of removing the defacto-standard of kindName+"_rootNode"? There's probably a lot of code depending on that
- the default stub of "getAvailableRootNodes() breaks the default of keeping your data private unless explicitly exposed by the developer
- Replacing Variable "x" with "_" shadows our global translate function _()
- Keeping track of wherever an entity has children or not is probably a good idea, but it's skel.toDB() is the wrong place (f.e. if the last child of a node is deleted, it's parents haschildren flag has to toggle)
Ok your issues are acknowledged. I refer to them seperately below:
|
|
Tobi, I recently did the following changes and request another merge of this pull request, so that not all work I spent into it is lost. The last commit 37f5aa8 of branch feature/hierarchyImprovements now contains the following changes I request to merge:
Can you please add this now, to close this case? Thanks. |
…' into feature/hierarchyImprovements
…t valuesCache[name]["dest"].get("servingurl") test From #28
This branch introduces the following improvements into the Hierarchy prototype for a better usability.
Every feature was placed in a separate commit.