Skip to content

Fix label on scripted field date histograms#8646

Merged
Bargs merged 1 commit intoelastic:masterfrom
Bargs:loMakeLabel
Oct 13, 2016
Merged

Fix label on scripted field date histograms#8646
Bargs merged 1 commit intoelastic:masterfrom
Bargs:loMakeLabel

Conversation

@Bargs
Copy link
Contributor

@Bargs Bargs commented Oct 12, 2016

Now that we support Painless scripted fields users can create scripted
date fields, and thus scripted date histograms. The label making method
for the date histogram agg was getting the field name in a way that was
incompatible with scripted fields, so I've added some fallback code for
that scenario. I looked through the rest of the makeLabel methods on all
the other aggs and they all correctly access the field displayName
already so this should only need fixed for date histograms.

Based on #8638, now with more lodash for safer access

Fixes elastic#8632

Now that we support Painless scripted fields users can create scripted
date fields, and thus scripted date histograms. The label making method
for the date histogram agg was getting the field name in a way that was
incompatible with scripted fields, so I've added some fallback code for
that scenario. I looked through the rest of the makeLabel methods on all
the other aggs and they all correctly access the field displayName
already so this should only need fixed for date histograms.

Now with more lodash for safer access

Fixes elastic#8632
@epixa
Copy link
Contributor

epixa commented Oct 12, 2016

LGTM

@Bargs Bargs merged commit ca2e710 into elastic:master Oct 13, 2016
elastic-jasper added a commit that referenced this pull request Oct 13, 2016
---------

**Commit 1:**
Fix label on scripted field date histograms

Now that we support Painless scripted fields users can create scripted
date fields, and thus scripted date histograms. The label making method
for the date histogram agg was getting the field name in a way that was
incompatible with scripted fields, so I've added some fallback code for
that scenario. I looked through the rest of the makeLabel methods on all
the other aggs and they all correctly access the field displayName
already so this should only need fixed for date histograms.

Now with more lodash for safer access

Fixes elastic#8632

* Original sha: fc635bc
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-12T22:30:15Z
elastic-jasper added a commit that referenced this pull request Oct 13, 2016
---------

**Commit 1:**
Fix label on scripted field date histograms

Now that we support Painless scripted fields users can create scripted
date fields, and thus scripted date histograms. The label making method
for the date histogram agg was getting the field name in a way that was
incompatible with scripted fields, so I've added some fallback code for
that scenario. I looked through the rest of the makeLabel methods on all
the other aggs and they all correctly access the field displayName
already so this should only need fixed for date histograms.

Now with more lodash for safer access

Fixes elastic#8632

* Original sha: fc635bc
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-12T22:30:15Z
Bargs added a commit that referenced this pull request Oct 13, 2016
---------

**Commit 1:**
Fix label on scripted field date histograms

Now that we support Painless scripted fields users can create scripted
date fields, and thus scripted date histograms. The label making method
for the date histogram agg was getting the field name in a way that was
incompatible with scripted fields, so I've added some fallback code for
that scenario. I looked through the rest of the makeLabel methods on all
the other aggs and they all correctly access the field displayName
already so this should only need fixed for date histograms.

Now with more lodash for safer access

Fixes elastic#8632

* Original sha: fc635bc
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-12T22:30:15Z
Bargs pushed a commit that referenced this pull request Oct 13, 2016
Bargs pushed a commit that referenced this pull request Oct 13, 2016
[backport] PR #8646 to 5.0 - Fix label on scripted field date histograms
@epixa epixa added v5.1.1 and removed v5.1.0 labels Dec 8, 2016
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
---------

**Commit 1:**
Fix label on scripted field date histograms

Now that we support Painless scripted fields users can create scripted
date fields, and thus scripted date histograms. The label making method
for the date histogram agg was getting the field name in a way that was
incompatible with scripted fields, so I've added some fallback code for
that scenario. I looked through the rest of the makeLabel methods on all
the other aggs and they all correctly access the field displayName
already so this should only need fixed for date histograms.

Now with more lodash for safer access

Fixes elastic#8632

* Original sha: 613905da363b03c570a016db662bea28d26b6dad [formerly fc635bc]
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-12T22:30:15Z


Former-commit-id: da8f2c3
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
mgadewoll added a commit that referenced this pull request May 6, 2025
`102.0.0` ⏩ `102.1.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

>[!NOTE]
There is also the sibling PR for `8.19` with old Amsterdam theme ready
for review [here](#220049). It
contains the same changes.

## Changes

- Updated test selector (due to changed tooltip placement in
[#8644](elastic/eui#8644))
- snapshot updates

## Package updates

### `@elastic/eui`

#### [`v102.1.0`](https://github.com/elastic/eui/releases/v102.1.0)

- Update `EuiDataGrid` to use `expand` glyph
([#8646](elastic/eui#8646))

**Accessibility**

- Updated `EuiTableHeaderCell` to output `nameTooltip` directly on
sortable cell elements, ensuring tooltips appear on focus
([#8644](elastic/eui#8644))
- Improved the accessibility of `EuiColorPicker` by:
([#8639](elastic/eui#8639))
  - preventing duplicate color output for screen readers
- adding tooltips with visual color labels for the selected colors on
the saturation and hue sliders
  - updated accessible labels and announcements to be more descriptive

**Dependency updates**

- Updated `typescript` to v5.8.3
([#8626](elastic/eui#8626))
mgadewoll added a commit that referenced this pull request May 6, 2025
`102.0.0` ⏩ `102.1.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

>[!IMPORTANT]
This PR is a direct sibling to this [upgrade
PR](#220039) to `main`. The
difference is that it adds a standalone EUI package with the previous
"Amsterdam" theme.
Apart from the theme difference, **there are no further changes added**.

## Changes

- Updated test selector (due to changed tooltip placement in
[#8644](elastic/eui#8644))
- snapshot updates

## Package updates

### `@elastic/eui`

#### [`v102.1.0`](https://github.com/elastic/eui/releases/v102.1.0)

- Update `EuiDataGrid` to use `expand` glyph
([#8646](elastic/eui#8646))

**Accessibility**

- Updated `EuiTableHeaderCell` to output `nameTooltip` directly on
sortable cell elements, ensuring tooltips appear on focus
([#8644](elastic/eui#8644))
- Improved the accessibility of `EuiColorPicker` by:
([#8639](elastic/eui#8639))
  - preventing duplicate color output for screen readers
- adding tooltips with visual color labels for the selected colors on
the saturation and hue sliders
  - updated accessible labels and announcements to be more descriptive

**Dependency updates**

- Updated `typescript` to v5.8.3
([#8626](elastic/eui#8626))
mgadewoll added a commit to mgadewoll/kibana that referenced this pull request May 6, 2025
`102.0.0` ⏩ `102.1.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

>[!NOTE]
There is also the sibling PR for `8.19` with old Amsterdam theme ready
for review [here](elastic#220049). It
contains the same changes.

## Changes

- Updated test selector (due to changed tooltip placement in
[elastic#8644](elastic/eui#8644))
- snapshot updates

## Package updates

### `@elastic/eui`

#### [`v102.1.0`](https://github.com/elastic/eui/releases/v102.1.0)

- Update `EuiDataGrid` to use `expand` glyph
([elastic#8646](elastic/eui#8646))

**Accessibility**

- Updated `EuiTableHeaderCell` to output `nameTooltip` directly on
sortable cell elements, ensuring tooltips appear on focus
([elastic#8644](elastic/eui#8644))
- Improved the accessibility of `EuiColorPicker` by:
([elastic#8639](elastic/eui#8639))
  - preventing duplicate color output for screen readers
- adding tooltips with visual color labels for the selected colors on
the saturation and hue sliders
  - updated accessible labels and announcements to be more descriptive

**Dependency updates**

- Updated `typescript` to v5.8.3
([elastic#8626](elastic/eui#8626))

(cherry picked from commit bca8299)

# Conflicts:
#	x-pack/solutions/observability/plugins/infra/public/components/asset_details/tabs/processes/__snapshots__/processes_table.test.tsx.snap
mgadewoll added a commit that referenced this pull request May 6, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [Upgrade EUI to v102.1.0
(#220039)](#220039)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Lene
Gadewoll","email":"lene.gadewoll@elastic.co"},"sourceCommit":{"committedDate":"2025-05-06T14:38:55Z","message":"Upgrade
EUI to v102.1.0 (#220039)\n\n`102.0.0` ⏩ `102.1.0`\n\n[Questions? Please
see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n>[!NOTE]\nThere
is also the sibling PR for `8.19` with old Amsterdam theme ready\nfor
review [here](#220049).
It\ncontains the same changes.\n\n## Changes\n\n- Updated test selector
(due to changed tooltip placement
in\n[#8644](https://github.com/elastic/eui/pull/8644))\n- snapshot
updates\n\n## Package updates\n\n### `@elastic/eui`\n\n####
[`v102.1.0`](https://github.com/elastic/eui/releases/v102.1.0)\n\n-
Update `EuiDataGrid` to use `expand`
glyph\n([#8646](https://github.com/elastic/eui/pull/8646))\n\n**Accessibility**\n\n-
Updated `EuiTableHeaderCell` to output `nameTooltip` directly
on\nsortable cell elements, ensuring tooltips appear on
focus\n([#8644](https://github.com/elastic/eui/pull/8644))\n- Improved
the accessibility of `EuiColorPicker`
by:\n([#8639](https://github.com/elastic/eui/pull/8639))\n - preventing
duplicate color output for screen readers\n- adding tooltips with visual
color labels for the selected colors on\nthe saturation and hue
sliders\n - updated accessible labels and announcements to be more
descriptive\n\n**Dependency updates**\n\n- Updated `typescript` to
v5.8.3\n([#8626](https://github.com/elastic/eui/pull/8626))","sha":"bca8299927ef023215494fb7bc21ad90891ffc54","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","EUI","backport:prev-minor","v9.1.0","v9.0.1"],"title":"Upgrade
EUI to
v102.1.0","number":220039,"url":"https://github.com/elastic/kibana/pull/220039","mergeCommit":{"message":"Upgrade
EUI to v102.1.0 (#220039)\n\n`102.0.0` ⏩ `102.1.0`\n\n[Questions? Please
see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n>[!NOTE]\nThere
is also the sibling PR for `8.19` with old Amsterdam theme ready\nfor
review [here](#220049).
It\ncontains the same changes.\n\n## Changes\n\n- Updated test selector
(due to changed tooltip placement
in\n[#8644](https://github.com/elastic/eui/pull/8644))\n- snapshot
updates\n\n## Package updates\n\n### `@elastic/eui`\n\n####
[`v102.1.0`](https://github.com/elastic/eui/releases/v102.1.0)\n\n-
Update `EuiDataGrid` to use `expand`
glyph\n([#8646](https://github.com/elastic/eui/pull/8646))\n\n**Accessibility**\n\n-
Updated `EuiTableHeaderCell` to output `nameTooltip` directly
on\nsortable cell elements, ensuring tooltips appear on
focus\n([#8644](https://github.com/elastic/eui/pull/8644))\n- Improved
the accessibility of `EuiColorPicker`
by:\n([#8639](https://github.com/elastic/eui/pull/8639))\n - preventing
duplicate color output for screen readers\n- adding tooltips with visual
color labels for the selected colors on\nthe saturation and hue
sliders\n - updated accessible labels and announcements to be more
descriptive\n\n**Dependency updates**\n\n- Updated `typescript` to
v5.8.3\n([#8626](https://github.com/elastic/eui/pull/8626))","sha":"bca8299927ef023215494fb7bc21ad90891ffc54"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/220039","number":220039,"mergeCommit":{"message":"Upgrade
EUI to v102.1.0 (#220039)\n\n`102.0.0` ⏩ `102.1.0`\n\n[Questions? Please
see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n>[!NOTE]\nThere
is also the sibling PR for `8.19` with old Amsterdam theme ready\nfor
review [here](#220049).
It\ncontains the same changes.\n\n## Changes\n\n- Updated test selector
(due to changed tooltip placement
in\n[#8644](https://github.com/elastic/eui/pull/8644))\n- snapshot
updates\n\n## Package updates\n\n### `@elastic/eui`\n\n####
[`v102.1.0`](https://github.com/elastic/eui/releases/v102.1.0)\n\n-
Update `EuiDataGrid` to use `expand`
glyph\n([#8646](https://github.com/elastic/eui/pull/8646))\n\n**Accessibility**\n\n-
Updated `EuiTableHeaderCell` to output `nameTooltip` directly
on\nsortable cell elements, ensuring tooltips appear on
focus\n([#8644](https://github.com/elastic/eui/pull/8644))\n- Improved
the accessibility of `EuiColorPicker`
by:\n([#8639](https://github.com/elastic/eui/pull/8639))\n - preventing
duplicate color output for screen readers\n- adding tooltips with visual
color labels for the selected colors on\nthe saturation and hue
sliders\n - updated accessible labels and announcements to be more
descriptive\n\n**Dependency updates**\n\n- Updated `typescript` to
v5.8.3\n([#8626](https://github.com/elastic/eui/pull/8626))","sha":"bca8299927ef023215494fb7bc21ad90891ffc54"}},{"branch":"9.0","label":"v9.0.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
akowalska622 pushed a commit to akowalska622/kibana that referenced this pull request May 29, 2025
`102.0.0` ⏩ `102.1.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

>[!NOTE]
There is also the sibling PR for `8.19` with old Amsterdam theme ready
for review [here](elastic#220049). It
contains the same changes.

## Changes

- Updated test selector (due to changed tooltip placement in
[elastic#8644](elastic/eui#8644))
- snapshot updates

## Package updates

### `@elastic/eui`

#### [`v102.1.0`](https://github.com/elastic/eui/releases/v102.1.0)

- Update `EuiDataGrid` to use `expand` glyph
([elastic#8646](elastic/eui#8646))

**Accessibility**

- Updated `EuiTableHeaderCell` to output `nameTooltip` directly on
sortable cell elements, ensuring tooltips appear on focus
([elastic#8644](elastic/eui#8644))
- Improved the accessibility of `EuiColorPicker` by:
([elastic#8639](elastic/eui#8639))
  - preventing duplicate color output for screen readers
- adding tooltips with visual color labels for the selected colors on
the saturation and hue sliders
  - updated accessible labels and announcements to be more descriptive

**Dependency updates**

- Updated `typescript` to v5.8.3
([elastic#8626](elastic/eui#8626))
qn895 pushed a commit to qn895/kibana that referenced this pull request Jun 3, 2025
`102.0.0` ⏩ `102.1.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

>[!NOTE]
There is also the sibling PR for `8.19` with old Amsterdam theme ready
for review [here](elastic#220049). It
contains the same changes.

## Changes

- Updated test selector (due to changed tooltip placement in
[elastic#8644](elastic/eui#8644))
- snapshot updates

## Package updates

### `@elastic/eui`

#### [`v102.1.0`](https://github.com/elastic/eui/releases/v102.1.0)

- Update `EuiDataGrid` to use `expand` glyph
([elastic#8646](elastic/eui#8646))

**Accessibility**

- Updated `EuiTableHeaderCell` to output `nameTooltip` directly on
sortable cell elements, ensuring tooltips appear on focus
([elastic#8644](elastic/eui#8644))
- Improved the accessibility of `EuiColorPicker` by:
([elastic#8639](elastic/eui#8639))
  - preventing duplicate color output for screen readers
- adding tooltips with visual color labels for the selected colors on
the saturation and hue sliders
  - updated accessible labels and announcements to be more descriptive

**Dependency updates**

- Updated `typescript` to v5.8.3
([elastic#8626](elastic/eui#8626))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scripted date fields have undefined labels in charts

2 participants

Comments