Skip to content

Chronograf 1.10.9 - Flux script editor inserts inline lambda functions as pipeline functions #6172

@karel-rehor

Description

@karel-rehor

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

  1. Create a basic flux pipeline using pipeline builder
  2. Open script editor
  3. Add a map function.
  4. Within the lamda function for the map pipeline function set the cursor to a location where an inline function like strings.trimRight is desired.
  5. In the "Flux Functions" panel locate the strings.trimRight function.
  6. Click to insert the function automatically into the lambda function.

The inline function is added as a pipeline function instead.

Screencast

InsertInlineStringTrimRight.webm

Expected behavior:
Expected that the inline function would be inserted at the location of he cursor.

Actual behavior:
The inline function is inserted as a pipeline function.

After clicking "Run Script" an error occurs. "missing property value"

Environment info:

OS: Ubuntu 24.04
Browser: Opera 127
Backend: Influxdb1 OSS in docker.
Chronograf: 1.10.9

Config:

Logs:

INFO[7481] Response: Bad Request                         component=server method=POST remote_addr="[::1]:40810" response_time=11.813163ms status=400
INFO[7488] Response: OK                                  component=server method=GET remote_addr="[::1]:46800" response_time="55.595µs" status=200

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions