Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.42k stars 1.99k forks source link

Duplicate Posts Found in Paginated Results #76772

Open mdtanjid0 opened 1 year ago

mdtanjid0 commented 1 year ago

Quick summary

The Load More button on the TextBook theme is pulling duplicate posts instead of new ones.

Steps to reproduce

  1. Install TextBook theme.
  2. Don't set any static page as the homepage; instead, set home as default from reading/customizer.
  3. And make sure to have some posts on yours.
  4. And set the Blog posts limit to 1/2 to test the load more button.
  5. And have some sticky posts for example 3-4 ( this is important to replicate it )
  6. And check the blog posts on the homepage and try loading some posts via load more button.

What you expected to happen

Instead of displaying duplicate posts, it should show unique and old/new posts via the button.

What actually happened

It's loading the duplicate posts instead.

Impact

Some (< 50%)

Available workarounds?

Yes, difficult to implement

Platform (Simple and/or Atomic)

Simple

Logs or notes

Ticket: #6277070-zen And here is the short video:

https://github.com/Automattic/wp-calypso/assets/54123436/451cd45c-5944-4429-a385-e1bf998f0e1c

As a workaround, I have advised the user to remove the posts from Sticky.

karenroldan commented 1 year ago

📌 REPRODUCTION RESULTS

📌 FINDINGS/SCREENSHOTS/VIDEO

Simple - the issue can be replicated with or without the sticky post.

Screenshot 2023-05-11 at 16 18 10

The sticky post was also duplicated in this case

Screenshot 2023-05-11 at 16 25 04

📌 ACTIONS

github-actions[bot] commented 1 year ago

Support References

This comment is automatically generated. Please do not edit it.

creativecoder commented 1 year ago

Hi there @mdtanjid0 and @karenroldan ! The Loop team mainly works on the Reader in Calypso and some other social and engagement features on WP.com. Did you mean to assign this to another team?

karenroldan commented 1 year ago

Thanks for the clarification! I'll move this ticket out of the Loop team.

karenroldan commented 1 year ago

📌 ACTIONS