owid-grapher
owid-grapher copied to clipboard
Download from Living Planet Explorer to be limited/redirected.
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.
Hi @spoonerf the explorer allows specifying a downloadDataLink
(example from the covid explorer):

I think this should be option 1 in your proposal – is that true, and is that sufficient for unblocking you on this issue?
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?
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.
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?
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.
Okay great, I will get back to them with this solution and confirm it works for them. Thanks!!
Hey @spoonerf, did you hear back from them on this?
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 Did this end up being something that the living planet team wanted in the end?
Ah we are chatting to them about this tomorrow afternoon so will get back to you then! Sorry for the delay!
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.
Ok, no sweat. It'll sit in our backlog for a bit then, but yell if it becomes more urgent.
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.