Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Karthik Srivatsa
    @ksrivatsa
    'link_name':1 has to be passed in the post request
    Should I create an issue?
    Frank Hamand
    @frankh
    ah, good catch, i was wondering about that
    i'll fix it :+1:
    Karthik Srivatsa
    @ksrivatsa
    Ok. Please let me know when you do. :)
    I have tried it and it works
    Frank Hamand
    @frankh
    @ksrivatsa I've just tried it and it didn't work... I tried adding 'link_names': True, and 'link_names': 1, to the request post data and it didn't make a difference
    Karthik Srivatsa
    @ksrivatsa
    Hmm.. strange
    I had it working in my previous setup
    It has to be fixed though. I'll try to find other solutions.
    Karthik Srivatsa
    @ksrivatsa
    Try adding it in the attachments section.
    Frank Hamand
    @frankh
    i can't get link_names working at all with the webhook
    Karthik Srivatsa
    @ksrivatsa
    Hmm.. Even when you pass the param in the attachments section in the payload?
    Frank Hamand
    @frankh
    curl -X POST --data-urlencode 'payload={"text": "This is a test message to #test from @frank", "channel": "#test", "link_names":"1"}' 'https://hooks.slack.com/services/XXXXXX
    this doesn't work for me, does it work with your webhook?
    Karthik Srivatsa
    @ksrivatsa
    Gimme a sec, lemme try
    Do not give the 1 in double quotes
    Frank Hamand
    @frankh
    i tried with and without, and true
    Karthik Srivatsa
    @ksrivatsa
    'payload={"text": "This is a test message to @ksrivatsa", "channel": "#engineering", "link_names":1}'
    This worked for me. Tried just now.
    Frank Hamand
    @frankh
    not for me :(
    Karthik Srivatsa
    @ksrivatsa
    Have you configured the webhook to the same channel ie. #test ?
    Frank Hamand
    @frankh
    yep
    Karthik Srivatsa
    @ksrivatsa
    This might be silly but is your slack alias @frank or @frankh ? :D
    Haha..
    Frank Hamand
    @frankh
    it's the right alias, works when i say the same message :(
    it could be because the webhook is part of an app?
    Karthik Srivatsa
    @ksrivatsa
    Yeah. Maybe.
    This definitely works. So please try it with a fresh integration and add it to the alert plugin.
    Because the mentions are vital in the message.
    Frank Hamand
    @frankh
    it works with a regular webhook...
    but you can't use interactive messages with that
    Karthik Srivatsa
    @ksrivatsa
    I tried 1, "1" and True
    All of them work
    Hmm..
    Cant we just add that as a param anyway?
    Karthik Srivatsa
    @ksrivatsa
    @frankh On a different note, If i have a third party plugin created, how do i go about using it in the dockerized setup?
    Just adding the plugin to the env variable will install it and make the migrations huh?
    Frank Hamand
    @frankh
    no, not at the moment :/
    Karthik Srivatsa
    @ksrivatsa
    So how do i do it?
    Frank Hamand
    @frankh
    currently the way to do it is to use a custom Dockerfile which builds from cabot and installs the plugin
    Karthik Srivatsa
    @ksrivatsa
    Ah.. alright. Will give it a shot.
    Frank Hamand
    @frankh
    I just pushed a new version which fixes the @mentions, 0.10.8
    Karthik Srivatsa
    @ksrivatsa
    Alright. Thanks
    Karthik Srivatsa
    @ksrivatsa
    @frankh To install a third party plugin, Even before the "cabot migrate" command in the compose file, I installed using pip and tried to do the migration after. But the migration is not considering the new app. Why might this be happening?
    Apply all migrations: admin, auth, cabot_alert_email, cabot_alert_hipchat, cabot_alert_slack, cabot_alert_twilio, cabotapp, contenttypes, sessions, sites
    My third party app isnt seen here. And I have added it to the env variable in production.env
    The pip install happens successfully!
    Karthik Srivatsa
    @ksrivatsa
    Well I got past that, but now this is being thrown when i try to migrate