ShokoAnime / ShokoServer

Repository for Shoko Server.
http://shokoanime.com/shoko-server/
MIT License
389 stars 75 forks source link

Add next up deck for dashboard and next up for series #946

Closed revam closed 2 years ago

revam commented 2 years ago

Need to fix up the series endpoint so it shows either the active episode or the next if no active. The dashboard endpoints have been tested (in my local copy of the web ui).

Also, blocked by https://github.com/ShokoAnime/Shoko.Models/pull/6 and https://github.com/ShokoAnime/Shoko.Commons/pull/7

revam commented 2 years ago

Fixed the endpoints so you can select between a) only unwatched episodes or b) unwatched or actively watching episodes.

revam commented 2 years ago

Also included a fix for (hopefully) all watch dates... because the incorrect dates were interfering when testing the endpoints.

revam commented 2 years ago

Fixed the endpoints so you can select between a) only unwatched episodes or b) unwatched or actively watching episodes.

In case we want to have a mixed deck for "continue watching" and "next up" in the future, because currently they're separate.

revam commented 2 years ago

I don't think i have more to add to this PR now.

revam commented 2 years ago

I lied, I added logging to the database fix. The log lines are subject to change if needed.

revam commented 2 years ago

Do anyone want to review it (again) or should I just merge it (after merging the PRs for model/commons)?