Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Lens][Agg based table]Navigate to lens for agg based table vis (#140791
) * Removed console.log. * Other aggs to formula convertion added. * Filter ratio added. * Add XY Configuration * Added last_value convertion. * Updated ColumnWithMeta types. * Fixed for loop. * Added StaticValue convertion. * Added default agg convertion. * Add filters column * Refactored filter part. * Added meta to all the cols. * Fixed problem with columns. * Added date_histogram column, fixed layer configuration * Added terms support. * Refactored. * Refactored for consistancy. * Removed `getVisualizationSuggestionFromContext` fn. * Added references. * Fixed percentile and percentile ranks. * removed unused return statement. * Refactoring 'getEmptyLayersSuggestionsForVisualizeCharts' method * TimeScaleUnit fix. * Fixed references. * Fixed types. * Fixed terms column * Fixed count custom label. * Fix multi series * Fixed custom labels. * Fixed 'insertReferences' method * Revert "Fixed custom labels." This reverts commit 9bd61fb. * Fixed custom labels. * Fixed filter ratio and derivative metrics * fix last_value and series agg * Added CounterRate formula support. * Fix types * Replaced usage of timeseries. * Added window everywhere. * Add std_deviation and value_count, fix some issues * Fix interval for date_histogram and fix getting filter for metrics and difference * Fix tests for 'getDatasourceSuggestionsForVisualizeCharts' except test for 'format' * Refactored code. * Refactoring 'createNewLayerWithMetricAggregationFromVizEditor' * Removed not used code. * Removed unused import. * Fixed types. * Removed tests with type troubles. * Some code refactoring + formatter. * Removed not used comment. * Added formatter validation. * Added tests for getFormat. * Fix `getFormat` method * createColumn test added. * Added tests for `excludeMetaFromColumn` and `isColumnWithMeta`. * Added tests for counter_rate. * Added tests for cumulative_sum. * Updated cumulative_sum tests. * Added date_histogram tests. * Added filter ratio tests. * Filters test added. * createFormulaColumn test added. * convertMathToFormulaColumn test added. * Added one more case to check. * Added test for convertOtherAggsToFormulaColumn * added more tests for formula. * Added last_value tests. * Added tests for moving average. * Style fix. * Added test for convertMetricAggregationColumnWithoutSpecialParams * Add tests for metrics_helper. Update tests for filter ratio and counter rate formulas * Added tests for convertMetricAggregationToColumn * Added tests for computeParentPipelineColumns * Added tests for convertParentPipelineAggToColumns * Add tests for getParentPipelineSeriesFormula * Added tests for createParentPipelineAggregationColumn * Added tests for isPercentileRanksColumnWithMeta * Added tests for convertToPercentileRankParams * Update and add tests for getSiblingPipelineSeriesFormula * Fixed tests. * Added tests for convertToPercentileRankColumn. * Added tests for convertToPercentileRankColumns. * Added tests for percentile. * Added tests for static_value. * Add tests for isValidMetrics * Added std_deviation tests. * Added tests for terms. * Added tests. * Add tests for getLayers in xy configuration * Rename window to reducedTimeRange * Added test for getBucketsColumns * Fixed tests for parent_pipeline. * Added tests for getValidColumns * Added tests for getMetricsColumns * Removed empty new.index.ts of top_n. * Configuration refactored. * Added tests for getConfigurationForTimeseries and getConfigurationForTopN * Added tests for timeseries/index.ts * Added test for top_n. * Refactored getSuggestionFromConvertToLensContext at suggestion_helpers. * Fix format * Fix types * Remove unused code * Fix tests * Fix bucket columns test * Init comment. Add column and supported metric, update types for vis schemas * Added percentile. * Added percentile_rank. * Add metric column without special params * Added new type for AggParamsMapping. * Added cumulative_sum converter. * Replaced cumulative_sum with common parent_pipeline. * Add sibling pipeline agg and date histogram column converter * Added getColumnsFromVis method. * Fixed formulas nad added support of value_count. * Added navigateToLens functionality to visEditor table. * Fixed eslint errors. * Add convertBucketToColumns and some small updates * Fixed problems with converting. * Fixed Avg. * Added median. * Fixed percentile and percentile_ranks. * Add terms and filters column, fix problem with changing index pattern, refactor sibling pipelline aggs * Fixed std_dev. * update convert to lens for datatable * Fixed dateHistogram labels. * Fix terms converter * Fixed percentile/percentile_ranks/std_deviation. * Fixed sum. * Fixed cumulative_sum with value count. * Fix counter rate metric and remove unused comments * Added validation for *_bucket metrics. * Added timeshift, where it is possible. * Fixed type. * Add support of percentage column for datatable * Fixed formats. * Add trigger for agg based visualizations * Fix formats * Some refactoring * Added configuration. * Fixed suggestions. * Add dropEmptyRowsInDateHistogram param * excluded meta. * Refactored imports. * Fixed label. * Added last_value. * Provide collapseFn for bucket columns * Added percentile/percentile_rank labels fix. * Fix sibling aggs converter * Refactored convertToSchemaConfig * Fixed terms * Fixed problem with showing sub metrics on UI * Moved out convertToSchemaConfig. * Fixed types. * Converted IAggConfig to SchemaConfig. * Fixed pipeline and terms aggs. Added timeShift arg. * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' * Fixed tests * Added support of nested parent pipeline metrics. * Fixed formats. * Fixed cumulative sum by value count. * Fixed percentile and percentile ranks. * Fixed tests. * One more fix. * Fixed timeShift * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' * Fixed std_deviation labels. * Fixed percentage column and labels for sibling pipeline aggs * Fixed getDataSourceInfo method * added track if the rendered table is able to be converted to Lens * Added support of nested parent pipeline aggs. * Fixed unit tests * Fix column order * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' * Added shard_delay to SUPPORTED_AGGREGATIONS array and fixed limits * Fixed mock for xy/vislib unti tests * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' * Small refactoring of getColumnsFromVis. * Refactored for tests purpose. * Added tests for utils. * Added tests for isValidVis. * Added tests for getMetricsWithoutDuplicates * Added tests for sortColumns. * Added getColumnIds. * Added unit tests for table configuration * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' * Added tests for schemas. * Reduced bundle size. * Fixed annotations. * Removed export. * Fixed terms column * Update src/plugins/vis_types/table/public/convert_to_lens/configurations/index.ts Co-authored-by: Marta Bondyra <[email protected]> * Added support of ranges and histograms * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * Added supporting of split series + sibling pipeline aggs * Fix getBucketCollapseFn method * Fixed problem with invalid fields. * Update src/plugins/visualizations/common/convert_to_lens/lib/convert/last_value.ts Co-authored-by: Marta Bondyra <[email protected]> * Fixed problem with removed index pattern. * Fixed types in timeseries supported metrics. * Fixed tests * Provided dataView to all the formula functions. * Added checking field type for formula * Fixed bundle size. Co-authored-by: Yaroslav Kuznietsov <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Joe Reuter <[email protected]> Co-authored-by: Marta Bondyra <[email protected]>
- Loading branch information