mitmedialab / MediaCloud-Dashboard

Front-end for the MediaCloud database
https://dashboard.mediameter.org
Apache License 2.0
16 stars 6 forks source link

url shortener #235

Closed hroberts closed 8 years ago

hroberts commented 8 years ago

maybe I'm adding functionality where it shouldn't be, but our urls are too long for easy sharing, so it would be great to have a way to automagically generate a shortened url.

rahulbot commented 8 years ago

We could save it the search and add a short hash to the saved object, and do lookups against that (combined with user id). That'd be a lowest-hanging-fruit solution.

So the short URL would be /q/uid/saved-query-hash or something.

Rahul On Fri, Feb 5, 2016 at 2:20 PM Hal Roberts notifications@github.com wrote:

maybe I'm adding functionality where it shouldn't be, but our urls are too long for easy sharing, so it would be great to have a way to automagically generate a shortened url.

— Reply to this email directly or view it on GitHub https://github.com/c4fcm/MediaMeter-Dashboard/issues/235.

hroberts commented 8 years ago

I was imagining just imagining literally forwarding to bitly, but this would be better.

Come to think of it, there's a reason why every content site in the world includes sharing links plastered everywhere in their site. They always feel a bit icky about the, but we should at least talk about whether to add them to the next version.

Why do we need the uid in the url? Can't we just look it up based on the hash?

-hal

On 2/5/16 1:57 PM, rahulbot wrote:

We could save it the search and add a short hash to the saved object, and do lookups against that (combined with user id). That'd be a lowest-hanging-fruit solution.

So the short URL would be /q/uid/saved-query-hash or something.

Rahul On Fri, Feb 5, 2016 at 2:20 PM Hal Roberts notifications@github.com wrote:

maybe I'm adding functionality where it shouldn't be, but our urls are too long for easy sharing, so it would be great to have a way to automagically generate a shortened url.

— Reply to this email directly or view it on GitHub https://github.com/c4fcm/MediaMeter-Dashboard/issues/235.

— Reply to this email directly or view it on GitHub https://github.com/c4fcm/MediaMeter-Dashboard/issues/235#issuecomment-180534095.

Hal Roberts Fellow Berkman Center for Internet & Society Harvard University

rahulbot commented 8 years ago

You can get the short url on the saved search popup now. A number of major caveats here:

dashboard_-_mediameter

hroberts commented 8 years ago

Fantastic! Thanks Rahul!