-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Lens] Clean up operations code #43784
Merged
flash1293
merged 15 commits into
elastic:feature/lens
from
flash1293:lens/cleanup-operations
Aug 28, 2019
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b148492
simplify types and add documentation to operations framework
flash1293 8d380b7
make field mandatory in buildColumn of field based operation definitions
flash1293 694e845
handle state in app
flash1293 3cec779
Merge remote-tracking branch 'upstream/feature/lens' into lens/fix-qu…
flash1293 54ad77c
fix isMetric usages
flash1293 82a4fc8
fix integration tests
flash1293 a8ab4b5
Merge branch 'lens/fix-querybar-integration' into lens/cleanup-operat…
flash1293 544b4d7
eslint
flash1293 73cdade
improve typings
flash1293 3a6a23c
fix date handling on submit
flash1293 0ff7523
Merge branch 'lens/fix-querybar-integration' into lens/cleanup-operat…
flash1293 4729ae4
fix test
flash1293 822b41e
Merge branch 'lens/fix-querybar-integration' into lens/cleanup-operat…
flash1293 1625be3
Merge remote-tracking branch 'upstream/feature/lens' into lens/cleanu…
flash1293 2b91dfe
move to options object for changeParam and use top level imports inst…
flash1293 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 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 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 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
219 changes: 0 additions & 219 deletions
219
x-pack/legacy/plugins/lens/public/indexpattern_plugin/operations.ts
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.
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 seems trivial to compute from the other props (layerId, columnId, state), so why pass it in separately?
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.
My comment in the description about this was probably not super clear:
It's because of types -
columns
is aRecord<string, IndexPatternColumn>
, but inside of the param editor we need the specific type,TermsIndexPatternColumn
,DateHistogramIndexPatternColumn
and so on. We can cast it in there (that's how it was done before), but I try to get rid of casts where possible because they are a type mismatch waiting to happen. Doing it here is also implicitly casting the type to right one, but it's only a single place compared to the n places within in the param editor components, so less surface to get it wrong in the future.