scratchfoundation / scratch-www

Standalone web client for Scratch
https://scratch.mit.edu
GNU Affero General Public License v3.0
1.6k stars 852 forks source link

CE-143 Several rows of projects show up inconsistently on main page #6945

Open Norbiros opened 2 years ago

Norbiros commented 2 years ago

Note: I changed the title and scope of this issue to reflect a broader bug I've seen. The original issue is below. -@benjiwheeler

Background

There are nine possible rows of projects/studios on the front page, which appear in this order:

  1. Featured Projects
  2. Featured Studios
  3. Projects Curated by PandaBearRocksLearn
  4. Scratch Design Studio
  5. Projects by Scratchers I'm Following
  6. Projects Loved by Scratchers I'm Following
  7. Projects in Studios I'm Following
  8. What the Community is Remixing
  9. What the Community is Loving

1, 2, 3, 4, 8, and 9 always show up for everyone, whether they are logged in or not.

5, 6. and 7 show up only for logged in users who follow other users or studios.

Expected behavior

For a user who has followed several other users and studios for a while, 5, 6, and 7 will always show up.

Actual behavior

It seems that 5, 6 and 7 only show up inconsistently for various users.


Original issue

Expected Behavior

On main page we have 7 rows with projects and studios. For example featured projects and Projects loved by Scratchers I am following.

Actual Behavior

It shows 6 rows (without Projects loved by Scratchers I am following). IDK why, i changed my followers, and I tested a lot of things but it still doesn't work. In Redux Devtools I can see that SET_ROWS request is send with rows parameter, that contains loved by following data, but in network tab, I can't see that there are any request to get users and project profile pictures...

Steps to Reproduce

It is very strange bug. Page works normally for my friends, but for my account it doesn't work.

Steps to reproduce the behaviour:

  1. Go to 'https://scratch.mit.edu'
  2. Scroll down

System Details

Firefox 95.0.1 Linux Gentoo

But that doesn't matter, this bug is only on my account. If I use my brother account on my computer, it works.

Screenshots

Screenshot_from_2022-07-19_16-22-05

Related https://scratch.mit.edu/discuss/post/4509629/ https://scratch.mit.edu/discuss/post/3812667

benjiwheeler commented 2 years ago

I've noticed this too! It's indeed a weird bug. Actually, I do see projects LOVED by Scratchers I'm following, but I don't see projects BY Scratchers I'm following! But others do.

benjiwheeler commented 2 years ago

E.g., this Scratch user can see "projects by Scratchers I'm following"

animgif

But I have no row between Scratch Design Studio and Projects Loved by Scratchers I’m Following:

image
AksharVivek commented 2 years ago

This happens to me sonetimes

mxmou commented 2 years ago

This is a scratch-api bug.

Norbiros commented 2 years ago

Rows on page: Screenshot from 2022-08-16 18-42-36 Rows in api request (+ community_newest_projects): Screenshot from 2022-08-16 18-41-04

mxmou commented 2 years ago

Rows in api request (+ community_newest_projects): Screenshot from 2022-08-16 18-41-04

These rows have separate endpoints - they aren't included in the response from /proxy/featured.