forked from metabase/metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
424 changed files
with
15,551 additions
and
11,177 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
## Wrapper Objects: | ||
|
||
* `setFoo(bar)`: returns clone of the wrapper but with the "foo" attribute to set to `bar` | ||
* `replace(object)`: returns clone of parent wrapper with this object replaced by `object` | ||
* `remove()`: returns clone of the parent wrapper with this object removed | ||
* `update()`: propagates current wrapper update to parent wrapper, recursively | ||
|
||
Examples: | ||
|
||
* `question().query.aggregation()[0].setDimension(dimension).update()` | ||
|
||
Exceptions: | ||
|
||
* StructuredQuery::updateAggregation, updateBreakout, updateFilter, etc should be called setAggregation, etc | ||
|
||
## Wrapper Hierarchy: | ||
|
||
* Question | ||
* StructuredQuery | ||
* Aggregation | ||
* Breakout | ||
* Filter | ||
* NativeQuery |
Oops, something went wrong.