Skip to content

Serve resized Design Management design files

Luke Duncalfe requested to merge 12577-expose-smaller-design-images into master

What does this MR do?

Serves resized Design Management design files

!22860 (merged) introduced a change in the app to begin resizing designs down to a new "v432x230" version. Previously, Design Management would only serve the full-size designs in every context.

This change refactors the existing Projects::DesignsController into a new base class Projects::DesignManagement::DesignsController. The old controller that served the full-size original design files is now Projects::DesignManagement::Designs::RawImageController, and there is an additional Projects::DesignManagement::Designs::ResizedImageController that can serve resized versions of the designs.

Because the old route was exposed in the REST and GraphQL APIs, a redirection from the old route to the new route has been added in order to support any clients that have cached the old route, or otherwise were referring to the old route. This redirection will be removed in #208256 (closed).

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by 🤖 GitLab Bot 🤖

Merge request reports