Affects Version/s: None
Component/s: Adaptive Media
Adaptive Media supported the capability to add default image resolutions for every virtual instance by configuring it through System Settings through a complex syntax, such as high-resolution-image:1234:max-height=3000px;max-width=5000px
However, this has been proven to be problematic because right now System Settings doesn't support the ability to add custom actions when adding/updating/deleting configuration and this can easily lead to data loss or data corrupted. We cannot ensure or enforce that everytime a new default image resolution is deleted, all the adaptive media images associated to that image resolution are deleted.
Stories https://issues.liferay.com/browse/LPS-70591 and https://issues.liferay.com/browse/LPS-70592 were created to avoid having situations where the data might be corrupted or lost easily. Unfortunately, we cannot enforce that either in System Settings.
Therefore, considering the previous scenarios, we consider that data integrity and avoiding data loss are more important than offering the possibility of adding default image resolutions for every virtual instance.
- All the information messages that refer to default image resolutions or default configuration should be removed from adaptive media.
- The action to Reset to Default Values should also be removed from Adaptive Media
- We should hide the Image Variants configuration field from System Settings to avoid Portal Administrators to manually modify that field
- Update the documentation to ensure that we don't document anything regarding default image resolutions for every virtual instance.
- Remove "Reset Default Values" action
- Remove info alert about default configuration
- Remove configuration from System Settings
- Don't show contextual menu (three dots icon) until there is any image resolution added.
Without Info Alert