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

feat(sumologic-image-widget) : Hubot can display widget from a sumologic dashboard #8

Open
wants to merge 40 commits into
base: master
Choose a base branch
from

Conversation

julien-vidal
Copy link

🚧 🚧 Work in progress 🚧 🚧

julien-vidal and others added 4 commits March 9, 2016 15:04
- Sumo API still in beta on that part, doesn't work well
on dashboard description and especially on widget description
the part we need of course ;)
- (test only) info available to get dashboard info
- (test only) data available to get dashboard data
- (wip) show, for now you have to enter a combo
dashboardid-widgetid for display a picture of a dash.
- exclude dump.rdb created by local hubot
- Dev task just run hubot locally
@firehist
Copy link

🚀

@@ -49,6 +63,7 @@ module.exports = (robot) ->
Dashboard URL manager
`!dashboard set <url>` : Switch to given URL
`!dashboard sumo <dashboardId>` : Switch to the dashboardId URL
`!dashboard show <dashboardId>-<widgetId>` : Get picture of a widget

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my mind, dashboard means the TV Dashboard :)
Maybe use a sumologic cmd ? :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is just for testing, will disappear when finished ^^

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for sure, feel free it's a dashboard TV manager, I don't have TV

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should buy one 😜
Really under construction lol, I think I will move my dev in an other place at the end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For sure I should buy one.
Waiting our office keys 🍭


console.log "Ready to slack it !"

form.submit("https://slack.com/api/files.upload", (err, res) ->

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So simple :)
You rock 🎸

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So nice ! But it's not finished yet !

julien-vidal and others added 19 commits March 23, 2016 13:42
- Format chart of type stackedBar (Waouuu)
- Clean and tidy mocks
- Next: Finish stackedBar format data for highchart
- stackedBar works but it is ugly
- Implement Promise and allow chainability
- Untie widgetFinder/GraphBuilder/sendToSlack
- sumo command is now composed of each logic step.
- Formatters disappear replaced by Charts
- Charts use a lib like highchart or not and each one is responsible to
how they will render in a dom window.
- Hubot can be teleported to be shared accross classes
- Some clean
- Highcharts helper should be done
- SvgHelper will be implemented soon
- (WIP) Non tested yet !
- They are just template to fill for now
- Implemented in graphBuilder
- Previously we expect the constructor of a graph
class to return the jsDom document object. This wasn't a good idea
now each graph class have to implement a method getSvg which is
responsible to return the expected svg string.
- This allow us to do what we want in graph class instead of adding
a hidden dep to jsdom...
- This graph doesn't rely on highcharts, they are too
simple ! We directly use svg template for them. They
are pretty simple for now and aren't able to color them
like sumo. We don't have this rules so we can't do that
for now.
- Next : Bind this graphs to sumo data !
- Update roadmap too
- Transformation from sumo is too simple and doesn't handle
all cases.
- now : graphBuilder try to use temp file
- next : Test it / export code to a dedicated class
- Working code but completely ugly
- Refactor it in clean class in next commit plz !
julien-vidal and others added 14 commits March 30, 2016 19:01
- SendToslack left for integration.
- File uploaded with a special name can be considered
as a source of knowledge by hubot
- He try to get this file, parse it as json and extend his
memory.
- Brain is used for persistence.
- WidgetFinder is now based on it
- Readme updated
- not removed for let a footprint of how this
works
- SendToSlack should work everywhere
- We log a bit more the main process
- Todo removed and done 🧌
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants