weeklybeats / issues

Issue tracker for weeklybeats
2 stars 0 forks source link

Double track for uploader [rare, no repro] #39

Open JerwuQu opened 8 months ago

JerwuQu commented 8 months ago

I think this might've been mentioned on Discord before, but putting this on here to document it, even if I don't have any insight into it without seeing the code.

Bug Very rarely, a track can be displayed twice for the user that uploaded it. Example: image

This is not visible for other users or as logged out, but remains after clearing cookies and logging in again, so is clearly persistent when the bug has been triggered for a track.

I recall this happening to me (and others) earlier years, and it somehow disappearing after a while.

To Reproduce I don't know.

It could be because I accidentally accessed the page for the track a few seconds before deadline and got a 404, but that's the only thing I did differently from any other week.

JerwuQu commented 7 months ago

Just an update that the bug is still there the week after. Cleared cookies and logged in again. image

JerwuQu commented 3 months ago

It happened again image

Old one is also still there

sparkhom commented 5 days ago

@trash80 https://github.com/weeklybeats/weeklybeats/blob/master/forums/extensions/chipmusic/framework/model/item_model.php#L179 I think that if we make it a SELECT DISTINCT here, it will probably patch the issue. But still not sure what the root cause is.