Merged
Conversation
de75deb to
641f9af
Compare
Contributor
Author
|
jenkins, test this |
Contributor
|
LGTM |
w33ble
reviewed
Nov 23, 2016
src/ui/public/doc_table/doc_table.js
Outdated
| $el.attr('has-render-count', 'true'); | ||
| $el.attr('render-count', '0'); | ||
| $el.on('renderComplete', () => { | ||
| $el.attr('render-count', parseInt($el.attr('render-count'), 10) + 1); |
Contributor
There was a problem hiding this comment.
maybe a dumb micro-optimization, but reading this off the DOM every time isn't free. Why not store the value in the directive?
Contributor
|
@spalger |
Contributor
|
LGTM! |
kobelb
reviewed
Nov 23, 2016
src/ui/public/doc_table/doc_table.js
Outdated
| filter: '=?', | ||
| }, | ||
| link: function ($scope) { | ||
| link: function ($scope, $el) { |
elastic-jasper
added a commit
that referenced
this pull request
Nov 23, 2016
Backports PR #9206 **Commit 1:** [docTable/row] delay first render until watchers initialize * Original sha: 4945e08 * Authored by spalger <email@spalger.com> on 2016-11-23T18:57:22Z **Commit 2:** [docTable/row] emit a renderComplete event, count in table directive * Original sha: 641f9af * Authored by spalger <email@spalger.com> on 2016-11-23T18:58:21Z **Commit 3:** [renderCounter] unify render counting login into directive * Original sha: 0c084ac * Authored by spalger <email@spalger.com> on 2016-11-23T21:26:44Z **Commit 4:** [docTable] remove unused var * Original sha: 275bf70 * Authored by spalger <email@spalger.com> on 2016-11-23T22:00:52Z
elastic-jasper
added a commit
that referenced
this pull request
Nov 23, 2016
Backports PR #9206 **Commit 1:** [docTable/row] delay first render until watchers initialize * Original sha: 4945e08 * Authored by spalger <email@spalger.com> on 2016-11-23T18:57:22Z **Commit 2:** [docTable/row] emit a renderComplete event, count in table directive * Original sha: 641f9af * Authored by spalger <email@spalger.com> on 2016-11-23T18:58:21Z **Commit 3:** [renderCounter] unify render counting login into directive * Original sha: 0c084ac * Authored by spalger <email@spalger.com> on 2016-11-23T21:26:44Z **Commit 4:** [docTable] remove unused var * Original sha: 275bf70 * Authored by spalger <email@spalger.com> on 2016-11-23T22:00:52Z
This was referenced Nov 23, 2016
spalger
pushed a commit
that referenced
this pull request
Nov 24, 2016
Backports PR #9206 **Commit 1:** [docTable/row] delay first render until watchers initialize * Original sha: 4945e08 * Authored by spalger <email@spalger.com> on 2016-11-23T18:57:22Z **Commit 2:** [docTable/row] emit a renderComplete event, count in table directive * Original sha: 641f9af * Authored by spalger <email@spalger.com> on 2016-11-23T18:58:21Z **Commit 3:** [renderCounter] unify render counting login into directive * Original sha: 0c084ac * Authored by spalger <email@spalger.com> on 2016-11-23T21:26:44Z **Commit 4:** [docTable] remove unused var * Original sha: 275bf70 * Authored by spalger <email@spalger.com> on 2016-11-23T22:00:52Z
spalger
pushed a commit
that referenced
this pull request
Nov 24, 2016
Backports PR #9206 **Commit 1:** [docTable/row] delay first render until watchers initialize * Original sha: 4945e08 * Authored by spalger <email@spalger.com> on 2016-11-23T18:57:22Z **Commit 2:** [docTable/row] emit a renderComplete event, count in table directive * Original sha: 641f9af * Authored by spalger <email@spalger.com> on 2016-11-23T18:58:21Z **Commit 3:** [renderCounter] unify render counting login into directive * Original sha: 0c084ac * Authored by spalger <email@spalger.com> on 2016-11-23T21:26:44Z **Commit 4:** [docTable] remove unused var * Original sha: 275bf70 * Authored by spalger <email@spalger.com> on 2016-11-23T22:00:52Z
airow
pushed a commit
to airow/kibana
that referenced
this pull request
Feb 16, 2017
Backports PR elastic#9206 **Commit 1:** [docTable/row] delay first render until watchers initialize * Original sha: 4945e08 * Authored by spalger <email@spalger.com> on 2016-11-23T18:57:22Z **Commit 2:** [docTable/row] emit a renderComplete event, count in table directive * Original sha: 641f9af * Authored by spalger <email@spalger.com> on 2016-11-23T18:58:21Z **Commit 3:** [renderCounter] unify render counting login into directive * Original sha: 0c084ac * Authored by spalger <email@spalger.com> on 2016-11-23T21:26:44Z **Commit 4:** [docTable] remove unused var * Original sha: 275bf70 * Authored by spalger <email@spalger.com> on 2016-11-23T22:00:52Z Former-commit-id: 4617e09
acstll
added a commit
that referenced
this pull request
Nov 20, 2025
- `@elastic/eui`: `v109.0.0` ⏩ `v109.1.0` - `@elastic/eslint-plugin-eui`: `v2.5.0` ⏩ `v2.6.0` --- ## Changes - Updated i18n EUI mapping 6cc95b0 - Updated test in Unified Search 668948f ## Package updates ### `@elastic/eui` [`v109.1.0`](https://github.com/elastic/eui/releases/v109.1.0) - Added `--euiBottomBarOffset` CSS variable to `EuiBottomBar` for positioning other fixed elements relative to the bottom bar's height ([#9211](elastic/eui#9211)) - Updated `boxesVertical` icon and restored `checkInCircleFilled`, `errorFilled`, and `warningFilled` icons. ([#9194](elastic/eui#9194)) - Updated `EuiSuperDatePicker` with new time zone information, opt-in via `timeZoneDisplayProps`. ([#9191](elastic/eui#9191)) - Updated the position of `EuiModal` by removing bottom padding in `EuiOverlayMask` ([#9190](elastic/eui#9190)) - Added `EuiPopover` and `EuiToolTip`'s `repositionOnScroll` to `componentDefaults` ([#9152](elastic/eui#9152)) - Updated `EuiSuperDatePicker` with new time window buttons for time shifting and zoom out, opt-in via `showTimeWindowButtons` boolean prop. ([#9151](elastic/eui#9151)) - Added beta prop `hasAriaDisabled` to all base button components: `EuiButton`, `EuiButtonEmpty`, `EuiButtonIcon`, `EuibuttonGroup`, `EuiFilterButton` ([#9201](elastic/eui#9201)) - Added `euiDisabledSelector` variable that combines CSS selectors `:disabled` and `[aria-disabled="true"]` ([#9201](elastic/eui#9201)) - Added custom test matchers that check for both `disabled` and `aria-disabled` attributes: ([#9201](elastic/eui#9201)) - React testing Library: `.toBeEuiDisabled()` - Enzyme: `.toHaveEuiDisabledProp()` - Cypress: `should('be.euiDisabled)` **Bug fixes** - Fixed unexpected duplicate columns in `EuiDataGrid` crashing the column sorting by removing duplicate columns entirely ([#9209](elastic/eui#9209)) - Fixed a visual bug in `EuiTable` where long table row content would be cut off on mobile screens ([#9206](elastic/eui#9206)) - Fixed virtualized `EuiCodeBlock` rendering blank lines when content updates if scrolled. ([#9196](elastic/eui#9196)) - Fixed `EuiButtonGroup` button sizing to ensure square buttons when used with `isIconOnly=true` ([#9170](elastic/eui#9170)) **Accessibility** - Fixed an issue where portalled components like `EuiPopover` were not included in `EuiFlyout`'s focus trap through `includeSelectorInFocusTrap`, making them inaccessible to keyboard users ([#9103](elastic/eui#9103)) ### `@elastic/eslint-plugin-eui` [`v2.6.0`](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2025.md#v260) - Added new `require-table-caption` rule. ([#9168](elastic/eui#9168)) --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
andrimal
pushed a commit
to andrimal/kibana
that referenced
this pull request
Nov 20, 2025
- `@elastic/eui`: `v109.0.0` ⏩ `v109.1.0` - `@elastic/eslint-plugin-eui`: `v2.5.0` ⏩ `v2.6.0` --- ## Changes - Updated i18n EUI mapping 6cc95b0 - Updated test in Unified Search 668948f ## Package updates ### `@elastic/eui` [`v109.1.0`](https://github.com/elastic/eui/releases/v109.1.0) - Added `--euiBottomBarOffset` CSS variable to `EuiBottomBar` for positioning other fixed elements relative to the bottom bar's height ([elastic#9211](elastic/eui#9211)) - Updated `boxesVertical` icon and restored `checkInCircleFilled`, `errorFilled`, and `warningFilled` icons. ([elastic#9194](elastic/eui#9194)) - Updated `EuiSuperDatePicker` with new time zone information, opt-in via `timeZoneDisplayProps`. ([elastic#9191](elastic/eui#9191)) - Updated the position of `EuiModal` by removing bottom padding in `EuiOverlayMask` ([elastic#9190](elastic/eui#9190)) - Added `EuiPopover` and `EuiToolTip`'s `repositionOnScroll` to `componentDefaults` ([elastic#9152](elastic/eui#9152)) - Updated `EuiSuperDatePicker` with new time window buttons for time shifting and zoom out, opt-in via `showTimeWindowButtons` boolean prop. ([elastic#9151](elastic/eui#9151)) - Added beta prop `hasAriaDisabled` to all base button components: `EuiButton`, `EuiButtonEmpty`, `EuiButtonIcon`, `EuibuttonGroup`, `EuiFilterButton` ([elastic#9201](elastic/eui#9201)) - Added `euiDisabledSelector` variable that combines CSS selectors `:disabled` and `[aria-disabled="true"]` ([elastic#9201](elastic/eui#9201)) - Added custom test matchers that check for both `disabled` and `aria-disabled` attributes: ([elastic#9201](elastic/eui#9201)) - React testing Library: `.toBeEuiDisabled()` - Enzyme: `.toHaveEuiDisabledProp()` - Cypress: `should('be.euiDisabled)` **Bug fixes** - Fixed unexpected duplicate columns in `EuiDataGrid` crashing the column sorting by removing duplicate columns entirely ([elastic#9209](elastic/eui#9209)) - Fixed a visual bug in `EuiTable` where long table row content would be cut off on mobile screens ([elastic#9206](elastic/eui#9206)) - Fixed virtualized `EuiCodeBlock` rendering blank lines when content updates if scrolled. ([elastic#9196](elastic/eui#9196)) - Fixed `EuiButtonGroup` button sizing to ensure square buttons when used with `isIconOnly=true` ([elastic#9170](elastic/eui#9170)) **Accessibility** - Fixed an issue where portalled components like `EuiPopover` were not included in `EuiFlyout`'s focus trap through `includeSelectorInFocusTrap`, making them inaccessible to keyboard users ([elastic#9103](elastic/eui#9103)) ### `@elastic/eslint-plugin-eui` [`v2.6.0`](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2025.md#v260) - Added new `require-table-caption` rule. ([elastic#9168](elastic/eui#9168)) --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
eokoneyo
pushed a commit
to eokoneyo/kibana
that referenced
this pull request
Dec 2, 2025
- `@elastic/eui`: `v109.0.0` ⏩ `v109.1.0` - `@elastic/eslint-plugin-eui`: `v2.5.0` ⏩ `v2.6.0` --- ## Changes - Updated i18n EUI mapping 6cc95b0 - Updated test in Unified Search 668948f ## Package updates ### `@elastic/eui` [`v109.1.0`](https://github.com/elastic/eui/releases/v109.1.0) - Added `--euiBottomBarOffset` CSS variable to `EuiBottomBar` for positioning other fixed elements relative to the bottom bar's height ([elastic#9211](elastic/eui#9211)) - Updated `boxesVertical` icon and restored `checkInCircleFilled`, `errorFilled`, and `warningFilled` icons. ([elastic#9194](elastic/eui#9194)) - Updated `EuiSuperDatePicker` with new time zone information, opt-in via `timeZoneDisplayProps`. ([elastic#9191](elastic/eui#9191)) - Updated the position of `EuiModal` by removing bottom padding in `EuiOverlayMask` ([elastic#9190](elastic/eui#9190)) - Added `EuiPopover` and `EuiToolTip`'s `repositionOnScroll` to `componentDefaults` ([elastic#9152](elastic/eui#9152)) - Updated `EuiSuperDatePicker` with new time window buttons for time shifting and zoom out, opt-in via `showTimeWindowButtons` boolean prop. ([elastic#9151](elastic/eui#9151)) - Added beta prop `hasAriaDisabled` to all base button components: `EuiButton`, `EuiButtonEmpty`, `EuiButtonIcon`, `EuibuttonGroup`, `EuiFilterButton` ([elastic#9201](elastic/eui#9201)) - Added `euiDisabledSelector` variable that combines CSS selectors `:disabled` and `[aria-disabled="true"]` ([elastic#9201](elastic/eui#9201)) - Added custom test matchers that check for both `disabled` and `aria-disabled` attributes: ([elastic#9201](elastic/eui#9201)) - React testing Library: `.toBeEuiDisabled()` - Enzyme: `.toHaveEuiDisabledProp()` - Cypress: `should('be.euiDisabled)` **Bug fixes** - Fixed unexpected duplicate columns in `EuiDataGrid` crashing the column sorting by removing duplicate columns entirely ([elastic#9209](elastic/eui#9209)) - Fixed a visual bug in `EuiTable` where long table row content would be cut off on mobile screens ([elastic#9206](elastic/eui#9206)) - Fixed virtualized `EuiCodeBlock` rendering blank lines when content updates if scrolled. ([elastic#9196](elastic/eui#9196)) - Fixed `EuiButtonGroup` button sizing to ensure square buttons when used with `isIconOnly=true` ([elastic#9170](elastic/eui#9170)) **Accessibility** - Fixed an issue where portalled components like `EuiPopover` were not included in `EuiFlyout`'s focus trap through `includeSelectorInFocusTrap`, making them inaccessible to keyboard users ([elastic#9103](elastic/eui#9103)) ### `@elastic/eslint-plugin-eui` [`v2.6.0`](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2025.md#v260) - Added new `require-table-caption` rule. ([elastic#9168](elastic/eui#9168)) --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements a
render-counterdirective that listens forrenderCompleteevents on it's element and tracks the number of events it sees.This directive is attached to elements where we want to capture the render count, including the
<doc-table>and<visualize>directives in discover and visualize.If the render counter should be disabled, access it's controller and call it's disabled method like the
<visualize>directive does.