HackRU / lcs

The backend for HackRU's website. Manages the user system.
http://hackru.org
MIT License
6 stars 5 forks source link

Endpoint to enable embeding charts in the frontend #88

Open mjrb opened 4 years ago

hemangandhi commented 4 years ago

Confusion: what does the read endpoint lack for this?

mjrb commented 4 years ago

This is referring to the MongoDB charts service built into atlas. Technically we could just use anonymous auth and still use charts, but this allows us to restrict access. The advantage to embedding charts instead of using read+d3 (for example) is we won't need to write d3 code for everything we want to display, and charts is more mature so it supports more complicated aggregate stuff out of the box without us having to make the read endpoint more complicated, and potentially having to worry about more auth stuff.

mjrb commented 4 years ago

Also slightly unrelated thought I just want to note here so I don't forget. We can set up data sources to have a project stage which I think should remove the need for a separate redacted db

mjrb commented 4 years ago

example implementation https://github.com/mongodb/charts-embedding-examples/tree/master/python