Skip to content

Move ChatOps alias matching from hubot to the API (server side) #3162

Open
@Kami

Description

@Kami

Something I have suggested many times in the past already.

Right now matching happens in two places - inside API and inside the hubot. This means we need to maintain same / similar code which is error prone (bugs, etc.) and time consuming.

In addition to that it means matching only really works with hubot right now and making it work with any other medium / bot requires duplicating work and effort (aka wasting time).

We should move all the functionality to the server side. This way client (hubot) will be dumb and much easier to maintain. It should simply send every line addressed to hubot to the API and API will perform and match and execute if a string matches - #2895 (comment)

In addition to that, this will make it very easy for users to integrate StackStorm ChatOps with arbitrary bot / medium (simply send every line of text to StackStorm API - done!).

First part of that was already done in #2895 and second part which is needed is described in #2895 (comment) (+ hubot changes of course).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions