Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program lists out of order #32

Closed
GoogleCodeExporter opened this issue Aug 5, 2015 · 8 comments
Closed

Program lists out of order #32

GoogleCodeExporter opened this issue Aug 5, 2015 · 8 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Issue 13 has been merged into this issue.

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

@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
Copy link
Author

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
Copy link
Author

Fixed in revision 90.

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant