owid-grapher icon indicating copy to clipboard operation
owid-grapher copied to clipboard

Download from Living Planet Explorer to be limited/redirected.

Open spoonerf opened this issue 2 years ago • 12 comments

Core problem

We are hoping to build an explorer with the Living Planet database. They are generally happy for us to do this but are wary of us being an alternative location where their full dataset could be downloaded as they have previously had bad experiences with this. They are fairly flexible with proposed solutions and suggested a few to us.

They are releasing a new version of the dataset in September and it would be great to have something workable for this by then, if possible.

Proposed solution

Possible solutions:

  • The download button redirects to the location of their data where a user must acknowledge their data license agreement
  • The user can only download the current view of the explorer, therefore adding a barrier to downloading the full dataset.
  • Their data license agreement is shown on our site when a user tries to download this. I'm not sure if this is a workable solution as they have a public dataset and a larger research dataset. We would want to use the latter but I think they might be even less keen to allow our users to download this. I will clarify this with them.

Alternatives

  • We disable all downloads from this explorer, not ideal but maybe the most feasible.

spoonerf avatar May 31 '22 14:05 spoonerf

Hi @spoonerf the explorer allows specifying a downloadDataLink (example from the covid explorer):

Screenshot 2022-05-31 at 15 18 30

I think this should be option 1 in your proposal – is that true, and is that sufficient for unblocking you on this issue?

danielgavrilov avatar May 31 '22 14:05 danielgavrilov

I think that should do it! Maybe a silly question, but if it's not a link to a csv but another webpage the download button will just redirect there?

spoonerf avatar May 31 '22 14:05 spoonerf

Maybe a silly question, but if it's not a link to a csv but another webpage the download button will just redirect there?

That's a great question! I checked and it won't redirect, but will download the HTML of the page. So that's not option 1 😅

It think we would just need to change explorer so it's possible to add a link that users follow instead of download. This seems like the most reasonable solution?

  • The user can only download the current view of the explorer, therefore adding a barrier to downloading the full dataset.

It's not exactly straightforward to isolate precisely which data is used in the current view, partly because we transform the data on the Grapher side, so it's not the true data table at the end. I'm also less in favour of this option because it's kind of inconsistent with the way every other chart works, and potentially unexpected & inconvenient for users.

  • Their data license agreement is shown on our site when a user tries to download this.

Potentially we could include a text field in Explorer config that gets included in/under the download button.

danielgavrilov avatar May 31 '22 14:05 danielgavrilov

It think we would just need to change explorer so it's possible to add a link that users follow instead of download. This seems like the most reasonable solution?

This definitely seems like the one to go for. Do you see this being an option on the Download tab?

spoonerf avatar May 31 '22 14:05 spoonerf

Yes, we would need to turn it into a link instead of a button, as it is now.

And we would need to add another field to the Explorer config potentially, to differentiate between "trigger download" and "follow link".

Should take ~1-2h of dev work, so shouldn't be a burden.

danielgavrilov avatar May 31 '22 14:05 danielgavrilov

Okay great, I will get back to them with this solution and confirm it works for them. Thanks!!

spoonerf avatar May 31 '22 15:05 spoonerf

Hey @spoonerf, did you hear back from them on this?

larsyencken avatar Jun 07 '22 11:06 larsyencken

Hello! They are discussing internally this week - if we don't hear anything by early next week I'll chase them up. Would that be okay?

spoonerf avatar Jun 09 '22 07:06 spoonerf

@spoonerf Did this end up being something that the living planet team wanted in the end?

larsyencken avatar Jul 26 '22 11:07 larsyencken

Ah we are chatting to them about this tomorrow afternoon so will get back to you then! Sorry for the delay!

spoonerf avatar Jul 26 '22 12:07 spoonerf

Hi @larsyencken - they are happy with this solution. Would be great it if you could add it when you get a chance, but very much no rush. I don't think the explorer this will be used for will be in place before Q4.

spoonerf avatar Jul 27 '22 13:07 spoonerf

Ok, no sweat. It'll sit in our backlog for a bit then, but yell if it becomes more urgent.

larsyencken avatar Jul 27 '22 14:07 larsyencken

This issue has had no activity within 10 months. It is considered stale and will be closed in 7 days unless it is worked on or tagged as pinned.

github-actions[bot] avatar Aug 09 '23 07:08 github-actions[bot]