Commit a6bdf7d8 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Show success/error message for test services button

parent d3d64a45
......@@ -22,7 +22,7 @@ v 7.8.0
-
- Upgrade Sidekiq gem to version 3.3.0
- Stop git zombie creation during force push check
-
- Show success/error messages for test setting button in services
-
- Fix commits pagination
-
......
......@@ -25,9 +25,13 @@ class Projects::ServicesController < Projects::ApplicationController
def test
data = Gitlab::PushDataBuilder.build_sample(project, current_user)
@service.execute(data)
if @service.execute(data)
message = { notice: 'We sent a request to the provided URL' }
else
message = { alert: 'We tried to send a request to the provided URL but error occured' }
end
redirect_to :back
redirect_to :back, message
end
private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment