Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-71446

Don't allow default image resolutions for every virtual instance because it can lead to data corruption and it's not easy to manage

    Details

      Description

      Motive

      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.

      Acceptance Criteria

      • 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.

      User Experience

      Summary

      • Remove "Reset Default Values" action
      • Remove info alert about default configuration
      • Remove configuration from System Settings

      Interaction

      Behavior

      • Don't show contextual menu (three dots icon) until there is any image resolution added.

      Design

      Without Info Alert

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sergio.gonzalez Sergio Gonzalez (Inactive)
              Reporter:
              sergio.gonzalez Sergio Gonzalez (Inactive)
              Recent user:
              Kiyoshi Lee
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.0.0 M6
                  7.1.X
                  Master