okfn / ckanext-datahub

Plugin for datahub
datahub.io
11 stars 7 forks source link

Better workflow for creating datasets (when not in organization yet) #36

Closed shevski closed 10 years ago

shevski commented 10 years ago

Original title: error message when trying to add data"

Description of problem

  1. log in as a normal user (non-syasdamin)
  2. go to homepage and click on "publish data for free"
  3. get error: "unathorized to create package" (see screenshot)
    • no explanation, not clear why this happens despite link on homepage suggesting i can publish data. Needs a different workflow or different permissions.

screen shot 2013-12-04 at 19 24 30


From Mark Wainwright

It's not very clear from the upgrade post [1] or the about page [2]. As I understand, if a new user wants to create datasets,they must first contact datahub and ask for an Organization to be created with them as an admin - is that right? But it's not obvious, which is a barrier to people using it.

[1] http://blog.datahub.io/2013/10/11/organization-migration-complete/ [2] http://datahub.io/about

maxious commented 10 years ago

This is probably because datahub.io does not allow unowned packages and/or users without organisations to create packages http://docs.ckan.org/en/latest/authorization.html#configuration-file-options

The error message should explain that on datahub.io you have to be added to an organisation by an organisation admin or sysadmin before you can contribute data and that you can visit the DataHub Support site to contact a sysadmin http://datahub.tenderapp.com/

Perhaps these package creation error messages could be intercepted and changed before display? https://github.com/okfn/ckan/blob/master/ckan/templates/page.html#L24

rossjones commented 10 years ago

The plan (concocted this evening) is to provide auth_functions that redirect to pages on help.datahub.io instead of just sending the user to the login page. I have some mostly working code, I just need to rustle up some tests to make sure it does actually work.

rufuspollock commented 10 years ago

Retitled issue to be more descriptive ...

rufuspollock commented 10 years ago

@rossjones i've put a somewhat better warning / instructions at top of http://blog.datahub.io/2013/10/11/organization-migration-complete/ (which is what is linked from top of datahub.io itself) but obviously not sure many people will click through ...

I also think we prob don't want auth function to redirect to help.datahub.io but probably to give a useful with some brief instructions and directly them to go there ... (its still a bit of a pain as they'll have to register again but not the end of the world ...)

rufuspollock commented 10 years ago

FIXED in PR #51