-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[dashboard] fix Inspect panel action displays untitled instead of panel title #177516
Conversation
Pinging @elastic/kibana-presentation (Team:Presentation) |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM! Code only review.
expect(getPanelTitle(api)).toBe('default title'); | ||
}); | ||
|
||
test('should return default title when title is empty string', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to call this out with a test!
…el title (elastic#177516) Fixes elastic#176870 PR provides a utility method for fetching title that falls back to default title when title is not provided. (cherry picked from commit c747a3b)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
… of panel title (#177516) (#177610) # Backport This will backport the following commits from `main` to `8.13`: - [[dashboard] fix Inspect panel action displays untitled instead of panel title (#177516)](#177516) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Nathan Reese","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-02-22T15:27:12Z","message":"[dashboard] fix Inspect panel action displays untitled instead of panel title (#177516)\n\nFixes https://github.com/elastic/kibana/issues/176870\r\n\r\nPR provides a utility method for fetching title that falls back to\r\ndefault title when title is not provided.","sha":"c747a3b35dc086bfa3b8a1cbe67e276558c9a1f4","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Presentation","release_note:skip","Feature:Drilldowns","v8.13.0","project:embeddableRebuild","v8.14.0"],"title":"[dashboard] fix Inspect panel action displays untitled instead of panel title","number":177516,"url":"https://github.com/elastic/kibana/pull/177516","mergeCommit":{"message":"[dashboard] fix Inspect panel action displays untitled instead of panel title (#177516)\n\nFixes https://github.com/elastic/kibana/issues/176870\r\n\r\nPR provides a utility method for fetching title that falls back to\r\ndefault title when title is not provided.","sha":"c747a3b35dc086bfa3b8a1cbe67e276558c9a1f4"}},"sourceBranch":"main","suggestedTargetBranches":["8.13"],"targetPullRequestStates":[{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/177516","number":177516,"mergeCommit":{"message":"[dashboard] fix Inspect panel action displays untitled instead of panel title (#177516)\n\nFixes https://github.com/elastic/kibana/issues/176870\r\n\r\nPR provides a utility method for fetching title that falls back to\r\ndefault title when title is not provided.","sha":"c747a3b35dc086bfa3b8a1cbe67e276558c9a1f4"}}]}] BACKPORT--> Co-authored-by: Nathan Reese <[email protected]>
…el title (elastic#177516) Fixes elastic#176870 PR provides a utility method for fetching title that falls back to default title when title is not provided.
Fixes #176870
PR provides a utility method for fetching title that falls back to default title when title is not provided.