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

[TSVB] Enable dual mode, support index patterns and strings #92812

Merged
merged 61 commits into from
Mar 29, 2021
Merged
Show file tree
Hide file tree
Changes from 60 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
6eeeddb
[TSVB] Enable `dual mode`, support index patterns and strings
alexwizp Feb 23, 2021
9218ccc
modify UI
alexwizp Feb 26, 2021
f8cc389
add migration script
alexwizp Feb 26, 2021
725d5e8
refactoring
alexwizp Mar 1, 2021
0f9d8ad
fix CI
alexwizp Mar 1, 2021
6fcdda5
prefill the index pattern name
alexwizp Mar 1, 2021
8a9113d
modify UI
alexwizp Mar 1, 2021
81110ac
Merge remote-tracking branch 'upstream/master' into dual_mode_tsvb_2
alexwizp Mar 1, 2021
eea56c6
modify UI
alexwizp Mar 2, 2021
6993121
Merge remote-tracking branch 'upstream/master' into dual_mode_tsvb_2
alexwizp Mar 2, 2021
5046545
update UI
alexwizp Mar 2, 2021
c41765d
fix functional test
alexwizp Mar 2, 2021
7cb454c
Merge branch 'master' into dual_mode_tsvb_2
kibanamachine Mar 3, 2021
47fc806
some work
alexwizp Mar 3, 2021
fd0d2a1
remove callouts
alexwizp Mar 3, 2021
79343e0
fix rollup test
alexwizp Mar 3, 2021
b438e57
update UI
alexwizp Mar 4, 2021
f41635b
fix typo
alexwizp Mar 4, 2021
62dee42
Merge branch 'master' into dual_mode_tsvb_2
kibanamachine Mar 4, 2021
b58329f
Merge remote-tracking branch 'upstream/master' into dual_mode_tsvb_2
alexwizp Mar 9, 2021
041a73f
add some unit tests
alexwizp Mar 9, 2021
cf1442e
Merge remote-tracking branch 'upstream/master' into dual_mode_tsvb_2
alexwizp Mar 9, 2021
d9271bf
add functional test
alexwizp Mar 9, 2021
ce17244
Merge remote-tracking branch 'upstream/master' into dual_mode_tsvb_2
alexwizp Mar 9, 2021
76c7922
Merge remote-tracking branch 'upstream/master' into dual_mode_tsvb_2
alexwizp Mar 9, 2021
ab38dc3
fix CI
alexwizp Mar 9, 2021
357af2f
correct labels
alexwizp Mar 10, 2021
46c5e56
Merge remote-tracking branch 'upstream/master' into dual_mode_tsvb_2
alexwizp Mar 11, 2021
be8ce17
fix ci group 12
alexwizp Mar 11, 2021
204b652
cleanup interface
alexwizp Mar 11, 2021
e290edf
fix CI
alexwizp Mar 12, 2021
6823b85
cleanup API
alexwizp Mar 12, 2021
7262822
Merge branch 'master' into dual_mode_tsvb_2
kibanamachine Mar 15, 2021
a5b6756
Merge branch 'master' into dual_mode_tsvb_2
kibanamachine Mar 16, 2021
3f1dfbe
Merge remote-tracking branch 'upstream/master' into dual_mode_tsvb_2
alexwizp Mar 16, 2021
d664312
fix some of PR comments
alexwizp Mar 16, 2021
f893afe
Merge remote-tracking branch 'upstream/master' into dual_mode_tsvb_2
alexwizp Mar 17, 2021
61ad553
move index patterns into so references
alexwizp Mar 18, 2021
c13ac4b
Merge branch 'master' into dual_mode_tsvb_2
kibanamachine Mar 18, 2021
4df3d13
remove wrong logic
alexwizp Mar 18, 2021
ecdb580
fix JEST
alexwizp Mar 19, 2021
bf69456
Merge remote-tracking branch 'upstream/master' into dual_mode_tsvb_2
alexwizp Mar 19, 2021
83d958d
fix some ui issues
alexwizp Mar 19, 2021
9fd52a9
update sample data
alexwizp Mar 19, 2021
61392d2
indexPatternObject -> indexPatternValue
alexwizp Mar 20, 2021
82e8a91
Merge branch 'master' into dual_mode_tsvb_2
kibanamachine Mar 22, 2021
21dfcc1
Merge branch 'master' into dual_mode_tsvb_2
kibanamachine Mar 23, 2021
ce806ab
Merge branch 'master' into dual_mode_tsvb_2
kibanamachine Mar 23, 2021
865477a
fix comments
alexwizp Mar 23, 2021
7f93d81
I have a dashboard with two TSVB viz. One with the default (haven't a…
alexwizp Mar 23, 2021
800c0e9
When I am on the string mode and try to write my index, sometimes som…
alexwizp Mar 23, 2021
12ef747
Merge remote-tracking branch 'upstream/master' into dual_mode_tsvb_2
alexwizp Mar 23, 2021
df49b43
fix merge conflicts
alexwizp Mar 23, 2021
47115a0
Does this PR also supports runtime fields? I created one from the edi…
alexwizp Mar 23, 2021
d600f39
Merge remote-tracking branch 'stratoula/master' into dual_mode_tsvb_2
alexwizp Mar 24, 2021
9715acc
fix UI issue
alexwizp Mar 25, 2021
9d7c237
If I create a viz with the string mode and a wildcard e.g. kibana_sam…
alexwizp Mar 25, 2021
9ddf39e
fix import/export refs for dashboard
alexwizp Mar 26, 2021
f882f11
remove MigrationPopover
alexwizp Mar 26, 2021
3416a94
Merge remote-tracking branch 'upstream/master' into dual_mode_tsvb_2
alexwizp Mar 26, 2021
4d5d75b
Merge branch 'master' into dual_mode_tsvb_2
kibanamachine Mar 29, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,26 @@ export const getSavedObjects = (): SavedObject[] => [
defaultMessage: '[eCommerce] Promotion Tracking',
}),
visState:
'{"title":"[eCommerce] Promotion Tracking","type":"metrics","params":{"id":"61ca57f0-469d-11e7-af02-69e470af7417","type":"timeseries","series":[{"id":"ea20ae70-b88d-11e8-a451-f37365e9f268","color":"rgba(240,138,217,1)","split_mode":"everything","metrics":[{"id":"ea20ae71-b88d-11e8-a451-f37365e9f268","type":"sum","field":"taxful_total_price"}],"separate_axis":0,"axis_position":"right","formatter":"number","chart_type":"line","line_width":1,"point_size":1,"fill":"0.7","stacked":"none","filter":"products.product_name:*trouser*","label":"Revenue Trousers","value_template":"${{value}}"},{"id":"062d77b0-b88e-11e8-a451-f37365e9f268","color":"rgba(191,240,129,1)","split_mode":"everything","metrics":[{"id":"062d77b1-b88e-11e8-a451-f37365e9f268","type":"sum","field":"taxful_total_price"}],"separate_axis":0,"axis_position":"right","formatter":"number","chart_type":"line","line_width":1,"point_size":1,"fill":"0.7","stacked":"none","filter":"products.product_name:*watch*","label":"Revenue Watches","value_template":"${{value}}"},{"id":"61ca57f1-469d-11e7-af02-69e470af7417","color":"rgba(23,233,230,1)","split_mode":"everything","metrics":[{"id":"61ca57f2-469d-11e7-af02-69e470af7417","type":"sum","field":"taxful_total_price"}],"separate_axis":0,"axis_position":"right","formatter":"number","chart_type":"line","line_width":1,"point_size":1,"fill":"0.7","stacked":"none","filter":"products.product_name:*bag*","label":"Revenue Bags","value_template":"${{value}}"},{"id":"faa2c170-b88d-11e8-a451-f37365e9f268","color":"rgba(235,186,180,1)","split_mode":"everything","metrics":[{"id":"faa2c171-b88d-11e8-a451-f37365e9f268","type":"sum","field":"taxful_total_price"}],"separate_axis":0,"axis_position":"right","formatter":"number","chart_type":"line","line_width":1,"point_size":1,"fill":"0.7","stacked":"none","filter":"products.product_name:*cocktail dress*","label":"Revenue Cocktail Dresses","value_template":"${{value}}"}],"time_field":"order_date","index_pattern":"kibana_sample_data_ecommerce","interval":">=12h","axis_position":"left","axis_formatter":"number","axis_scale":"normal","show_legend":1,"show_grid":1,"legend_position":"bottom","annotations":[{"fields":"taxful_total_price","template":"Ring the bell! ${{taxful_total_price}}","index_pattern":"kibana_sample_data_ecommerce","query_string":"taxful_total_price:>250","id":"c8c30be0-b88f-11e8-a451-f37365e9f268","color":"rgba(25,77,51,1)","time_field":"order_date","icon":"fa-bell","ignore_global_filters":1,"ignore_panel_filters":1}]},"aggs":[]}',
'{"title":"[eCommerce] Promotion Tracking","type":"metrics","params":{"id":"61ca57f0-469d-11e7-af02-69e470af7417","type":"timeseries","series":[{"id":"ea20ae70-b88d-11e8-a451-f37365e9f268","color":"rgba(240,138,217,1)","split_mode":"everything","metrics":[{"id":"ea20ae71-b88d-11e8-a451-f37365e9f268","type":"sum","field":"taxful_total_price"}],"separate_axis":0,"axis_position":"right","formatter":"number","chart_type":"line","line_width":1,"point_size":1,"fill":"0.7","stacked":"none","filter":"products.product_name:*trouser*","label":"Revenue Trousers","value_template":"${{value}}"},{"id":"062d77b0-b88e-11e8-a451-f37365e9f268","color":"rgba(191,240,129,1)","split_mode":"everything","metrics":[{"id":"062d77b1-b88e-11e8-a451-f37365e9f268","type":"sum","field":"taxful_total_price"}],"separate_axis":0,"axis_position":"right","formatter":"number","chart_type":"line","line_width":1,"point_size":1,"fill":"0.7","stacked":"none","filter":"products.product_name:*watch*","label":"Revenue Watches","value_template":"${{value}}"},{"id":"61ca57f1-469d-11e7-af02-69e470af7417","color":"rgba(23,233,230,1)","split_mode":"everything","metrics":[{"id":"61ca57f2-469d-11e7-af02-69e470af7417","type":"sum","field":"taxful_total_price"}],"separate_axis":0,"axis_position":"right","formatter":"number","chart_type":"line","line_width":1,"point_size":1,"fill":"0.7","stacked":"none","filter":"products.product_name:*bag*","label":"Revenue Bags","value_template":"${{value}}"},{"id":"faa2c170-b88d-11e8-a451-f37365e9f268","color":"rgba(235,186,180,1)","split_mode":"everything","metrics":[{"id":"faa2c171-b88d-11e8-a451-f37365e9f268","type":"sum","field":"taxful_total_price"}],"separate_axis":0,"axis_position":"right","formatter":"number","chart_type":"line","line_width":1,"point_size":1,"fill":"0.7","stacked":"none","filter":"products.product_name:*cocktail dress*","label":"Revenue Cocktail Dresses","value_template":"${{value}}"}],"time_field":"order_date","index_pattern_ref_name":"ref_1_index_pattern","interval":">=12h","use_kibana_indexes":true,"axis_position":"left","axis_formatter":"number","axis_scale":"normal","show_legend":1,"show_grid":1,"legend_position":"bottom","annotations":[{"fields":"taxful_total_price","template":"Ring the bell! ${{taxful_total_price}}","index_pattern_ref_name":"ref_2_index_pattern","query_string":"taxful_total_price:>250","id":"c8c30be0-b88f-11e8-a451-f37365e9f268","color":"rgba(25,77,51,1)","time_field":"order_date","icon":"fa-bell","ignore_global_filters":1,"ignore_panel_filters":1}]},"aggs":[]}',
uiStateJSON: '{}',
description: '',
version: 1,
kibanaSavedObjectMeta: {
searchSourceJSON: '{"query":{"query":"","language":"kuery"},"filter":[]}',
},
},
references: [],
references: [
{
name: 'ref_1_index_pattern',
type: 'index_pattern',
id: 'ff959d40-b880-11e8-a6d9-e546fe2bba5f',
},
{
name: 'ref_2_index_pattern',
type: 'index_pattern',
id: 'ff959d40-b880-11e8-a6d9-e546fe2bba5f',
},
],
},
{
id: '10f1a240-b891-11e8-a6d9-e546fe2bba5f',
Expand Down Expand Up @@ -152,15 +163,21 @@ export const getSavedObjects = (): SavedObject[] => [
defaultMessage: '[eCommerce] Sold Products per Day',
}),
visState:
'{"title":"[eCommerce] Sold Products per Day","type":"metrics","params":{"id":"61ca57f0-469d-11e7-af02-69e470af7417","type":"gauge","series":[{"id":"61ca57f1-469d-11e7-af02-69e470af7417","color":"#68BC00","split_mode":"everything","metrics":[{"id":"61ca57f2-469d-11e7-af02-69e470af7417","type":"count"}],"separate_axis":0,"axis_position":"right","formatter":"number","chart_type":"line","line_width":1,"point_size":1,"fill":0.5,"stacked":"none","label":"Trxns / day"}],"time_field":"order_date","index_pattern":"kibana_sample_data_ecommerce","interval":"1d","axis_position":"left","axis_formatter":"number","axis_scale":"normal","show_legend":1,"show_grid":1,"gauge_color_rules":[{"value":150,"id":"6da070c0-b891-11e8-b645-195edeb9de84","gauge":"rgba(104,188,0,1)","operator":"gte"},{"value":150,"id":"9b0cdbc0-b891-11e8-b645-195edeb9de84","gauge":"rgba(244,78,59,1)","operator":"lt"}],"gauge_width":"15","gauge_inner_width":10,"gauge_style":"half","filter":"","gauge_max":"300"},"aggs":[]}',
'{"title":"[eCommerce] Sold Products per Day","type":"metrics","params":{"id":"61ca57f0-469d-11e7-af02-69e470af7417","type":"gauge","series":[{"id":"61ca57f1-469d-11e7-af02-69e470af7417","color":"#68BC00","split_mode":"everything","metrics":[{"id":"61ca57f2-469d-11e7-af02-69e470af7417","type":"count"}],"separate_axis":0,"axis_position":"right","formatter":"number","chart_type":"line","line_width":1,"point_size":1,"fill":0.5,"stacked":"none","label":"Trxns / day"}],"time_field":"order_date","index_pattern_ref_name":"ref_1_index_pattern","interval":"1d","axis_position":"left","axis_formatter":"number","axis_scale":"normal","show_legend":1,"show_grid":1,"gauge_color_rules":[{"value":150,"id":"6da070c0-b891-11e8-b645-195edeb9de84","gauge":"rgba(104,188,0,1)","operator":"gte"},{"value":150,"id":"9b0cdbc0-b891-11e8-b645-195edeb9de84","gauge":"rgba(244,78,59,1)","operator":"lt"}],"gauge_width":"15","gauge_inner_width":10,"gauge_style":"half","filter":"","gauge_max":"300","use_kibana_indexes":true},"aggs":[]}',
uiStateJSON: '{}',
description: '',
version: 1,
kibanaSavedObjectMeta: {
searchSourceJSON: '{"query":{"query":"","language":"kuery"},"filter":[]}',
},
},
references: [],
references: [
{
name: 'ref_1_index_pattern',
type: 'index_pattern',
id: 'ff959d40-b880-11e8-a6d9-e546fe2bba5f',
},
],
},
{
id: '4b3ec120-b892-11e8-a6d9-e546fe2bba5f',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,26 @@ export const getSavedObjects = (): SavedObject[] => [
defaultMessage: '[Flights] Delays & Cancellations',
}),
visState:
'{"title":"[Flights] Delays & Cancellations","type":"metrics","params":{"id":"61ca57f0-469d-11e7-af02-69e470af7417","type":"timeseries","series":[{"id":"61ca57f1-469d-11e7-af02-69e470af7417","color":"rgba(0,156,224,1)","split_mode":"everything","metrics":[{"id":"61ca57f2-469d-11e7-af02-69e470af7417","type":"filter_ratio","numerator":"FlightDelay:true"}],"separate_axis":0,"axis_position":"right","formatter":"percent","chart_type":"line","line_width":"2","point_size":"0","fill":0.5,"stacked":"none","label":"Percent Delays"}],"time_field":"timestamp","index_pattern":"kibana_sample_data_flights","interval":">=1h","axis_position":"left","axis_formatter":"number","show_legend":1,"show_grid":1,"annotations":[{"fields":"FlightDelay,Cancelled,Carrier","template":"{{Carrier}}: Flight Delayed and Cancelled!","index_pattern":"kibana_sample_data_flights","query_string":"FlightDelay:true AND Cancelled:true","id":"53b7dff0-4c89-11e8-a66a-6989ad5a0a39","color":"rgba(0,98,177,1)","time_field":"timestamp","icon":"fa-exclamation-triangle","ignore_global_filters":1,"ignore_panel_filters":1}],"legend_position":"bottom"},"aggs":[]}',
'{"title":"[Flights] Delays & Cancellations","type":"metrics","params":{"id":"61ca57f0-469d-11e7-af02-69e470af7417","type":"timeseries","series":[{"id":"61ca57f1-469d-11e7-af02-69e470af7417","color":"rgba(0,156,224,1)","split_mode":"everything","metrics":[{"id":"61ca57f2-469d-11e7-af02-69e470af7417","type":"filter_ratio","numerator":"FlightDelay:true"}],"separate_axis":0,"axis_position":"right","formatter":"percent","chart_type":"line","line_width":"2","point_size":"0","fill":0.5,"stacked":"none","label":"Percent Delays"}],"time_field":"timestamp","index_pattern_ref_name":"ref_1_index_pattern","interval":">=1h","axis_position":"left","axis_formatter":"number","show_legend":1,"show_grid":1,"annotations":[{"fields":"FlightDelay,Cancelled,Carrier","template":"{{Carrier}}: Flight Delayed and Cancelled!","index_pattern_ref_name":"ref_2_index_pattern","query_string":"FlightDelay:true AND Cancelled:true","id":"53b7dff0-4c89-11e8-a66a-6989ad5a0a39","color":"rgba(0,98,177,1)","time_field":"timestamp","icon":"fa-exclamation-triangle","ignore_global_filters":1,"ignore_panel_filters":1}],"legend_position":"bottom","use_kibana_indexes":true},"aggs":[]}',
uiStateJSON: '{}',
description: '',
version: 1,
kibanaSavedObjectMeta: {
searchSourceJSON: '{}',
},
},
references: [],
references: [
{
name: 'ref_1_index_pattern',
type: 'index_pattern',
id: 'd3d7af60-4c81-11e8-b3d7-01146121b73d'
},
{
name: 'ref_2_index_pattern',
type: 'index_pattern',
id: 'd3d7af60-4c81-11e8-b3d7-01146121b73d'
}
]
},
{
id: '9886b410-4c8b-11e8-b3d7-01146121b73d',
Expand Down
Loading