forked from influxdata/docs-v2
-
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.
Show what versions of InfluxDB Flux functions are supported in (influ…
…xdata#4219) * automatically build flux version data file * rendered modals on each stdlib page * polish on flux-influxdb version support * reverted modified frontmatter * added new page that shows what flux versions are packaged with each InfluxDB version * added comment to js file * updated to address PR feedback * moved flux build scripts into their own directory * updated inject-flux-frontmatter script to work in subdirectory * updated flux-versions script to work in nested directory * fixed bug in flux-versions script
- Loading branch information
Showing
24 changed files
with
644 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
Interactions related to the Flux/InfluxDB version modal | ||
*/ | ||
|
||
const fluxInfluxDBModal = '.modal-content#flux-influxdb-versions' | ||
|
||
// Check for deprecated or pending versions | ||
function keysPresent() { | ||
var list = $(fluxInfluxDBModal + ' .version-list') | ||
|
||
return { | ||
pending: list.find('.pending').length !== 0, | ||
deprecated: list.find('.deprecated').length !== 0, | ||
} | ||
} | ||
|
||
// Only execute if the Flux/InfluxDB modal is present in the DOM | ||
if ($(fluxInfluxDBModal).length > 0) { | ||
var presentKeys = keysPresent() | ||
|
||
// Remove color key list items if the colors/states are present in the version list | ||
if (presentKeys.pending === false) { $(fluxInfluxDBModal + ' .color-key #pending-key' ).remove() } | ||
if (presentKeys.deprecated === false) { $(fluxInfluxDBModal + ' .color-key #deprecated-key' ).remove() } | ||
if (presentKeys.pending === false && presentKeys.deprecated === false) { $(fluxInfluxDBModal + ' .color-key' ).remove() } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
#flux-influxdb-versions { | ||
|
||
max-width: 375px; | ||
|
||
.flex-wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
} | ||
|
||
.influxdb-versions { | ||
margin-top: 1.5rem; | ||
overflow: scroll; | ||
} | ||
.version-list { | ||
display: flex; | ||
flex-direction: column-reverse; | ||
} | ||
.version-row { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: .15rem 0; | ||
border-bottom: 1px solid $article-hr; | ||
&:last-child { border-top: 1px solid $article-hr; } | ||
|
||
.version-col { | ||
&:last-child { padding-right: 1rem; text-align: right; } | ||
} | ||
} | ||
|
||
h4 {margin-top: 1.5rem;} | ||
|
||
h4, span.medium { | ||
font-size: 1.15rem; | ||
} | ||
|
||
h3 code { | ||
background: $article-code-bg; | ||
font-family: $code; | ||
color: $article-code; | ||
padding: .1rem .4rem .2rem; | ||
border-radius: $radius; | ||
white-space: nowrap; | ||
font-size: .85em; | ||
font-style: normal; | ||
} | ||
|
||
span{ | ||
&.medium { | ||
font-weight: $medium; | ||
color: $article-heading; | ||
} | ||
&.flux-version { | ||
opacity: .5; | ||
font-size: .9rem; | ||
} | ||
&.deprecated:before{ | ||
content: '•'; | ||
color: rgba($article-text, .5); | ||
margin-right: .4rem; | ||
} | ||
&.checkmark-new { | ||
font-size: 1.1rem; | ||
font-weight: bold; | ||
color: $gr-rainforest; | ||
&.pending { color: $b-dodger } | ||
} | ||
} | ||
|
||
.color-key { | ||
margin-top: 1.5rem; | ||
padding: 0; | ||
list-style: none; | ||
|
||
li { | ||
font-style: italic; | ||
color: rgba($article-text, .65); | ||
|
||
&#deprecated-key span {margin-left: .25rem;} | ||
} | ||
} | ||
|
||
.more-info { | ||
margin-top: 1.5rem; | ||
} | ||
} |
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,16 @@ | ||
--- | ||
title: Flux versions in InfluxDB | ||
description: | | ||
View what versions of Flux are packaged with each version of InfluxDB. | ||
menu: | ||
flux_0_x_ref: | ||
weight: 10 | ||
--- | ||
|
||
View which versions of InfluxDB are packaged with each version of InfluxDB. | ||
|
||
- [InfluxDB Cloud](#influxdb-cloud) | ||
- [InfluxDB Open Source (OSS)](#influxdb-open-source-oss) | ||
- [InfluxDB Enterprise](#influxdb-enterprise) | ||
|
||
{{< flux/influxdb-versions >}} |
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,52 @@ | ||
--- | ||
title: debug.unpivot() function | ||
description: > | ||
`debug.unpivot()` removes the `_time` column and any other column not in the group key and outputs a new table with `_field` and `_value` columns pairs. | ||
The output stream retains the group key and all group key columns of the input stream. | ||
Specialized to transform the pivoted output from `iox.from()` into the unpivoted format. | ||
menu: | ||
flux_0_x_ref: | ||
name: debug.unpivot | ||
parent: internal/debug | ||
identifier: internal/debug/unpivot | ||
weight: 201 | ||
--- | ||
|
||
<!------------------------------------------------------------------------------ | ||
IMPORTANT: This page was generated from comments in the Flux source code. Any | ||
edits made directly to this page will be overwritten the next time the | ||
documentation is generated. | ||
To make updates to this documentation, update the function comments above the | ||
function definition in the Flux source code: | ||
https://github.com/influxdata/flux/blob/master/stdlib/internal/debug/debug.flux#L62-L65 | ||
Contributing to Flux: https://github.com/influxdata/flux#contributing | ||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md | ||
-------------------------------------------------------------------------------> | ||
|
||
`debug.unpivot()` removes the `_time` column and any other column not in the group key and outputs a new table with `_field` and `_value` columns pairs. | ||
The output stream retains the group key and all group key columns of the input stream. | ||
Specialized to transform the pivoted output from `iox.from()` into the unpivoted format. | ||
|
||
|
||
|
||
##### Function type signature | ||
|
||
```js | ||
(<-tables: stream[{A with _time: time}]) => stream[{B with _value: C, _field: string}] where A: Record, B: Record | ||
``` | ||
|
||
{{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}} | ||
|
||
## Parameters | ||
|
||
### tables | ||
|
||
Input data. Default is piped-forward data (`<-`). | ||
|
||
|
||
|
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,78 @@ | ||
--- | ||
title: join.join() function | ||
description: > | ||
`join.join()` is under active development and is not yet ready for public consumption. | ||
menu: | ||
flux_0_x_ref: | ||
name: join.join | ||
parent: join | ||
identifier: join/join | ||
weight: 101 | ||
--- | ||
|
||
<!------------------------------------------------------------------------------ | ||
IMPORTANT: This page was generated from comments in the Flux source code. Any | ||
edits made directly to this page will be overwritten the next time the | ||
documentation is generated. | ||
To make updates to this documentation, update the function comments above the | ||
function definition in the Flux source code: | ||
https://github.com/influxdata/flux/blob/master/stdlib/join/join.flux#L13-L23 | ||
Contributing to Flux: https://github.com/influxdata/flux#contributing | ||
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md | ||
-------------------------------------------------------------------------------> | ||
|
||
`join.join()` is under active development and is not yet ready for public consumption. | ||
|
||
|
||
|
||
##### Function type signature | ||
|
||
```js | ||
( | ||
<-left: stream[A], | ||
as: (l: A, r: B) => C, | ||
method: string, | ||
on: (l: A, r: B) => bool, | ||
right: stream[B], | ||
) => stream[C] where A: Record, B: Record, C: Record | ||
``` | ||
|
||
{{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}} | ||
|
||
## Parameters | ||
|
||
### left | ||
|
||
left: | ||
|
||
|
||
|
||
### right | ||
({{< req >}}) | ||
right: | ||
|
||
|
||
|
||
### on | ||
({{< req >}}) | ||
on: | ||
|
||
|
||
|
||
### as | ||
({{< req >}}) | ||
as: | ||
|
||
|
||
|
||
### method | ||
({{< req >}}) | ||
method: | ||
|
||
|
||
|
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.