Commit graph

4 commits

Author SHA1 Message Date
Stan Hu
05f30ac6bb Disable audit event logging for pipeline destruction
AuditEventService isn't equipped to handle logging of the destruction of
entities such as CI pipelines. It's a project-level event that operates
on a pipeline. The current log doesn't even indicate that the pipeline
is being destroyed.

This is a CE backport of
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9105.  We're
removing the auditing call because it breaks the EE implementation.
2019-01-10 01:30:41 -08:00
Matija Čupić
b7e5f73cd7
Raise exception when user is not authorized 2018-11-13 19:00:28 +01:00
Matija Čupić
0bc14b4522
Authorize DestroyPipelineService against pipeline 2018-11-13 17:24:10 +01:00
Matija Čupić
99203bfe23
Destroy pipeline in service
Move all logic for destroying a Pipeline into a service so it's easily
reusable.
2018-11-12 19:43:03 +01:00