Skip to content

Commit 9108cce

Browse files
Deduplicate Canvas reference pages (#3505)
This PR removes Canvas docs that were duplicated to only keep the version that is already embedded within the Canvas docs, for a better UX. Keeping the reference pages separated made no sense here. Fixes: #2949
1 parent 310cb0e commit 9108cce

File tree

7 files changed

+10
-2561
lines changed

7 files changed

+10
-2561
lines changed

explore-analyze/visualize/canvas/canvas-function-reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ Interprets a `TinyMath` math expression using a `number` or `datatable` as *cont
13081308

13091309
| Argument | Type | Description |
13101310
| --- | --- | --- |
1311-
| *Unnamed*<br>Alias: `expression` | `string` | An evaluated `TinyMath` expression. See [canvas-tinymath-functions.md](/reference/data-analysis/kibana/tinymath-functions.md). |
1311+
| *Unnamed*<br>Alias: `expression` | `string` | An evaluated `TinyMath` expression. See [canvas-tinymath-functions.md](/explore-analyze/visualize/canvas/canvas-tinymath-functions.md). |
13121312
| `onError` | `string` | In case the `TinyMath` evaluation fails or returns NaN, the return value is specified by onError. When `'throw'`, it will throw an exception, terminating expression execution (default). |
13131313

13141314
**Returns:** Depends on your input and arguments
@@ -1323,7 +1323,7 @@ Adds a column by evaluating `TinyMath` on each row. This function is optimized f
13231323
| Argument | Type | Description |
13241324
| --- | --- | --- |
13251325
| *Unnamed* **\***<br>Aliases: `column`, `name` | `string` | The name of the resulting column. Names are not required to be unique. |
1326-
| *Unnamed*<br>Alias: `expression` | `string` | An evaluated `TinyMath` expression. See [canvas-tinymath-functions.md](/reference/data-analysis/kibana/tinymath-functions.md). |
1326+
| *Unnamed*<br>Alias: `expression` | `string` | An evaluated `TinyMath` expression. See [canvas-tinymath-functions.md](/explore-analyze/visualize/canvas/canvas-tinymath-functions.md). |
13271327
| `castColumns`| `string` | The column ids that are cast to numbers before the formula is applied. |
13281328
| `copyMetaFrom` | `string`, `null` | If set, the meta object from the specified column id is copied over to the specified target column. If the column doesn’t exist it silently fails.<br>Default: `null` |
13291329
| `id` **\*** | `string` | id of the resulting column. Must be unique. |
@@ -1443,7 +1443,7 @@ Subdivides a `datatable` by the unique values of the specified columns, and pass
14431443

14441444
### `pointseries` [pointseries_fn]
14451445

1446-
Turn a `datatable` into a point series model. Currently we differentiate measure from dimensions by looking for a `TinyMath` expression. See [canvas-tinymath-functions.md](/reference/data-analysis/kibana/tinymath-functions.md). If you enter a `TinyMath` expression in your argument, we treat that argument as a measure, otherwise it is a dimension. Dimensions are combined to create unique keys. Measures are then deduplicated by those keys using the specified `TinyMath` function
1446+
Turn a `datatable` into a point series model. Currently we differentiate measure from dimensions by looking for a `TinyMath` expression. See [canvas-tinymath-functions.md](/explore-analyze/visualize/canvas/canvas-tinymath-functions.md). If you enter a `TinyMath` expression in your argument, we treat that argument as a measure, otherwise it is a dimension. Dimensions are combined to create unique keys. Measures are then deduplicated by those keys using the specified `TinyMath` function
14471447

14481448
**Accepts:** `datatable`
14491449

redirects.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,13 @@ redirects:
519519
# Search sessions becoming background search
520520
'explore-analyze/discover/search-sessions.md': 'explore-analyze/discover/background-search.md'
521521

522+
# Deduplicate canvas function reference
523+
'reference/data-analysis/kibana/canvas-functions.md': 'explore-analyze/visualize/canvas/canvas-function-reference.md'
524+
'reference/data-analysis/kibana/tinymath-functions.md': 'explore-analyze/visualize/canvas/canvas-tinymath-functions.md'
525+
522526
# Remote cluster settings moved to reference: https://github.com/elastic/docs-content/issues/579
523527
'deploy-manage/remote-clusters/remote-clusters-settings.md': 'elasticsearch://reference/elasticsearch/configuration-reference/remote-clusters.md'
524528

525529

526530

531+

reference/data-analysis/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ This section contains reference information for data analysis features, includin
55
* [Supplied {{anomaly-detect}} configurations](/reference/data-analysis/machine-learning/supplied-anomaly-detection-configurations.md)
66
* [Function reference for anomaly detection jobs](/reference/data-analysis/machine-learning/machine-learning-functions.md)
77
* [Metrics reference for the Infrastructure app](/reference/data-analysis/observability/index.md)
8-
* [Canvas functions](/reference/data-analysis/kibana/canvas-functions.md)
98
* [Text analysis components](elasticsearch://reference/text-analysis/index.md)
109
* [Aggregations](elasticsearch://reference/aggregations/index.md)
1110

0 commit comments

Comments
 (0)