Coder Social home page Coder Social logo

Comments (11)

yacir avatar yacir commented on August 21, 2024 9

@abhisant any news?

from druidplugin.

abhisant avatar abhisant commented on August 21, 2024 2

Closing: TypeError: _.pluck is not a function -> The error no more exists. In case of any Grafana 4.0 support/issues, please open a new issue. I will release a new version soon. Will wait for next 1 week if there are any new commits / pulls to be included in the new version.

from druidplugin.

yacir avatar yacir commented on August 21, 2024 1

Thanks @abhisant !

Might it be possible to release a new version (0.2.1) on grafana plugins ?

Thanks you in advance !

from druidplugin.

abhisant avatar abhisant commented on August 21, 2024 1

@yacir : I am working on adding build scripts so that folks can contribute to the project. I was thinking on waiting for couple of more commits before releasing a new version.
Will it be possible for you to copy the dist files in the datasource till then ? If not I can work with the Grafana team to have it released.

from druidplugin.

abhisant avatar abhisant commented on August 21, 2024

from druidplugin.

hexchain avatar hexchain commented on August 21, 2024

I've tried replacing _.pluck(array, field) with array.map(i => i[field]) which works great so far, except in a few places the array can be undefined.

Also, could you please add proper build scripts (like in http://grafana.org/blog/2016/04/08/timing-is-everything.-writing-the-clock-panel-plugin-for-grafana-3.0/) to this repo? Should be easier to contribute then.

Thanks!

from druidplugin.

abhisant avatar abhisant commented on August 21, 2024

Sure, thanks.
@hexchain , I will be traveling out of the country for around a month and will be back on Feb 06. I am trying to windup my stuff before I leave. Will try my best to address your issue. Else, will work remotely and get back to you as soon as I can.

from druidplugin.

abhisant avatar abhisant commented on August 21, 2024

Looks like this got introduced when the Grafana team added the following change:
upraded lodash to 4.15.0, closes #6021
Saw this in one of the datasource plugins:
grafana/grafana@649d9f9

from druidplugin.

abhisant avatar abhisant commented on August 21, 2024

Sorry again @yacir : As I mentioned, I am currently out of the country till Feb 06 (with intermittent internet connectivity). Looks like lot of folks are waiting on this. I will try to work on this as soon as I get some time. Thanks for being patient.

from druidplugin.

knoguchi avatar knoguchi commented on August 21, 2024

I suggest _.map(objects, field) or _.map(objects, (e) => {....return ...})syntax. This way it wouldn't fail.

from druidplugin.

abhisant avatar abhisant commented on August 21, 2024

Just updated the datasource.js and replaced pluck with map.
"TypeError: _.pluck is not a function" -> This looks to be resolved. Yet to test remaining scenarios.

Please copy the files from dist folder and replace it with the files in the folder:
grafana-<4.x.x>/data/plugins/abhisant-druid-datasource/.

from druidplugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.