prabhjas / chirpradio

Automatically exported from code.google.com/p/chirpradio
0 stars 0 forks source link

Can DJDB generate list of 10 albums at random? #166

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Many DJs have requested a feature along these lines -- a button to click in the 
DJDB that would either take them to a random review, or to generate a list of 
10 (or possibly more? Perhaps the quantity could be defined by the user?) 
reviewed albums at random. This would help DJs "stumble upon" records that they 
may not have been aware of and lead to more diverse sets from week to week as 
they discover new music.

Original issue reported on code.google.com by billyk...@gmail.com on 20 Aug 2010 at 6:22

GoogleCodeExporter commented 9 years ago
This is not straightforward since GAE queries are only capable of returning 
consecutive entities and keys have not been constructed upon entry into the 
datastore to facilitate random selection. One possibility is to add an integer 
field to the album model which we can fill up consecutively (or at least very 
densely) across all albums (and new ones). Then we can select a set of unique 
random numbers from this known range.

Original comment by jawax...@gmail.com on 23 Aug 2010 at 2:20

GoogleCodeExporter commented 9 years ago
Now that we have this in place -- and it is very handy so far -- can we add a 
toggle box to return only results that have a review in place? I rarely seek to 
stumble upon something at random and have no information about what I've found, 
so I am guessing most DJs will find this feature more useful when only reviewed 
albums turn up.

Original comment by billyk...@gmail.com on 3 Jan 2011 at 11:23

GoogleCodeExporter commented 9 years ago

Original comment by jawax...@gmail.com on 20 Apr 2011 at 3:39