-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Lens] Extend Datasource props validation with VisualizationGroups #82607
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
Merged
dej611
merged 63 commits into
elastic:master
from
dej611:feature/lens/datasource-groups-validation
Nov 9, 2020
Merged
Changes from 61 commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
1bed7c0
:sparkles: First pass with visualization validation + error messages
dej611 bb93701
:fire: Remove indexpattern error handling for now
dej611 0aea6c5
:label: Fix type issues
dej611 d389d85
:white_check_mark: Add getErrorMessage test for data table
dej611 4c48b23
:white_check_mark: Add tests for pie and metric error messages
dej611 91a700a
:globe_with_meridians: Fix i18n checks issues
dej611 b1d71dd
:bug: Fix last issue
dej611 be2312d
:white_check_mark: Add more tests for the XY visualization validation…
dej611 c64603a
:ok_hand: Included all feedback from first review
dej611 8e77401
:pencil2: Off by one message
dej611 64a22ef
Merge remote-tracking branch 'upstream/master' into feature/lens/disp…
dej611 7089b2f
:globe_with_meridians: Fix i18n duplicate id
dej611 86cc058
:globe_with_meridians: Fix last i18n issue
dej611 4e0c179
Merge remote-tracking branch 'upstream/master' into feature/lens/disp…
dej611 6672302
:bug: Fixed a hook reflow issue
dej611 ee80a6b
:recycle:+:white_check_mark: Reworked validation flow + tests
dej611 f1127f4
:label: Fix type issue
dej611 95f9daf
:bug: Improved XY corner cases validation logic
dej611 ce7f857
:bug: Fix empty datatable scenario
dej611 d88d55d
:sparkles: + :white_check_mark: Improved error messages for invalid d…
dej611 694757b
:globe_with_meridians: Add missing i18n translation
dej611 0277aa5
:label: Fix type issues
dej611 822a23e
:globe_with_meridians: Fix i18n issues
dej611 957bd98
:sparkles: Filter out suggestions which fail to build
dej611 7bfabd1
Merge branch 'master' into feature/lens/display-error-workspace
kibanamachine 2fd7a90
:truck: Migrate datatable validation logic to the building phase, han…
dej611 4464285
:label: Fix type issue
dej611 e039c4f
:pencil2: Add comment for future enhancements
dej611 a84fad2
:pencil2: Updated comment
dej611 d06f099
Merge branch 'master' into feature/lens/display-error-workspace
kibanamachine 135c40d
:world_with_meridians: Refactor axis labels
dej611 b12a320
:globe_with_meridians: Reworked few validation messages
dej611 9f5d951
:bug: Fix break down validation + percentage charts
dej611 f984d5d
:white_check_mark: Align tests with new validation logic
dej611 5e265ae
Merge branch 'feature/lens/display-error-workspace' of github.com:dej…
dej611 4b3c36a
Merge branch 'master' into feature/lens/display-error-workspace
kibanamachine c7fdd61
:recycle: Fix suggestion panel validation to match main panel
dej611 d0bce6b
:globe_with_meridians: Fix i18n issues
dej611 cb0214e
:wrench: Fix some refs for validation checks in suggestions
dej611 d3fabc2
Merge branch 'feature/lens/display-error-workspace' of github.com:dej…
dej611 6c27723
:bug: Fix missing key prop in multiple errors scenario
dej611 9437162
Merge branch 'master' into feature/lens/display-error-workspace
kibanamachine 4ac3bd8
Merge branch 'master' into feature/lens/display-error-workspace
kibanamachine 6798112
Merge remote-tracking branch 'upstream/master' into feature/lens/disp…
dej611 8d31435
:bug: Fix swtich issue from XY to partition
dej611 97dc1ae
:globe_with_meridians: Fix i18n messages and aligned tests
dej611 33b71fa
Merge branch 'master' into feature/lens/display-error-workspace
kibanamachine 0a0f5d3
:bug: Fix suggestions switching bug
dej611 37dca5a
:refactor: Add more validation + refactored validation logic in a sin…
dej611 fa32b19
:pencil2: Add note about lint hooks disable rule
dej611 1a440a9
Merge remote-tracking branch 'upstream/master' into feature/lens/disp…
dej611 cdb7054
:rotating_light: Fix linting issue
dej611 8618b3f
:building_construction: Add infra API for datasource advanced validation
dej611 11caf4a
:white_check_mark: Align tests with new API
dej611 41ff2ed
Merge branch 'feature/lens/display-error-workspace' into feature/lens…
dej611 9de02ff
:white_check_mark: Fix type issues in tests
dej611 8ccd1d4
:ok_hand: Early exists added
dej611 29ab103
Merge branch 'feature/lens/display-error-workspace' into feature/lens…
dej611 d160fe2
Merge remote-tracking branch 'upstream/master' into feature/lens/data…
dej611 c4949ef
:sparkles: Add layers groups to the API
dej611 f6a4e4d
:white_check_mark: Fix some broken test after the validation change
dej611 c374b24
:ok_hand: Move to disctionary shape
dej611 aa0ad1e
Merge branch 'master' into feature/lens/datasource-groups-validation
kibanamachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has to be a map (with the keys being the layer id) - otherwise the datasource won't be able to map the right group arrays back to the right internal layer representation.
The type should be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is an array, so always in order, so it shouldn't be a problem: probably the implementation will need to identify layers index anyway internally to output a better contextual message.
I understand it may be also useful to have a lookup by
layerId, I'll update.