-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Expressions in AggregationPicker without legacy query #36031
Merged
kamilmielnik
merged 110 commits into
master
from
35947-legacy-expression-clause-filters-and-aggregations
Dec 5, 2023
Merged
Changes from 22 commits
Commits
Show all changes
110 commits
Select commit
Hold shift + click to select a range
e48ab06
Add expression-clause-for-legacy-expression
metamben e4df56e
Add legacy-expression-for-expression-clause
metamben e93d114
Fix wrapper function name
metamben 76054bf
Merge remote-tracking branch 'origin/master' into 34830-expression-cl…
metamben 0994d76
Include ExpressionClause in Aggregatable type
kamilmielnik 55b4f31
Use Aggregatable type in aggregate function
kamilmielnik 95697f7
Rename query to legacyQuery in Expressions (part 1)
kamilmielnik d6eb1dc
Rename query to legacyQuery in Expressions (part 2)
kamilmielnik eb24d0d
Rename query to legacyQuery in Expressions (part 3)
kamilmielnik 3233e98
Merge branch 'master' into 35947-legacy-expression-clause-filters-and…
kamilmielnik 9ffa599
Merge branch 'refactor/rename-query-to-legacy-query' into 35947-legac…
kamilmielnik 3d59ab3
Merge branch 'master' into 35947-legacy-expression-clause-filters-and…
kamilmielnik 3e4fb53
Support MLv2 expressionClause in processSource and ExpressionWidget
kamilmielnik 4eb9eda
Revert changes to ExpressionStep as it's out of scope of this task
kamilmielnik 3eb2f3c
Merge branch 'master' into 35947-legacy-expression-clause-filters-and…
kamilmielnik cadf4ed
Use new expressionClause in ExpressionWidget
kamilmielnik 20e9406
Use onSelect instead of onSelectLegacy in handleExpressionChange
kamilmielnik 248009a
Remove onSelectLegacy from AggregationPicker
kamilmielnik 35dbf4b
Merge branch 'master' into 35947-legacy-expression-clause-filters-and…
kamilmielnik 7ae92bd
Use nullish coalescing operator
kamilmielnik 8646317
Assert new onChangeExpression argument in test
kamilmielnik 71ac3aa
Assert new onChangeExpression argument in test
kamilmielnik 30b9b27
Update AggregationPicker tests
kamilmielnik 2f50b3f
Replace toEqual + expect.objectContaining with toMatchObject
kamilmielnik 24a131c
Add stageIndex to setup, use destructuring for onSelect arguments
kamilmielnik 5c75c83
Deal with awkward assertions
kamilmielnik d64c7c4
Use props in a conservative way
kamilmielnik 89041b9
Replace legacyQuery.database() with query + metadata
kamilmielnik 39496c1
Add a TODO comment
kamilmielnik 221e950
Add clause prop to AggregationPicker
kamilmielnik 0573ab3
Migrate clause name
kamilmielnik a9d7b5b
Replace 3rd argument in onChangeExpression with onChangeExpressionClause
kamilmielnik 079abb5
Use destructuring
kamilmielnik 7658ec9
Allow AggregationClause, drop expression from ExpressionEditorTextfield
kamilmielnik 1f13259
Make withExpressionName work with AggregationClause
kamilmielnik 94bc358
Rename expressionClause to clause
kamilmielnik f36fc18
Update tests with new interface
kamilmielnik 3953f85
Use overloading instead of generics
kamilmielnik 2074e8b
Add function body
kamilmielnik ee9d538
Rename operator to clause
kamilmielnik f18cd75
Revert "Use overloading instead of generics"
kamilmielnik 7baa434
Fix tests failing due to useSelect usage in AggregationPicker
kamilmielnik f28b10a
Omit aggregation options converting expressions to legacy
metamben bdad147
Merge branch '36120-omit-aggregation-options-converting-exprs-to-lega…
kamilmielnik 1e2485c
Remove temporary hack
kamilmielnik 505d11f
Get rid of props spread
kamilmielnik bacf371
Migrate isExpressionEditorInitiallyOpen to MLv2
kamilmielnik 95ddd4c
Omit aggregation options converting expressions to legacy
metamben 58bd581
Normalize legacy expressions as MBQL expressions
metamben c4866fd
Merge branch '36120-omit-aggregation-options-converting-exprs-to-lega…
kamilmielnik 8afeac3
Fix isExpressionEditorInitiallyOpen
kamilmielnik 7f7152e
Update expressionName signature
kamilmielnik 3eb2181
Pass props in ExpressionStep tests in a usual way
kamilmielnik c36cebd
Drop a conditional statement
kamilmielnik 594b389
Bring back expression prop for backwards-compatibility
kamilmielnik dcd7781
Update ExpressionWidget validation & tests
kamilmielnik 0a0802a
Bring back using expression in componentWillReceiveProps
kamilmielnik f7d14cf
Bring back removed assertion
kamilmielnik 92aa48f
Remove legacyQuery prop from AggregationPicker
kamilmielnik e719fc2
Add a test case for isExpressionEditorInitiallyOpen (which uses Lib.e…
kamilmielnik 0aec027
Fix legacyQuery creation
kamilmielnik 45a50d3
Add assertion for expression name
kamilmielnik b5bfee8
Fix committing expression with done button
kamilmielnik db71907
Improve assertions in tests
kamilmielnik 3b8f15b
Make with-expression-name set the display-name of the clause
metamben fd32c5f
Add expression name assertion
kamilmielnik 33aec8f
Add expression name assertion
kamilmielnik e80ac60
Add expression name assertion
kamilmielnik 6a0c758
Add expression name assertion
kamilmielnik 2795c3d
Add expression name assertion
kamilmielnik 9f85ea9
Add expression name assertion
kamilmielnik a7a9ec6
Add expression name assertion
kamilmielnik 49dfc00
Unskip an e2e test
kamilmielnik a7ed491
Add expression name assertion
kamilmielnik fc35005
Add expression name assertion
kamilmielnik da11fb9
Use displayInfo instead of displayName
kamilmielnik 42d5ff1
Deprecate displayName in favor of displayInfo
kamilmielnik 9acc7ba
Use clearer notation
kamilmielnik 91be09a
Format code
kamilmielnik cb68901
Use displayInfo instead of expressionName in tests
kamilmielnik f699c90
Add isNamed attribute to ColumnDisplayInfo and ClauseDisplayInfo
kamilmielnik 73283d9
Use displayInfo instead of expressionName in AggregationPicker
kamilmielnik 2d6ca04
Drop expressionName
kamilmielnik 31ce8e7
Drop redundant cast
kamilmielnik 86c6a80
Simplify isExpressionEditorInitiallyOpen interface
kamilmielnik 3796af4
Merge remote-tracking branch 'origin/master' into 36167-with-expressi…
metamben 1ee3df6
Use display-info with :named? instead of expression-name
metamben 04e4c16
Merge remote-tracking branch 'origin/master' into 36167-with-expressi…
metamben 0bfcedd
Improve comment
metamben c3e015e
Add :named? to the schema of display-info
metamben f6d7c0a
Use conditional types for ExpressionWidget prop
kamilmielnik 7cf0bb7
Use getNotebookStep
kamilmielnik e6a0bed
Simplify condition
kamilmielnik 8780eee
Simplify assertions
kamilmielnik 98ab29f
Use .lastCall
kamilmielnik 34b87a2
Remove isNamed attribute from ColumnDisplayInfo
kamilmielnik dd0da11
Use .lastCall
kamilmielnik a0777d8
Merge branch '36167-with-expression-name-to-set-display-name' into 35…
kamilmielnik 8d14a11
Fix typing
kamilmielnik 3ef1bcb
Bring back legacyQuery prop to AggregationPicker
kamilmielnik da95422
Fix isExpressionEditorInitiallyOpen for new clauses
kamilmielnik 277766a
Fix unit tests
kamilmielnik e582696
Remove wrong assertion
kamilmielnik db821e0
Fix assertion
kamilmielnik 254913d
Trigger a change
kamilmielnik a76248a
Revert "Trigger a change"
kamilmielnik 13571b1
Fix assertion
kamilmielnik 6563742
Merge branch 'master' into 36167-with-expression-name-to-set-display-…
kamilmielnik f6901a6
Merge branch '36167-with-expression-name-to-set-display-name' into 35…
kamilmielnik 24937fd
Merge branch 'master' into 35947-legacy-expression-clause-filters-and…
kamilmielnik File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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
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
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.
Adjusting to match
onChange
andonCommit
props inExpressionEditorTextfield
which were/are typed withnull
.