[ckan-dev] Assign datasets to groups
David Megginson
david.megginson at megginson.com
Thu Apr 17 22:01:15 UTC 2014
This could end up being a mismatch with how we're hoping to share data in
our project.
For us, groups represent countries where there are humanitarian crises, and
we might want to let any authenticated user in the humanitarian community
upload datasets to any group (still TBD). In particular, if someone
invites a new user to sign up and join an organization — e.g., a multi-NGO
education-needs-assessment team in Nigeria — then a CKAN administrator
would also have to add that user to the "Nigeria" group before she could
upload any datasets. That will become complex as the number of users
expands into the hundreds or more.
All the best,
David
On Thu, Apr 17, 2014 at 3:36 PM, Vitor Baptista <vitor at vitorbaptista.com>wrote:
> Hi all,
>
> The commit that changed this behavior is
> https://github.com/ckan/ckan/commit/0a3ffe0850f8ed290b3f66049b08178dbec9804e.
> It's in CKAN since 2.0. Before that, anyone could add/remove datasets from
> groups, after that, only members of the group. As far as I know, there's no
> way to change this behavior through ckan.auth.* settings.
>
> I haven't tested it, but reading the source it seems we still don't show
> error messages if we were unable to add a dataset to a resource.
>
> Cheers,
>
>
> 2014-04-17 14:24 GMT-03:00 David Megginson <david.megginson at megginson.com>
> :
>
> I noticed in 2.2 that (in the default configuration) you need to be a
>> "member" of a group to add datasets to it now. I don't see a ckan.auth.*
>> setting to re-enable letting anyone add a dataset to any group — we we need
>> to write a permissions handler to restore the old behaviour, I wonder?
>>
>>
>> Cheers, David
>>
>>
>> On Thu, Apr 17, 2014 at 10:58 AM, Stefan Oderbolz <
>> stefan.oderbolz at liip.ch> wrote:
>>
>>> Hi there,
>>>
>>> we encouter a strange behaviour on CKAN 2.0.3:
>>>
>>> - User Anne creates a new group called "Books"
>>> - User Anne adds a new datasets and adds it to the group "Books"
>>> - The new dataset gets saved and can be reached via the "Books" group
>>>
>>> so far so good, but:
>>>
>>> - User Phil adds a new dataset and adds it to the group "Books"
>>> - The new dataset gets saved and is not in the "Books" group (though no
>>> error is shown)
>>> - If the Phil edits the dataset there is actually no group shown,
>>> reselecting the "Books" group and saving the dataset doesn't show an error,
>>> but the dataset is still not added to the "Books" group
>>>
>>> It appears that as a user you are not allowed to add datasets to groups
>>> that you didn't create. Is this true? Why does the frontend not show an
>>> error to indicate this? Or should it be possible and there is a bug?
>>>
>>> I couldn't really find up to date documentation about this. It seems
>>> CKAN encourages the usage of organizations over groups. Is that correct?
>>>
>>> If anybody has some insights, this would be very helpful.
>>>
>>> Best regards
>>> Stefan
>>>
>>> --
>>> Liip AG // Feldstrasse 133 // CH-8004 Zurich
>>> Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
>
> --
>
> Vítor Baptista
>
> Developer | http://vitorbaptista.com | LinkedIn<http://www.linkedin.com/in/vitorbaptista>|
> @vitorbaptista <http://twitter.com/vitorbaptista>
>
> The Open Knowledge Foundation <http://okfn.org>
>
> *Empowering through Open Knowledge*
>
> http://okfn.org/ | @okfn <http://twitter.com/okfn> | OKF on Facebook<https://www.facebook.com/OKFNetwork> |
> Blog <http://blog.okfn.org/> | Newsletter<http://okfn.org/about/newsletter/>
>
>
> _______________________________________________
> 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/20140417/e19e06cf/attachment-0003.html>
More information about the ckan-dev
mailing list