logv / snorkel

UI for interactive data analysis | https://snorkel.logv.org
https://fb.com/groups/snorkelsnorkelsnorkel
161 stars 21 forks source link

Pulling data out programatically #3

Closed rstecker closed 11 years ago

rstecker commented 11 years ago

Hey Okay,

Trying to use Snorkel data on an admin page. Can't do an un-authed pull. Makes me sad.

Any suggestions? I can't even auth the user from within the admin page, can I?

okayzed commented 11 years ago

which API endpoint are you hitting? i think we can just whitelist some endpoints in the config.

rstecker commented 11 years ago

It has been suggested that I just turn auth off since it's already only running over the VPN.
I was told to look at require_auth in the config.js but I don't see require_auth being looked at anywhere... I see authorized_users being set to something, should I instead just... delete that or something?

okayzed commented 11 years ago

require_auth is yet unimplemented. i'll add that feature in shortly.

okayzed commented 11 years ago

actually, looking at it more. how does an endpoint that lets you run queries and get results programatically, work?

that's easier than removing the requirement that everyone has a user account, but both are doable.

rstecker commented 11 years ago

Running queries and getting results sounds awesome! That's what I was hoping I was going to be able to do with something like query/download?table=vdio/session_qos&view=samples&start=-1%20hour&end=Now Or view=table. Seems like everything I would have wanted, except I was tripped up by the auth....

Whatever is easiest is fine by me.

okayzed commented 11 years ago

https://github.com/okayzed/snorkel/commit/4dfa32fedacc36978f8a7c245276bfdbe0931f4d

(make sure to edit your config.js to set no_auth_api: true)

rstecker commented 11 years ago

The new no_auth_api is working great. Am happily pulling down data now and making my own pretty graphs