Code Monkey home page Code Monkey logo

Comments (6)

stephenyeargin avatar stephenyeargin commented on June 30, 2024

Yeah, the blocker for this so far has been assuring that everything continues to work with the various adapters. Hubot does not have great internal handling of the concept of an "envelope" (or whatever Hipchat/etc. calls it) so that the adapters can do the right thing™. PR #27 from @klynch offers similar functionality, but I had blocked it from merging for the reasons above.

If we can check all these off, it would be golden:

  • IRC or shell users can continue to use the S3 adapter
  • HipChat/Rocketchat/Slack adapter users have a single interface to their respective adapters for posting images natively
  • New chat services (seems like a new one comes along every day) can follow the same pattern

from hubot-grafana.

misterdai avatar misterdai commented on June 30, 2024

The route I went with was ignoring what adapter might be in use, as from what I can tell the current slack adapter doesn't handle file uploads at the moment. So the Slack API Token is kept under the HUBOT_GRAFANA_ naming convention, then it's a simple post request with the file contents. That way, any IRC or other adapters will ignore the Slack code unless that environmental variable is present.

Could probably be implemented better if you were thinking of supporting even more services, at the moment it's just an additional if statement to check for the slack token vs S3 details.

from hubot-grafana.

stephenyeargin avatar stephenyeargin commented on June 30, 2024

Could probably be implemented better if you were thinking of supporting even more services, at the moment it's just an additional if statement to check for the slack token vs S3 details.

Yeah, simply from a roadmap perspective, I wanted to make it as universal as possible. I know that @torkelo has a desire to have a Slack specific integration in the future. From that post:

Grafana is going to ship with integrated Slack and Hipchat features some day but you do not have to wait for that.

So this package won't even be the preferred way to integrate with Slack at some point down the road.

from hubot-grafana.

stephenyeargin avatar stephenyeargin commented on June 30, 2024

Now that robot.adapterName is exposed somewhat reliably in updated Hubots, we could conceivably begin trying to roll back in some of the features created in forks like this one.

from hubot-grafana.

misterdai avatar misterdai commented on June 30, 2024

That'll be my fork :) Feel free to take from it anything worthwhile.

from hubot-grafana.

stephenyeargin avatar stephenyeargin commented on June 30, 2024

#58 appears to have closed this one out to allow uploads over the Slack API.

from hubot-grafana.

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.