Porch, neighborhood network · Programming

Posts go missing from the feed

Rosa posted about her lost cat at 9:00 this morning. The post is on her profile, and neighbors who scroll the Porch feed never see it. The feed audit has reported missing posts on every run since feed-api 3.1 went out yesterday.

Rosa DelgadoNeighbor, help form, 10:30
I posted about Biscuit at 9 and nobody has replied, which never happens here. My neighbor Theo scrolled through his whole feed with me on the phone and it isn’t there. It shows up on my own page.

Your objective

Find why the feed skips posts and fix the pagination code. The incident closes when the feed audit finds no missing posts and Rosa’s post appears in Theo’s feed.

Getting started

  1. In the support view you are Theo. Scroll the feed with Show more posts and look for Rosa’s post.
  2. Open Rosa’s profile from any of her posts and note when the missing post was created. Compare it with the post above it in the feed.
  3. Read feed-api/src/paginate.js and the feed audit logs.
  4. Fix feedPage, run the tests, deploy, and scroll Theo’s feed again.

Resolution

  • The feed audit finds no missing or repeated posts on two runs in a rowStarting
  • Rosa’s post about Biscuit appears in Theo’s feedStarting
Starting Porch…
Loading telemetry…

How this lab runs

Porch runs in this page. The feed and sign-in you use are the same code paths the simulated neighbors use, and the release controls change what every session receives. Auth, the feed API, and the database are simulated services, and the logs, traces, and charts come from the requests this page processed.