chuni: Correctly implement recent rating requests - [closed] #24

Closed
opened 2020-07-31 08:46:25 +03:00 by icex2 · 4 comments
icex2 commented 2020-07-31 08:46:25 +03:00 (Migrated from github.com)

In GitLab by @seika1 on Jul 31, 2020, 07:46

Merges fix-recent-rating-2 -> master

The current implementation of getUserRecentRating, which pulls from the last 30 scores in the play log, isn't quite correct: for example, I've noticed

  • differences in rating after finishing the last song on a play => logging in afterwards
  • in upsertUserAll, not all recently played scores are added to userRecentRatingList

This MR adds a new table cm_user_recent_rating that just stores whatever the client sends as userRecentRatingList directly, along with a migration that dumps the last 30 scores (with rudimentary filtering) from the play log into this new table to avoid a rating crash.

In GitLab by @seika1 on Jul 31, 2020, 07:46 _Merges fix-recent-rating-2 -> master_ The current implementation of `getUserRecentRating`, which pulls from the last 30 scores in the play log, isn't quite correct: for example, I've noticed * differences in rating after finishing the last song on a play => logging in afterwards * in `upsertUserAll`, not all recently played scores are added to `userRecentRatingList` This MR adds a new table `cm_user_recent_rating` that just stores whatever the client sends as `userRecentRatingList` directly, along with a migration that dumps the last 30 scores (with rudimentary filtering) from the play log into this new table to avoid a rating crash.
icex2 commented 2020-07-31 08:49:17 +03:00 (Migrated from github.com)

In GitLab by @seika1 on Jul 31, 2020, 07:49

added 1 commit

  • 0b5c3cdc - add missing semicolon

Compare with previous version

In GitLab by @seika1 on Jul 31, 2020, 07:49 added 1 commit <ul><li>0b5c3cdc - add missing semicolon</li></ul> [Compare with previous version](/djhackers/minime/-/merge_requests/16/diffs?diff_id=1262&start_sha=473b2f636473e165126a7caf8fa3514a862bd1b6)
icex2 commented 2020-08-02 06:40:37 +03:00 (Migrated from github.com)

In GitLab by @seika1 on Aug 2, 2020, 05:40

added 7 commits

  • 0b5c3cdc...e90068f3 - 6 commits from branch djhackers:master
  • 838b2586 - chuni: Correctly implement recent rating requests

Compare with previous version

In GitLab by @seika1 on Aug 2, 2020, 05:40 added 7 commits <ul><li>0b5c3cdc...e90068f3 - 6 commits from branch <code>djhackers:master</code></li><li>838b2586 - chuni: Correctly implement recent rating requests</li></ul> [Compare with previous version](/djhackers/minime/-/merge_requests/16/diffs?diff_id=1263&start_sha=0b5c3cdc046a12a8a968de6346f70a7b0c91c0a7)
icex2 commented 2020-08-02 19:27:08 +03:00 (Migrated from github.com)

In GitLab by @tau on Aug 2, 2020, 18:27

Rebased and merged manually

In GitLab by @tau on Aug 2, 2020, 18:27 Rebased and merged manually
icex2 commented 2020-08-02 19:27:09 +03:00 (Migrated from github.com)

In GitLab by @tau on Aug 2, 2020, 18:27

closed

In GitLab by @tau on Aug 2, 2020, 18:27 closed
Sign in to join this conversation.