Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
a6bdf7d8
Commit
a6bdf7d8
authored
Jan 23, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show success/error message for test services button
parent
d3d64a45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
CHANGELOG
CHANGELOG
+1
-1
app/controllers/projects/services_controller.rb
app/controllers/projects/services_controller.rb
+6
-2
No files found.
CHANGELOG
View file @
a6bdf7d8
...
@@ -22,7 +22,7 @@ v 7.8.0
...
@@ -22,7 +22,7 @@ v 7.8.0
-
-
- Upgrade Sidekiq gem to version 3.3.0
- Upgrade Sidekiq gem to version 3.3.0
- Stop git zombie creation during force push check
- Stop git zombie creation during force push check
-
-
Show success/error messages for test setting button in services
-
-
- Fix commits pagination
- Fix commits pagination
-
-
...
...
app/controllers/projects/services_controller.rb
View file @
a6bdf7d8
...
@@ -25,9 +25,13 @@ class Projects::ServicesController < Projects::ApplicationController
...
@@ -25,9 +25,13 @@ class Projects::ServicesController < Projects::ApplicationController
def
test
def
test
data
=
Gitlab
::
PushDataBuilder
.
build_sample
(
project
,
current_user
)
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
end
private
private
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment