[ckan-dev] Changing a datasets organisation - still not working?

Adrià Mercader adria.mercader at okfn.org
Tue Dec 6 10:39:11 UTC 2016


Hi Timothy,

This fix was not included on 2.5.3 sadly. I've marked for backporting to
2.5.4

https://github.com/ckan/ckan/pull/3133

You can manually cherry-pick it on the meantime.

Adrià

On 6 December 2016 at 07:38, Timothy Giles <timothy.giles at slu.se> wrote:

> Hi all,
>
>
>
> I realised last night that we have, on our test server, some datasets
> without an organisation. So, I first thought perhaps I just patch the
> package with the correct owner_org value (an organisation id). After
> wondering why that was not working, I found the :
>
>
>
> ckan.logic.action.update.package_owner_org_update(context, data_dict)
>
> Update the owning organization of a dataset
>
>
>
> Parameters:
>
> id (string) – the name or id of the dataset to update
>
> organization_id – the name or id of the owning organization
>
>
>
> function, which seemed to fit the bill perfectly. With my sysadmin account
> in hand, I tried using it and came across an error message mentioning that
> the current session did not have a revision set.
>
>
>
> https://github.com/ckan/ckan/issues/2661
>
>
>
> I am using CKAN 2.5.3. I can see a fix has been added – but I wonder if it
> is working? Would anyone that has 5-10 mins try altering a datasets
> owner_org to see it this is the case?
>
>
>
> I should also mention that I manually added the same to my context (as is
> noted in the above fix). Did not help.
>
>
>
> Thanks Timothy
>
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20161206/34b4b69f/attachment-0003.html>


More information about the ckan-dev mailing list