uclaradio / uclaradio.com

UCLA Radio Website
http://www.uclaradio.com
GNU Affero General Public License v3.0
31 stars 4 forks source link

View the Rivendell Master Library in Panel #76

Closed binerys closed 7 years ago

binerys commented 7 years ago

screen shot 2017-03-09 at 1 25 17 am

Elrond - The Lord of Rivendell

Name courtesy of @nathunsmitty

TIL that Rivendell uses a MySQL database and above is a snapshot of the most important table of all - the cart! The cart table features all the songs available in Rivendell. With access to this table, we no longer have to rely on the manually updated google sheet.

Having this data is very exciting because:

  1. DJs will now be able to see whats actually on Rivendell
  2. The music department no longer has to manually update the list
  3. We'll be able to filter by Artist, Album, Group (Music, NMF, Liner), and of course Titles (no more CTRL+F'ing the google sheet!!)

Implementation

Here's a rough idea that I have so far: EDIT: See update in comment below, leveraging mysql is currently not an option at the moment

For local dev, I have a SQL dump of the current CART table in Rivendell as of March 8th, 2017 (s/o to Brandon for hooking it up). We can use docker to spin up a MySQL container (which is what I'm currently using) for database access.

Concerns

Having two different DB's in one repo doesn't sound like best practice, so I was initially thinking of developing this in a separate repo. However, I'd like to take advantage of Panel's current setup, especially since its only accessible by UCLA radio members.

@hsuregan @ChrisLaganiere Let me know your thoughts on this and any other ideas you have!

binerys commented 7 years ago

@kianadk 🙌🏽

ChrisLaganiere commented 7 years ago

Daang, awesome find. We could add to the main repo or make another one, depends on implementation.. Your plan looks good to me, with mysql :)

binerys commented 7 years ago

UPDATE TO IMPLEMENTATION

Issues with networking within our station and with Student Media has led to a new game plan. Essentially we have no way of publicly accessing the SQL database hosted on our Rivendell machine. This limits us to only two computers that have rivendell database access: the rivendell machine itself and the rivendell client (in the prod room)

Here's my new gameplan on getting that precious rivendell data.

On the rivendell client, run a cron job that will do the following:

binerys commented 7 years ago

Implemented via #103