Skip to content

Commit

Permalink
[8.6] [ML] Transforms: Fix transforms JSON display (elastic#147996) (e…
Browse files Browse the repository at this point in the history
…lastic#148551)

# Backport

This will backport the following commits from `main` to `8.6`:
- [[ML] Transforms: Fix transforms JSON display
(elastic#147996)](elastic#147996)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"James
Gowdy","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-01-09T14:58:56Z","message":"[ML]
Transforms: Fix transforms JSON display (elastic#147996)\n\nFixing a typo in
the code from when the JSON editor
was\r\n[converted](elastic#108310) from
using\r\n`EuiCodeEditor`\r\n\r\n**Before**\r\n\r\n![image](https://user-images.githubusercontent.com/22172091/209140230-fcb3fff5-0040-487a-bffc-581a8fe2f4e4.png)\r\n\r\n**After**\r\n\r\n![image](https://user-images.githubusercontent.com/22172091/209140326-98eecef0-d9bf-4145-8342-788b4166b28d.png)","sha":"ba06f687522fed393036ff01d9230f341e37d710","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix",":ml","Feature:Transforms","v8.6.0","v8.7.0"],"number":147996,"url":"https://github.com/elastic/kibana/pull/147996","mergeCommit":{"message":"[ML]
Transforms: Fix transforms JSON display (elastic#147996)\n\nFixing a typo in
the code from when the JSON editor
was\r\n[converted](elastic#108310) from
using\r\n`EuiCodeEditor`\r\n\r\n**Before**\r\n\r\n![image](https://user-images.githubusercontent.com/22172091/209140230-fcb3fff5-0040-487a-bffc-581a8fe2f4e4.png)\r\n\r\n**After**\r\n\r\n![image](https://user-images.githubusercontent.com/22172091/209140326-98eecef0-d9bf-4145-8342-788b4166b28d.png)","sha":"ba06f687522fed393036ff01d9230f341e37d710"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/147996","number":147996,"mergeCommit":{"message":"[ML]
Transforms: Fix transforms JSON display (elastic#147996)\n\nFixing a typo in
the code from when the JSON editor
was\r\n[converted](elastic#108310) from
using\r\n`EuiCodeEditor`\r\n\r\n**Before**\r\n\r\n![image](https://user-images.githubusercontent.com/22172091/209140230-fcb3fff5-0040-487a-bffc-581a8fe2f4e4.png)\r\n\r\n**After**\r\n\r\n![image](https://user-images.githubusercontent.com/22172091/209140326-98eecef0-d9bf-4145-8342-788b4166b28d.png)","sha":"ba06f687522fed393036ff01d9230f341e37d710"}}]}]
BACKPORT-->

Co-authored-by: James Gowdy <[email protected]>
  • Loading branch information
kibanamachine and jgowdyelastic authored Jan 9, 2023
1 parent c35e1a3 commit 835eeb4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const ExpandedRowJsonPane: FC<Props> = ({ json }) => {
style={{ width: '100%' }}
isCopyable
>
value={JSON.stringify(json, null, 2)}
{JSON.stringify(json, null, 2)}
</EuiCodeBlock>
</EuiFlexItem>
<EuiFlexItem grow={false}>&nbsp;</EuiFlexItem>
Expand Down

0 comments on commit 835eeb4

Please sign in to comment.