openresearchdata / ckanext-ord-hierarchy

An extension to add a hierarchical structure to datasets
4 stars 2 forks source link

Problem with sub-levels #3

Open Languette opened 6 years ago

Languette commented 6 years ago

Hi, I would like to use this extension to make a dataset tree. I read all the program and i still haven't found the mistake. I don't understand why the extension show only one dataset in the "sub-levels" category in spite of having 2 or more dataset in this category (for every dataset rank).

I verified it and all my dataset are linked by parent/child relationships.

Thanks you for your answer !

ted-strauss-K1 commented 6 years ago

I am getting the same bug. I confirmed that parent-child relations are there, but not being displayed.

# ckanapi action package_relationships_list id=the-open-meg-archive-omega  -c /etc/ckan/default/development.ini
[
  {
    "comment": "",
    "object": "abcdefghv1002c",
    "subject": "the-open-meg-archive-omega",
    "type": "parent_of"
  },
  {
    "comment": "",
    "object": "abcdefghv1002d",
    "subject": "the-open-meg-archive-omega",
    "type": "parent_of"
  },
  {
    "comment": "",
    "object": "abcdefghv1002f",
    "subject": "the-open-meg-archive-omega",
    "type": "parent_of"
  },
  {
    "comment": "",
    "object": "meg-scan-abcdefghv1002",
    "subject": "the-open-meg-archive-omega",
    "type": "parent_of"
  }
]
metaodi commented 6 years ago

I try to reproduce this, it's been a while since I last used thismextension. I remember that there used to be a CKAN core bug related to relationships ( hey only work in one direction and only when using the name instead of the id or vice-versa).