Coder Social home page Coder Social logo

dfe-digital / slack-incident-bot Goto Github PK

View Code? Open in Web Editor NEW
7.0 23.0 2.0 243 KB

A Slack app used for incident management at Department for Education Digital

License: MIT License

Ruby 94.84% HTML 2.20% JavaScript 2.89% Procfile 0.06%
slack bot ruby rails incident-management incident-response incident slack-bot ruby-on-rails incident-response-tooling

slack-incident-bot's People

Contributors

benilovj avatar dankmitchell avatar dependabot[bot] avatar duncanjbrown avatar gpeng avatar jr-g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

benilovj ha36d

slack-incident-bot's Issues

Add a character limit for the incident description input

An incident was opened recently with a topic that exceed the 250 character limit. Fortunately everything else in the process still performed but it did result in the following error:

0.17.0/lib/slack/web/api/endpoints/conversations.rb:313:in `conversations_setTopic'
2021-10-26T13:35:07.395045+00:00 app[web.1]: 	from /app/bot/actions/slack_incident_actions.rb:26:in `block in open_incident'
2021-10-26T13:35:07.502640+00:00 app[web.1]: E, [2021-10-26T13:35:07.502564 #4] ERROR -- : Slack::Web::Api::Errors::TooLong: too_long

Changing the incident priority in the incident channel doesn't post any updates in the channel that the incident was raised

How to reproduce

  1. There is an existing incident that's at P2, say, that's been raised in an existing channel.
  2. I use the /incident update command in the incident channel (incident_...) to change its priority to P1. The bot correctly posts an update in the incident channel.

Expected: The bot posts an update of the incident priority in the existing channel.
Actual: no update is posted.

Create an info/help command

Sometimes people wonder how to use the bot. Perhaps it's worth having a /incident help command that messages the user with instructions on what to do

Improve the tests

Tests are currently quite basic and definitely don't cover the full functionality. They need some love.

Accept generic modals

Currently the bot will only work with a specific modal. In order to make in more generic we need to build functionality so it can accept a modal with n number of fields and handle different data types for each i.e. integer, string or even a slack handle.

Create incident Google doc

Upon declaring a new incident create a new incident doc from the template.
Upon closing an incident extract the incident channel messages (and timestamps) into the doc

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.