Commit 6bbe8ef
[Ingest Pipelines] Add structure tree to details flyout (elastic#228792)
Addresses elastic#227405
https://github.com/user-attachments/assets/1473ade0-19cb-4892-a64a-2ed4374e3879
## Summary
This PR adds the Ingest pipeline structure tree to the ingest pipelines
details flyout.
**How to test:**
1. Run the following requests in Console (you can run them all at once)
to create a sample ingest pipeline tree:
<details>
<summary>Console requests:</summary>
```
PUT _ingest/pipeline/level-8-1
{
"processors": []
}
PUT _ingest/pipeline/level-8-2
{
"processors": []
}
PUT _ingest/pipeline/level-7-1
{
"processors": [
{
"pipeline": {
"name": "level-8-1"
}
},
{
"pipeline": {
"name": "level-8-2"
}
}
]
}
PUT _ingest/pipeline/level-7-2
{
"processors": [
{
"pipeline": {
"name": "level-8-1"
}
},
{
"pipeline": {
"name": "level-8-2"
}
}
]
}
PUT _ingest/pipeline/level-6-1
{
"processors": [
{
"pipeline": {
"name": "level-7-1"
}
},
{
"pipeline": {
"name": "level-7-2"
}
}
]
}
PUT _ingest/pipeline/level-6-2
{
"processors": [
{
"pipeline": {
"name": "level-7-1"
}
},
{
"pipeline": {
"name": "level-7-2"
}
}
]
}
PUT _ingest/pipeline/level-5-1
{
"processors": [
{
"pipeline": {
"name": "level-6-1"
}
},
{
"pipeline": {
"name": "level-6-2"
}
}
]
}
PUT _ingest/pipeline/level-5-2
{
"processors": [
{
"pipeline": {
"name": "level-6-1"
}
},
{
"pipeline": {
"name": "level-6-2"
}
}
]
}
PUT _ingest/pipeline/level-4-1
{
"processors": [
{
"pipeline": {
"name": "level-5-1"
}
},
{
"pipeline": {
"name": "level-5-2"
}
}
]
}
PUT _ingest/pipeline/level-4-2
{
"processors": [
{
"pipeline": {
"name": "level-5-1"
}
},
{
"pipeline": {
"name": "level-5-2"
}
}
]
}
PUT _ingest/pipeline/level-3-1
{
"processors": [
{
"pipeline": {
"name": "level-4-1"
}
},
{
"pipeline": {
"name": "level-4-2"
}
}
]
}
PUT _ingest/pipeline/level-3-2
{
"processors": [
{
"pipeline": {
"name": "level-4-1"
}
},
{
"pipeline": {
"name": "level-4-2"
}
}
]
}
PUT _ingest/pipeline/level-2-1
{
"processors": [
{
"pipeline": {
"name": "level-3-1"
}
},
{
"pipeline": {
"name": "level-3-2"
}
}
]
}
PUT _ingest/pipeline/level-2-2
{
"processors": [
{
"pipeline": {
"name": "level-3-1"
}
},
{
"pipeline": {
"name": "level-3-2"
}
}
]
}
PUT _ingest/pipeline/level-1
{
"processors": [
{
"pipeline": {
"name": "level-2-1"
}
},
{
"pipeline": {
"name": "level-2-2"
}
},
{
"pipeline": {
"name": "non-existing"
}
}
]
}
```
</details>
2. Go to Ingest pipelines and click on any of the created pipelines.
Verify that the tree is working as expected. Verify that the footer
action buttons also work as expected (edit/clone/delete)
3. Verify that tree view is only displayed if the root has children.
4. Verify that navigating to a non-existing pipeline through the URL
opens the flyout with an error banner and without the tree.
5. Verify that when you open a non-exisisting pipeline by clicking on a
tree node, a warning banner is displayed.
6. Verify that in smaller screens only one panel is displayed at a time.
7. To test in Streams, enable streams with `POST
kbn:/api/streams/_enable` and create sample date with `node
scripts/synthtrace.js sample_logs --live
--kibana=http://elastic:changeme@localhost:5601
--target=http://elastic:changeme@localhost:9200 --liveBucketSize=1000`
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>1 parent a00149d commit 6bbe8ef
32 files changed
Lines changed: 1060 additions & 658 deletions
File tree
- x-pack/platform
- plugins
- private/translations/translations
- test/functional
- apps/ingest_pipelines
- page_objects
Lines changed: 48 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | | - | |
52 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
60 | | - | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | | - | |
64 | | - | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
68 | | - | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
76 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
77 | 86 | | |
78 | 87 | | |
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
82 | | - | |
| 91 | + | |
| 92 | + | |
83 | 93 | | |
84 | 94 | | |
85 | 95 | | |
| |||
100 | 110 | | |
101 | 111 | | |
102 | 112 | | |
103 | | - | |
| 113 | + | |
104 | 114 | | |
105 | 115 | | |
106 | 116 | | |
| |||
112 | 122 | | |
113 | 123 | | |
114 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
115 | 150 | | |
Lines changed: 17 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
| 41 | + | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
| 44 | + | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| |||
Lines changed: 39 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 34 | + | |
| 35 | + | |
40 | 36 | | |
41 | 37 | | |
42 | | - | |
43 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
55 | 67 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
Lines changed: 8 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
0 commit comments