Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faster DOM rendering when processing toolbar filters #3845

Merged
merged 5 commits into from
Nov 19, 2024

Commits on Nov 14, 2024

  1. Speed-up TestCase filtering on the TestPlan view page

    by collecting a list of DOM selectors to be queried/shown via jQuery
    multiple-selector at the same time instead of calling .show() for each
    one of them.
    
    For 1-2 rows this is on-par with the previous implementation, however it is
    around 2x faster when the result set contains many rows (say 100 or
    1000).
    
    WARNING: when a result set contains hundreds of rows there is still a
    noticeable lag on the page. For example if filtering 1000 rows for
    is_automated=false, where only 10 rows have the value of True and the
    rest 990 have the value of False!
    
    See https://api.jquery.com/multiple-selector/
    atodorov committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    800a3e3 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2024

  1. More speed-up for TestCase filtering on the TestPlan view page

    building upon the previous change we now either show or hide rows on
    screen depending on what the actual result set is.
    
    When the rows which match the filter are less than the ones which don't
    we display only them. Else we display everything and hide the rows which
    don't match the filter. This always results in the minimum number of
    display updates.
    
    For the extreme scenario where 990/1000 rows match is_automated=false this
    provides 30x improvement!
    
    WARNING: for scenarios which are not on the extreme case, yet still
    result in 100s of rows that need to be displayed this commit does not
    offer any optimization compared to the previous one!
    atodorov committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    7d31a59 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2024

  1. Move newly created functions into utils.js

    will be used for filtering TestExecutions in the next commit!
    atodorov committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    aa3f44b View commit details
    Browse the repository at this point in the history
  2. Speed-up TestExecution filtering on TestRun view page

    NOTE: use a different underlying API
    atodorov committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    f96ba49 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    11e774b View commit details
    Browse the repository at this point in the history