dhanushka-94 / npr-android-app

Automatically exported from code.google.com/p/npr-android-app
0 stars 0 forks source link

Program lists out of order #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go to a programs page
2. Check the order of the items vs how the show played over the air.

What is the expected output? What do you see instead?

I've been notified story segments under programs, such as Morning Edition, are 
showing up out of order. The reason is most likely in the API call. Let's look 
at today's rundown of ME as an example.

Today's show is posted on the website here: 
http://www.npr.org/templates/rundowns/rundown.php?prgId=3 This page is updated 
daily and represents the order the show was heard on air.  Here is the call 
made for this page: 
http://api.npr.org/query?id=3&date=2010-08-02&fields=titles,audio,show&sort=assi
gned&numResults=50&apiKey=[API_KEY] where the date equals today's date.

Compare that order to the one found on ME's program page in the app. You can 
see the order is mixed up. This is most likely due to an API call asking for 
the most recent stories or pubdate. This will only give you the most recently 
edited/update items, not the order they were aired.

This bug is not limited to ME and should be applied for all program rundowns in 
a similar format.  When we fix this it will ensure when we implement an 'add 
all' function, a user will hear playback in the same order they aired.

Original issue reported on code.google.com by jpenn...@gmail.com on 2 Aug 2010 at 6:11

GoogleCodeExporter commented 8 years ago
Issue 13 has been merged into this issue.

Original comment by jpenn...@gmail.com on 2 Aug 2010 at 6:12

GoogleCodeExporter commented 8 years ago
Do we have this order in the API?  We should probably ask that internally as 
well.

Original comment by kate.my...@gmail.com on 2 Aug 2010 at 6:13

GoogleCodeExporter commented 8 years ago
@Kate I don't understand what you mean. Run the API call posted above with your 
key and you will get the right order.

Original comment by jpenn...@gmail.com on 2 Aug 2010 at 6:27

GoogleCodeExporter commented 8 years ago
Here's an example query that the app makes for a program:

http://api.npr.org/query?&id=[PROGRAM_ID]&sc=18&apiKey=[API_KEY]&fields=title,mi
niTeaser,teaser,storyDate,byline,text,audio,textWithHtml,image,organization,pare
nt&numResults=10&startNum=0

We are not specifying any sort order. However, for topic listings, we add 
sort=assigned to allow for editorial control over what order things show up in.

Original comment by mfreder...@google.com on 2 Aug 2010 at 6:58

GoogleCodeExporter commented 8 years ago
Fixed in revision 90.

Original comment by mfreder...@google.com on 2 Aug 2010 at 9:05

GoogleCodeExporter commented 8 years ago

Original comment by jpenn...@gmail.com on 20 Aug 2010 at 3:46

GoogleCodeExporter commented 8 years ago
Please see Issue 35 for more information on API calls for programs.

Original comment by jpenn...@gmail.com on 20 Aug 2010 at 3:47

GoogleCodeExporter commented 8 years ago

Original comment by jpenn...@gmail.com on 31 Aug 2010 at 1:49