The recent change to the Slack integration on 7.4.0 broke it completely.
- Changes to Slack service structure, only webhook url needed
Not only does the usability suffer as now you'll need to generate a new integration in Slack for each project / channel. Instead of just copypasting the one key to each project and typing in the channel.
And change the icon and name for the Slack bot for each webhook.
But more importantly, it doesn't even work.
I've created an incoming webhook in Slack:
And copy-pasted the unique webhook url to the project in GitLab, but neither the test button nor pushes to the project send any messages to Slack.
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related or that one is blocking others.
Learn more.
When clicking the test button, the only thing appearing to /home/git/gitlab/log/*.log is:
Started GET "/websites/opus/services/slack/test" for 127.0.0.1 at 2014-10-21 09:13:36 +0300Processing by Projects::ServicesController#test as HTML Parameters: {"project_id"=>"websites/opus", "id"=>"slack"}Redirected to http://projects.useful.fi/websites/opus/services/slack/editCompleted 302 Found in 510ms (ActiveRecord: 3.1ms)Started GET "/websites/opus/services/slack/edit" for 127.0.0.1 at 2014-10-21 09:13:37 +0300Processing by Projects::ServicesController#edit as HTML Parameters: {"project_id"=>"websites/opus", "id"=>"slack"}Completed 200 OK in 36ms (Views: 17.7ms | ActiveRecord: 3.5ms)
The changes were required for slack team to integrate GitLab as predefined integration. In any case you need to set the room on the slack side so setting it in 2 places makes no sense.
The logo will change when Slack finalizes integration.
I cannot replicate this on 7.4.rc1, I have a successful test
Started GET "/gitlab-org/gitlab-ci/services/slack/test" for 127.0.0.1 at 2014-10-21 09:05:41 +0200Processing by Projects::ServicesController#test as HTML Parameters: {"project_id"=>"gitlab-org/gitlab-ci", "id"=>"slack"} User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
Where are you testing this, do you have your own instance and what is the version?
Since 10:00 CET gitlab.com is running 7.4.rc1 and using an incoming webhook https://TEAM.slack.com/services/hooks/incoming-webhook?token=TOKEN I successfully get notifications to slack room from gitlab.com project
Can you try your webhook url on a project on gitlab.com?
How does your hook look like (omit sensitive info)
One more note, the test button does appear on my own server, yet it doesn't work there.
The problem of the non-existent test button is only on gitlab.com.
I may have found a problem related to the webhook url as now I am able to replicate the problem. The issue with missing test settings button I cannot replicate.
I'm too going to patch this back.
We have a ton of projects and I don't have the time to generate a new integration for each project / channel.
It's much easier to just copy-paste the webhook url and type a channel.
Be warned that this will change even further in the next releases as the slack-notifier gem has been updated to use the new syntax Slack is introducing.
Are there any plans on making a Slack integration that would use more of their API?
Something where the API keys or webhook url would have to be set only once on a group or global level and then just select a channel for each project?