news-catalyst / next-tinynewsdemo

Frontend for Tiny News Collective organizations
https://next-tinynewsdemo.vercel.app
1 stars 0 forks source link

Recent Article Stream/Archive Articles Page missing articles #1274

Closed pdeharo333 closed 2 years ago

pdeharo333 commented 2 years ago

07/18/21: Nancy brought up the issue of the recent article stream not correctly displaying her more recent published article. For context, she published this story originally Jun 2, 2022 and updated June 7, 2022. Because of the original date published it should be at the top of recent articles, but it's missing.

I thought maybe there was a pattern of when or why an article isn’t showing up so I took a look at the active sites to notice what isn’t being shown in the article stream, and that’s when I noticed some articles weren’t displaying in the archived page either, which is a bigger issue.

BBG: I noticed that BBG published this article July 16, 2020 but it's missing in both the recent article stream and archived stories. Yesterday I noticed this article was missing in the recent article stream, but today it is there. I think it's tied to Crystal publishing a new article today that hides/undies certain articles.

HWH: Something worth pointing out is that Amethyst is using the large homepage layout so it includes two other stories on the right side of the featured story. When you select the stories on the right they aren’t shown in recent articles, so as to not be repeated on the homepage. Assuming nothing is missing in her archived page, the recent articles are reflected correctly.

Five Wards Media: This story is missing from the recent articles stream. And, I noticed that this story is shown in the recent stories but is missing in the archive articles page.

Testing: When testing using the oaklyn test site, I can’t replicate the issues. I’ve added about six new articles in the span of a couple days trying to change the homepage layout, updating articles and republishing. But, the recent stories are reflected correctly by date and nothing is missing.

I added console.logs to Article Stream and Article Link components but didn’t give me much insight as to why certain articles, since it's displaying what’s currently on the homepage.

Line 48 of Homepage.js isn’t using the setter for MostRecentArticles so I suspected that might be part of the problem:

const [mostRecentArticles, setMostRecentArticles] = useState(streamArticles);