uComponents/nuPickers — pull request #55 by jaredswarts55 (2014-09-22 21:06:08+00:00)
Title: Added parentId to the DataSourceResource.js > getEditorDataItems

Allows use of the parentId in GetEditorDataItems calls as it is now passed in to the api controllers. ContextId is not available when you are creating a new node since it hasn't yet been saved.

If you are wondering why, I have a case where the query is dependent on the new nodes location. Here is an example, that doesn't really match my case but the idea is there:

Glass
--Opaque Glass
--[NEW NODE CREATED HERE]
Metal
--Gold
Properties
--Glass
----Thickness
----Clarity
--Metal
----Conductivity
----Malleability

If I create a new node at the location described above. We want a pull down to show ['Thickness', 'Clarity']. That same document type when created under Metal would have that property show ['Conductivity', 'Malleability']

For this case it might make sense to have two different document types but in our case the items have many of these properties and it is silly to have to maintain different property types in two document types.