kibana/x-pack/plugins/lens/public/indexpattern_datasource
Marco Liberati 97e2dc853b
[Lens] Extend Datasource props validation with VisualizationGroups (#82607)
*  First pass with visualization validation + error messages

* 🔥 Remove indexpattern error handling for now

* 🏷️ Fix type issues

*  Add getErrorMessage test for data table

*  Add tests for pie and metric error messages

* 🌐 Fix i18n checks issues

* 🐛 Fix last issue

*  Add more tests for the XY visualization validation code

* 👌 Included all feedback from first review

* ✏️ Off by one message

* 🌐 Fix i18n duplicate id

* 🌐 Fix last i18n issue

* 🐛 Fixed a hook reflow issue

* ♻️+ Reworked validation flow + tests

* 🏷️ Fix type issue

* 🐛 Improved XY corner cases validation logic

* 🐛 Fix empty datatable scenario

*  +  Improved error messages for invalid datasources + tests

* 🌐 Add missing i18n translation

* 🏷️ Fix type issues

* 🌐 Fix i18n issues

*  Filter out suggestions which fail to build

* 🚚 Migrate datatable validation logic to the building phase, handling it as building state

* 🏷️ Fix type issue

* ✏️ Add comment for future enhancements

* ✏️ Updated comment

* :world_with_meridians: Refactor axis labels

* 🌐 Reworked few validation messages

* 🐛 Fix break down validation + percentage charts

*  Align tests with new validation logic

* ♻️ Fix suggestion panel validation to match main panel

* 🌐 Fix i18n issues

* 🔧 Fix some refs for validation checks in suggestions

* 🐛 Fix missing key prop in multiple errors scenario

* 🐛 Fix swtich issue from XY to partition

* 🌐 Fix i18n messages and aligned tests

* 🐛 Fix suggestions switching bug

* :refactor: Add more validation + refactored validation logic in a single place

* ✏️ Add note about lint hooks disable rule

* 🚨 Fix linting issue

* 🏗️ Add infra API for datasource advanced validation

*  Align tests with new API

*  Fix type issues in tests

* 👌 Early exists added

*  Add layers groups to the API

*  Fix some broken test after the validation change

* 👌 Move to disctionary shape

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-09 15:22:21 +01:00
..
__mocks__ [Lens] Split up dimension panel code (#80423) 2020-10-19 10:51:21 -04:00
__snapshots__ [Lens] fix empty callout for empty/meta fields accordion (#79429) 2020-10-05 23:07:07 +02:00
dimension_panel [Lens] Extend Datasource props validation with VisualizationGroups (#82607) 2020-11-09 15:22:21 +01:00
operations [Lens] Fix bug in terms formatting (#82776) 2020-11-06 09:54:37 -05:00
change_indexpattern.tsx [Lens] Settings panel redesign and separate settings per y axis (#76373) 2020-09-16 11:30:19 +03:00
datapanel.scss [Lens] Consistent Drag and Drop styles (#78674) 2020-10-01 11:58:23 -04:00
datapanel.test.tsx [Lens] Drag within dimension group to reorder (#80547) 2020-11-03 21:18:44 +01:00
datapanel.tsx [Lens] fix empty callout for empty/meta fields accordion (#79429) 2020-10-05 23:07:07 +02:00
document_field.ts [Lens] Use index pattern service instead saved object client (#74654) 2020-08-21 11:33:42 +02:00
field_item.scss [Lens] Consistent Drag and Drop styles (#78674) 2020-10-01 11:58:23 -04:00
field_item.test.tsx [Lens] Use index pattern service instead saved object client (#74654) 2020-08-21 11:33:42 +02:00
field_item.tsx [Lens] Drag within dimension group to reorder (#80547) 2020-11-03 21:18:44 +01:00
field_list.scss [Lens] show meta field data in Lens (#77210) 2020-09-24 09:55:32 +02:00
field_list.tsx [Lens] fix empty callout for empty/meta fields accordion (#79429) 2020-10-05 23:07:07 +02:00
fields_accordion.test.tsx [Lens] show meta field data in Lens (#77210) 2020-09-24 09:55:32 +02:00
fields_accordion.tsx [Lens] show meta field data in Lens (#77210) 2020-09-24 09:55:32 +02:00
format_column.ts [Lens] Improved range formatter (#80132) 2020-10-27 18:08:01 +01:00
index.ts [Lens] Implement time scaling function (#82104) 2020-11-06 13:47:55 +01:00
indexpattern.test.ts [Lens] Visualization validation and better error messages (#81439) 2020-11-04 18:28:00 +01:00
indexpattern.tsx [Lens] Extend Datasource props validation with VisualizationGroups (#82607) 2020-11-09 15:22:21 +01:00
indexpattern_suggestions.test.tsx [Lens] Remove Over time suggestions for numeric intervals (#78442) 2020-10-19 14:45:48 +02:00
indexpattern_suggestions.ts [Lens] Remove Over time suggestions for numeric intervals (#78442) 2020-10-19 14:45:48 +02:00
layerpanel.test.tsx [Lens] Fix rollup related bugs (#75314) 2020-08-26 09:09:40 +02:00
layerpanel.tsx [Lens] 7.9 design cleanup (#71444) 2020-07-13 20:06:58 -04:00
lens_field_icon.test.tsx
lens_field_icon.tsx
loader.test.ts [Lens] Improved range formatter (#80132) 2020-10-27 18:08:01 +01:00
loader.ts [Lens] Improved range formatter (#80132) 2020-10-27 18:08:01 +01:00
mocks.ts [Lens] Improved range formatter (#80132) 2020-10-27 18:08:01 +01:00
no_fields_callout.test.tsx [Lens] fix empty callout for empty/meta fields accordion (#79429) 2020-10-05 23:07:07 +02:00
no_fields_callout.tsx [Lens] fix empty callout for empty/meta fields accordion (#79429) 2020-10-05 23:07:07 +02:00
pure_helpers.test.ts
pure_helpers.ts
rename_columns.test.ts removing kibana_datatable in favor of datatable (#80548) 2020-10-16 18:46:51 +02:00
rename_columns.ts removing kibana_datatable in favor of datatable (#80548) 2020-10-16 18:46:51 +02:00
state_helpers.test.ts [Lens] Split up dimension panel code (#80423) 2020-10-19 10:51:21 -04:00
state_helpers.ts [Lens] Split up dimension panel code (#80423) 2020-10-19 10:51:21 -04:00
time_scale.test.ts [Lens] Implement time scaling function (#82104) 2020-11-06 13:47:55 +01:00
time_scale.ts [Lens] Implement time scaling function (#82104) 2020-11-06 13:47:55 +01:00
to_expression.ts [Lens] Stop using multi-level metrics in Lens pie charts (#81523) 2020-10-29 10:48:49 -04:00
types.ts [Lens] show meta field data in Lens (#77210) 2020-09-24 09:55:32 +02:00
utils.ts [Lens] Visualization validation and better error messages (#81439) 2020-11-04 18:28:00 +01:00