Skip to content

renderComplete Fires Prior to Discover Search Render Completion (Once Per Row?) #26998

Open

Description

Kibana version:
6.5.2

Elasticsearch version:
6.5.2

Server OS version:
Ubuntu 16.04.05

Browser version:
Firefox

Browser OS version:
Windows 10

Original install method (e.g. download page, yum, from source, etc.):
apt

Describe the bug:
I'm noting that renderComplete seems to fire far too frequently for Discover saved searches. It seems to fire as each row is rendered, rather than when rendering completes.

Steps to reproduce:

  1. Load a visualization that includes a Discover search
  2. Load test code via the browser console:
$("doc-table.panel-content").on("renderComplete", function(){
console.log("renderComplete Ran: " + new Date().getTime() );
});
  1. Use the tables paging buttons to force a refresh
  2. Observe ~101 lines logged to the browser Console

Using an alert() in the test pauses things with each iteration that seems to show it occurring as each row is rendered

Expected behavior:
renderComplete would fire once when all table rows had completed rendering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions