Open ted-strauss-K1 opened 7 years ago
Datasets need to have certain metadata on which basis are created relationships between them. These metadata are
relationships: [ subject: "some subject dataset name..." object: "some object dataset name..." type: "relationship type..." comment: "some comment..." ]
This could be related to https://github.com/ckan/ckan/issues/3188.
The last time I worked with the relationship API I noticed a strange behavior regarding the use of dataset ID vs. dataset names, maybe this is the issue here as well. Just a hint, I didn't look into this any further.
Thanks. Just to follow up on @milicp's comment. I have created 2 datasets and setup the relationship using the lire interface, see picture. When I press the commit button, the number switches from 1 to 0, and the error log above is thrown. @milicp are you suggesting I use the API to commit the relation json array you show above?
I have installed the extension and the interface loads fine and appears to work. But when I commit a relation, nothing happens. The ckan error log throws the errors pasted below.
The key section might be this one.
Do datasets need to have certain properties in order to support relationships?
My CKAN version = 2.5.3
Full error log: