Serve resized Design Management design files
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
- [-] Changelog entry
- [-] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides - [-] Database guides
- [-] Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. - [-] Tested in all supported browsers
- [-] Informed Infrastructure department of a default or new setting change, if applicable per definition of done