Duplicate Records

Created on 31 May 2018, about 6 years ago
Updated 25 October 2023, 8 months ago

In my Drupal 8 project, I am using VIEWS (core) to create a view.

When I select 'Infinite Scroll' option for Use pager then view output shows DUPLICATE result if I click LOAD MORE button.

My VIEW's 'Sort criteria' section is overwritten with random results. This means whatever data is in 'Sort criteria' section, it is completely ignored (except nid) and rendered output shows RANDOM result.

I have noticed same issue was on Drupal 7 and I followed suggestions to test in D8 i.e to use CONTENT ID in 'Sort criteria' section which fixed the DUPLICATE issue.

Ref: https://www.drupal.org/project/views_infinite_scroll/issues/1655346#comm... β†’

I want to use any sort criteria as I want with no duplicates and this is currently a bug in this module.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom webdevfreak

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Is this still an issue with 2.0.x? If yes, please update the version and set the status active again with clear steps or (best) with a test showing what's broken.

    2.0.x is the active development branch.

    If nobody replies, we should assume this is fixed and close this issue outdated.

    Thanks!

  • Unfortunately, the issue is still present with 2.0.x version, and #18 (adding Content ID after Date solves it).

    Steps to reproduce (in my case):

    1. Create 50-100 nodes of a specific content type for testing;
    2. Create 6 or more nodes with the same published date;
    3. Create a view to display the teasers of this content type;
    4. Sort them by "Content: Date Posted";
    5. Add "Infinity Scroll" pager with a specific number of items to display (in my case 9);
    6. When I have 6 or more teasers with the same published date on the page ( e.g.: 4 or 5 are visible and the 6th will be added on the next "load more") and one or more of them are located in the next 9 items that will be displayed, after clicking the "Load more" button, one of the teasers is duplicated and it's present in the next 9 items that are added.

  • Status changed to Active 8 months ago
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Thank you @Sergiu_! Happy to review MR's!

Production build 0.69.0 2024