added contrib fn note, added link to group key definition

pull/1263/head
Scott Anderson 2020-08-04 08:50:17 -06:00
parent b379586bbf
commit 6abdfe6dcb
3 changed files with 25 additions and 1 deletions

View File

@ -15,7 +15,8 @@ related:
The `rows.map()` function is an alternate implementation of [`map()`](/v2.0/reference/flux/stdlib/built-in/transformations/map/)
that is faster, but more limited than `map()`.
`rows.map()` cannot modify table groups key and, therefore, does not need to regroup tables.
`rows.map()` cannot modify [groups keys](/v2.0/reference/glossary/#group-key) and,
therefore, does not need to regroup tables.
**Attempts to change columns in the group key are ignored.**
_**Function type:** Transformation_

View File

@ -4,6 +4,7 @@
{{ partial "article/product-tags.html" . }}
{{ partial "article/stable-version.html" . }}
{{ partial "article/flux-experimental.html" . }}
{{ partial "article/flux-contrib.html" . }}
{{ .Content }}
{{ partial "article/related.html" . }}
{{ partial "article/tags.html" . }}

View File

@ -0,0 +1,22 @@
{{ $currentVersion := (index (findRE "[^/]+.*?" .RelPermalink) 0) .RelPermalink }}
{{ $contribPath := print "/" $currentVersion "/reference/flux/stdlib/contrib/" }}
{{ if in .RelPermalink $contribPath }}
{{ if not (eq .RelPermalink $contribPath) }}
{{ if eq .Kind "page" }}
{{ $name := replaceRE `^\w*\.\w*\(\)` "<code>$0</code>" .Title }}
<div class="note block">
<p>
The {{ $name | safeHTML }} is a user-contributed function maintained by the <a href="#package-author-and-maintainer">package author</a>.
</p>
</div>
{{ else if eq .Kind "section" }}
<div class="note block">
<p>
The {{ if $.Params.list_title }}{{ $.Params.list_title }}{{ else }}{{ .Title }}{{ end }}
is a user-contributed package maintained by the <a href="#package-author-and-maintainer">package author</a>.
</p>
</div>
{{ end }}
{{ end }}
{{ end }}