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
    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
    django.db.utils.IntegrityError: null value in column "name" violates not-null constraint
    DETAIL: Failing row contains (41, null, cabot_alert_webhook, webhookalert).
    Please help me out @frankh
    Frank Hamand
    @frankh
    looks like maybe some of the migrations didn't run
    could you try manually running some of the migrations, using python manage.py migrate myapp 0005_migration_to_run
    e.g. python manage.py cabotapp 0002_auto_20170131_1537
    Karthik Srivatsa
    @ksrivatsa
    It was django contenttypes
    Somewhere during the releases they have removed a column "name" in the table.
    Removing that made the installation happen and the plugin works fine.
    Frank Hamand
    @frankh
    cool
    Karthik Srivatsa
    @ksrivatsa
    But now the worker is giving an issue
    u'[[], {}, {"chord": null, "callbacks": null, "errbacks": null, "chain": null}]' (77b)
    Traceback (most recent call last):
    File "/usr/local/lib/python2.7/site-packages/celery/worker/consumer/consumer.py", line 559, in on_taskreceived
    strategy = strategies[type
    ]
    KeyError: 'cabot.cabotapp.tasks.run_all_checks'
    It keeps throwing this error
    Cant believe I have been on this for close to 5 hrs now!
    Any idea where that can be happening?
    The /status page tells me that the checks are running fine
    Frank Hamand
    @frankh
    thats really strange
    how are you running the worker? just with docker compose?