Skip to content

Add status page unpublish logic for images

Allison Browne requested to merge ab-205166-status-page-unpublish-images into master

What does this MR do?

Deletes all files at a given prefix to un-publish images from s3.

Part of #205166 (closed)

To run this code and test, within the rails console run:

project = Project.where(id: <dev_project_id>).first
issue = project.issues.find_by(iid: <dev_issue_id>)
StatusPage::UnpublishDetailsService.new(project: project).execute(issue)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Allison Browne

Merge request reports