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
Léo-Paul Géneau
gitlab-ce
Commits
7fc88fd7
Commit
7fc88fd7
authored
Mar 01, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Projects::Settings:CiCdController#reset_cache a json endpoint
parent
daa0c929
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
app/controllers/projects/settings/ci_cd_controller.rb
app/controllers/projects/settings/ci_cd_controller.rb
+6
-4
No files found.
app/controllers/projects/settings/ci_cd_controller.rb
View file @
7fc88fd7
...
...
@@ -13,12 +13,14 @@ module Projects
def
reset_cache
if
ResetProjectCacheService
.
new
(
@project
,
current_user
).
execute
flash
[
:notice
]
=
_
(
"Project cache successfully reset."
)
respond_to
do
|
format
|
format
.
json
{
head
:ok
}
end
else
flash
[
:error
]
=
_
(
"Unable to reset project cache."
)
respond_to
do
|
format
|
format
.
json
{
head
:bad_request
}
end
end
redirect_to
project_pipelines_path
(
@project
)
end
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