Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21447

Incorrect results when typing slowly in filter fields

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 15.10.1, 15.5.5
    • 15.9, 14.10.19
    • Live Data
    • None
    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      When typing slowly in a filter field, it can happen that the delay between two keypresses is higher than the debounce delay.

      This will fire two requests close to each others, and the first can complete after the second one, so the displayed results will correspond to the the first request, not the second.

      getEntries (https://github.com/xwiki/xwiki-platform/blob/279c0d1584135f73f194b2b2f585bd6e6652b7b8/xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-webjar/src/main/webjar/liveDataSource.js#L26C7-L26C17) should probably cancel former requests before making a new one, or make sure they are handled in order.

      How to reproduce:

      You still see only "batch import" when you should see everything

      Attachments

        Activity

          People

            mleduc Manuel Leduc
            rjakse Raphaël Jakse
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: