Gebruikerslijst slechts gedeeltelijk?

Hi, how come my users list is only showing a small percentage of all my users? Were are the others? Thanks.

https://mysite/u?cards=no&order=days_visited&period=all

2 likes

Looks like this can be repro’d here on meta with just the basic user list too https://meta.discourse.org/u

Seems to not be loading any extra pages when I hit the ‘bottom’. (iPhone/safari)

Let’s slip it over to bug for someone to have a look :eyes:

5 likes

Thanks for letting us know, I informed the team and prioritized! We will get this sorted in the upcoming weeks.

1 like

I can reproduce this here on Meta, but weirdly not in my local setup. Error is here in the users controller:

It’s like it’s being called too early in some cases, will investigate.

1 like

Still not really reproducing locally, but this PR should help with it, I will get @kelv to review because he moved this to an observer initially:

2 likes

Just on the off-chance you’ve not considered it, is this connected to having the User Card Directory theme component? I think that’s a thing meta and the OP have in common that you may not have on your test site?

3 likes

Thanks for that, I will give that a try. I did randomly get Meta not to error on this page today so I think there is some race condition, but yes could well be the component having an impact too.

3 likes

I sometimes had the impression it was related to the width. I had a repro where collapsing the sidebar fixed it. But I also had repros where, even though the sidebar was visible, loading more worked once or twice or didn’t break. Those happened with different timespans selected, which didn’t make sense to me. Why should it work once when I select “Month” but twice when I select “Quarter”? If you think it’s helpful, I can look for the screencasts I made last week.

1 like

A post was split to a new topic: User stats incorrect in user directory

I can still reproduce the issue here on Meta.

2 likes

Hmm weird, thanks for digging into this a bit Moin, will try another fix, not sure why the LoadMore change didn’t solve it.

1 like

I’ve just noticed that the user list seems to be working for me now. :+1:

Has yours resolved as well @patrickemin?

Ik zal voor morgen bijwerken en het je laten weten, bedankt.

1 like

Hallo, heb zojuist mijn Discourse bijgewerkt, maar nee, slechts ongeveer 40 leden worden weergegeven in mijn ledenlijst van 610 leden.

1 like

Ik merkte dat oneindig scrollen prima werkt op mobiel, maar niet op desktop/Nest Hub-formaten. Na onderzoek lijkt het erop dat de .load-more-sentinel div nul hoogte heeft, waardoor de IntersectionObserver nooit werd geactiveerd.

Een heel eenvoudige oplossing die ik heb toegepast, is om de sentinel een kleine hoogte te geven (bijv. 1px).

.load-more-sentinel {
    height: 1px;
}
5 likes

Bedankt, de oplossing werkt, heel erg bedankt!

Great that this worked for you, and thanks for your contribution :slight_smile: I merged in this fix so other users of Discourse will benefit from this too. Hopefully this fully resolves the bug!

3 likes

Works great for me. I was able to reproduce it very reliably on my tablet before. :partying_face:

Would you split post #11 into a new topic? Obviously, it’s unrelated because I still see some wrong numbers in the user directory when I follow the steps. Thank you

1 like

You’re welcome. This is my github, happy to contribute more directly in the future!

2 likes