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

[Discover] Copy column's display name instead of original name from context menu actions #139615

Merged
merged 3 commits into from
Aug 30, 2022

Conversation

jughosta
Copy link
Contributor

@jughosta jughosta commented Aug 29, 2022

Closes #137635

Summary

This PR copies a column's display name in "Copy name" and "Copy column" actions in columns context menu. Previously it used a column's original name.

Screenshot 2022-08-29 at 10 42 02

Screenshot 2022-08-29 at 10 42 07

Also this PR fixes and makes sure that we show a custom field name in column title instead of an original field name elastic/eui#6013

Screenshot 2022-08-29 at 11 13 12

Checklist

@jughosta jughosta added Feature:Discover Discover Application release_note:fix Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) labels Aug 29, 2022
@jughosta jughosta self-assigned this Aug 29, 2022
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 462.3KB 462.4KB +131.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @jughosta

@jughosta jughosta marked this pull request as ready for review August 29, 2022 11:59
@jughosta jughosta requested a review from a team as a code owner August 29, 2022 11:59
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx for this improvement. tested locally and works as expected 👍

@jughosta jughosta merged commit d431e87 into elastic:main Aug 30, 2022
@jughosta jughosta deleted the 137635-fix-name-copy branch August 30, 2022 09:17
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.4 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 139615

Questions ?

Please refer to the Backport tool documentation

@jughosta
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.4

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

jughosta added a commit to jughosta/kibana that referenced this pull request Aug 30, 2022
…ontext menu actions (elastic#139615)

* [Discover] Copy column's display name instead of original name from context menu actions

* [Discover] Update tests

* [Discover] Update tests

(cherry picked from commit d431e87)

# Conflicts:
#	src/plugins/discover/public/components/discover_grid/discover_grid_columns.tsx
jughosta added a commit that referenced this pull request Aug 30, 2022
…from context menu actions (#139615) (#139702)

* [Discover] Copy column's display name instead of original name from context menu actions (#139615)

* [Discover] Copy column's display name instead of original name from context menu actions

* [Discover] Update tests

* [Discover] Update tests

(cherry picked from commit d431e87)

# Conflicts:
#	src/plugins/discover/public/components/discover_grid/discover_grid_columns.tsx

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

Co-authored-by: kibanamachine <[email protected]>
Mpdreamz pushed a commit to Mpdreamz/kibana that referenced this pull request Sep 6, 2022
…ontext menu actions (elastic#139615)

* [Discover] Copy column's display name instead of original name from context menu actions

* [Discover] Update tests

* [Discover] Update tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) Feature:Discover Discover Application release_note:fix Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.4.1 v8.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom labels don't get copied if user copies from columns
5 participants