PRX / publish.prx.org

Dovetail podcast CMS frontend
https://publish.prx.org
GNU Affero General Public License v3.0
2 stars 2 forks source link

Series episode-list not ordered correctly #696

Closed cavis closed 4 years ago

cavis commented 4 years ago

If you have a mix of "schedule-published" and "publish-immediately" episodes, they don't show up correctly ordered in the list.

Requests are made to:

/api/v1/authorization/series/1234/stories?per=50&zoom=0&sorts=released_at%3Adesc%2Cpublished_at%3Adesc

Which probably puts all released episodes before all immediately-published ones. Should we be sorting by the coalesced published_released_at instead? (Did that change at some point, or was this an existing bug?)