stephenyeargin / hubot-grafana

📈🤖 Query Grafana dashboards
http://docs.grafana.org/tutorials/hubot_howto/
MIT License
154 stars 48 forks source link

Bye bye `robot.http`, hello `fetch` #182

Closed KeesCBakker closed 3 months ago

KeesCBakker commented 3 months ago

We've been talking for a while now to move away from the robot.http implemention of the HTTP client. I did some more refactoring and we finally don't have to use it anymore. This means our bot is a bit cleaner.

Main points:

KeesCBakker commented 3 months ago

Will test this tomorrow with a real Hubot. But I only use the combination of Slack & S3. @stephenyeargin to you have some sort of a RocketChat instance?

stephenyeargin commented 3 months ago

I do not, that was introduced by @mfilotto back in #70. I would be fine with a good faith effort, and we can address bugs if they come in.

KeesCBakker commented 3 months ago

Refactored the mocha tests, swapped out mocha.opts in favor of .mocharc.json. All tests now use the same config.

Check how it looks in a Visual Studio Code dev container with the Mocha Test adapter:

image

This will make it easier to run certain tests directly from your IDE.