modrinth / code

The Modrinth monorepo containing all code which powers Modrinth!
https://modrinth.com
Other
862 stars 150 forks source link

Sort by "Recently Updated/Published" doesn't work. #2165

Open IntMarco opened 4 weeks ago

IntMarco commented 4 weeks ago

Please confirm the following.

What browsers are you seeing the problem on?

Chrome (including Arc, Brave, Opera, Vivaldi), Safari

Describe the bug

Look at the update time.

REFRESH NO LONGER WORKS

Before page refresh: After page refresh:
Screenshot 2024-08-16 alle 10 19 32 Screenshot 2024-08-16 alle 10 19 45

The order of recent updates is incorrect until you refresh the page, this happens in every category of the site: mods, resource packs and shaders.

It also happens when you reset your cookies or cache.

Steps to reproduce

1) Open a new page on Modrinth 2) Go to any section of the site (mods, shaders, etc) 3) Sort by "Recently updated" 4) See the first mod in the list and its date 5) Refresh the page

You will notice that after refreshing the page, the mods in the list will be more recent. (This will also happen on the following pages, so even on page 2 the mods in the list will be different after the refresh)

Expected behavior

Sort by "Recently updated" shows the most recent mods/etc.. correctly.

VoidLeech commented 3 weeks ago

Having this on Edge (so Chromium too) as well. Problem since at least 5 days ago: image vs image But affects not just recently updated, here's an example with the recently published page. image vs image Like it's caching the page result for the entered query parameters and stubbornly showing that until you hit refresh.

VoidLeech commented 3 weeks ago

Refreshing no longer works for me as a workaround anymore.

IntMarco commented 3 weeks ago

Same on Safari.

VoidLeech commented 3 weeks ago

Affects Firefox as well.

SettingDust commented 3 weeks ago

Change the amount per page will work.

theprodigy2013 commented 3 weeks ago

image same here, on Firefox. Seems to work for other versions/modloaders with only 1.21 fabric being broken for me

imheavi commented 3 weeks ago

The Recently Published section also seems to have this issue.

Minenash commented 2 weeks ago

Does this still happen?

IntMarco commented 2 weeks ago

I can confirm that it still happens

imheavi commented 2 weeks ago

Yes it does.

Felix14-v2 commented 2 weeks ago

Seems that Yandex (Chromium-based) browser is unaffected, but I still can reproduce it on mobile.

w26ad commented 2 weeks ago

It's even more strange as it depends on which card style is used so Grid view is always correct And other styles get back to old state when scrolling through styles:

https://github.com/user-attachments/assets/a0cf5568-8620-4fe2-b799-387c88af0a27

zndrmn commented 2 weeks ago

This is still a problem, but for me, it only happens with resource packs and if I change how many projects get viewed to something other than 20 it fixes itself. Setting it back to 20 breaks it again. image

image