[ckan-dev] unusual behavior when adding and viewing groups

Sasha Cuerda scuerda at ctdata.org
Tue Dec 6 14:05:24 UTC 2016


Ok, I changed the way I'm calling the group_create method from the ckanapi
package and I seem to have resolved the issue.

It is/was still strange to see the datasets contain groups, but to not have
those groups reflected elsewhere. That said, until I can reproduce this
more definitively I think my problem is resolved.



On Tue, Dec 6, 2016 at 7:08 AM, Sasha Cuerda <scuerda at ctdata.org> wrote:

> I have rebuilt the index to no avail.
>
> The groups are present in the database (if I try to add a group w/ the
> same name as one I've already added, but which isn't visible, I will get an
> error).
>
> On Tue, Dec 6, 2016 at 2:25 AM, Matthew Fullerton <
> matt.fullerton at gmail.com> wrote:
>
>> Dear Sasha,
>> Have you tried rebuilding the search index?
>>
>> paster --plugin=ckan search-index rebuild -c /path/to/your/ini.file
>>
>> Best,
>> Matt
>>
>> On 6 Dec 2016 3:52 a.m., "Sasha Cuerda" <scuerda at ctdata.org> wrote:
>>
>> Hello folks,
>>
>> I'm running into very strange behavior with groups on CKAN 2.6. I'm in
>> the process of upgrading a  CKAN site from a much earlier version and I've
>> had to develop some migration scripts to manually recreate datasets,
>> resources, and groups.
>>
>> All of the datasets are correctly migrated and can be viewed. When I am
>> in the `/dataset` view, I can see the list of datasets and, in the sidebar,
>> the complete list of groups that I created (in this case 11) along with the
>> count of datasets for each group. If I click on a group, filtering works
>> correctly.
>>
>> However, if I go to the `/group` url, I get nothing -> "No groups found".
>> Similarly, if I visit `/api/3/action/group_list` I get back an empty list.
>> Calling `action.group_list()` using the python ckanapi package also returns
>> an empty list.
>>
>> If I create a group using the web interface, it works fine. The api
>> returns the correct results. All of the groups that are visible on the
>> `/dataset` page are still visible, but the new, web-interface created group
>> is not in this list.
>>
>> This seems unusual. Has anyone run in to anything like this before?
>>
>> Thanks in advance.
>>
>> Sasha
>> --
>> CT Data Collaborative, Director of Technology
>> 805 Brook St Building 4
>> Rocky Hill, CT 06067
>> M: (860) 385-4860
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
>>
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
>>
>
>
> --
> CT Data Collaborative, Director of Technology
> 805 Brook St Building 4
> Rocky Hill, CT 06067
> M: (860) 385-4860
>



-- 
CT Data Collaborative, Director of Technology
805 Brook St Building 4
Rocky Hill, CT 06067
M: (860) 385-4860
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20161206/02e8daa0/attachment-0003.html>


More information about the ckan-dev mailing list