datahuborg / datahub

An experimental hosted platform (GitHub-like) for organizing, managing, sharing, collaborating, and making sense of data.
https://datahub.csail.mit.edu
MIT License
210 stars 60 forks source link

Public + Obfuscated (semi-public) Repos #59

Closed RogerTangos closed 8 years ago

RogerTangos commented 8 years ago

Some tables should be public, so that all users can create views off of them. This ties into another problem, discoverability.

RogerTangos commented 8 years ago

This is being put on the front burner. Repos (and the tables in them) will be made visible in one of two ways:

  1. Via database permissions
    • This will involve creating a postgres user that can operate on the data inside the repo.
    • May be initially limited to select access
    • The repo will be accessible regardless of login status
  2. Via obfuscated links.
    • Similar to #128.
    • The obfuscated link will correspond to a username that can access the data
RogerTangos commented 8 years ago

Public repos are added in #b55cfae. I'm a little confused about whether we're doing obfuscated cards atm.

RogerTangos commented 8 years ago

Public repos are tested and working in 45606d02a736493e804997dd01d2e460039aa23d.

Unauthenticated users can click a "Public Repos" link at the top of datahub, from where they can discover browse and query public repos.

Public repos are also available via the API, though (due to OAuth considerations), consumers of the API must be authenticated datahub users. What this means is that anyone can still get to public repos via the API. They just have to create a datahub account first.