Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Jan 7, 2017

/fixes #128, symfony-cmf/sonata-phpcr-admin-integration-bundle#73
/replaces #125

Instead of building the path using keys, the path is now saved in a refPath data property per node. This fixes the issue with unique keys (#128). It also makes it easier to fix false or duplicated nodes.

/cc @ElectricMaxxx

@wouterj wouterj added the wip/poc label Jan 7, 2017
@ElectricMaxxx
Copy link
Member

cool! 👍

@ElectricMaxxx
Copy link
Member

You have seen it working i.e. in sandbox?

@ElectricMaxxx
Copy link
Member

As the get getNodeByKey is useless now (@wouterj what about the karma tests?), we should implement a `getNodeByRefPath later to handle cross node operation like move.

Copy link
Member

@ElectricMaxxx ElectricMaxxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all the karma tests are failing localy, can you fix that please

PhantomJS 1.9.8 (Linux 0.0.0) The Fancytree adapter automatically expands nodes when root is one folder FAILED
        TypeError: 'null' is not an object (evaluating 'tree.getNodeByKey('cms').isExpanded')

@ElectricMaxxx ElectricMaxxx added this to the 2.0 milestone Jan 10, 2017
@wouterj
Copy link
Member Author

wouterj commented Jan 28, 2017

Added Fancytree.getNodeByRefPath(); fixed the tests; and added support for latest Fancytree version.

In other words: ready to merge imo

@ElectricMaxxx
Copy link
Member

@wouterj you can merge from my POV, but i don't really understand the one failing build, seems as one before you last commit.

@ElectricMaxxx
Copy link
Member

I wil merge and have a look into the next issue.

@ElectricMaxxx ElectricMaxxx merged commit f5a88ad into master Jan 28, 2017
@ElectricMaxxx ElectricMaxxx deleted the issue-128/use-unique-key branch January 28, 2017 21:50
@wouterj
Copy link
Member Author

wouterj commented Jan 29, 2017

@ElectricMaxxx failing build is probably a bug on Travis's side. No problem here for us.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FancyTree] NodeData key needs to be unique

2 participants