Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored function "shift" not reflected in UI functions list #12859

Closed
karel-rehor opened this issue Mar 25, 2019 · 0 comments
Closed

Refactored function "shift" not reflected in UI functions list #12859

karel-rehor opened this issue Mar 25, 2019 · 0 comments
Assignees

Comments

@karel-rehor
Copy link
Contributor

Build Nightly
Build Time 2019-03-24T07:16:22Z

ts=2019-03-25T09:24:59.565349Z lvl=info msg="Welcome to InfluxDB" log_id=0EP2WtBG000 version=nightly commit=68400504a build_date=2019-03-24T07:16:22Z

Use Case

After starting up the quay.io docker image, onboarding and adding some test data or a telegraf connection

  1. Open Data Explorer
  2. Use builder to get a basic measurement
  3. Switch to script editor
  4. Use the functions list to add the shift function to the flux query

sample query:

from(bucket: "test-data")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r._measurement == "air_quality")
  |> filter(fn: (r) => r._field == "humidity")
  |> filter(fn: (r) => r.city == "Praha")
  |> map(fn: (r) => ({_time: r._time, _measurement: r._measurement, _field: r._field, _value: 100.0 - r._value}), mergeKey: true)
  |> shift(shift: -4h, columns: ["_start", "_stop", "_time"])
  1. click submit

The server returns a message in the view area:

"Error: failed to compile query: type error 7:6-7:11: undefined identifier "shift""

After checking the flux repository I see shift has been refactored to timeShift. Making this change in the script makes it work again.

Expected Behavior

That deprecated functions should not appear in the list and that their refactored names and signatures should be used instead.

Screenshots

ShiftFunction01
ShiftFunction02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants