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

Modernize or deprecate remaining AUI utilities

    Details

    • Epic/Theme:
    • Story Points:
      1
    • Main Core Job:
      Engage - Inform Users
    • Epic Status:
      To Do
    • Sprint:
      S05E01 - Dark Souls, S05E02 - Path of Exile, S05E03 - Tibia, S05E04 - Half Life

      Description

      This ticket covers the items not dealt with in the first pass at modernizing the AUI utilities, https://issues.liferay.com/browse/LPS-101611 ("Modernization of minor Javascript utilities") and not already planned in https://issues.liferay.com/browse/LPS-101986 ("Modernization of form utilities") or https://issues.liferay.com/browse/LPS-101984 ("Update Modal Patterns to match Lexicon Definition").

      Namely, everything that is left in "liferay/util.js" in frontend-js-aui-web:

      https://github.com/liferay/liferay-portal/blob/master/modules/apps/frontend-js/frontend-js-aui-web/src/main/resources/META-INF/resources/liferay/util.js

      That means:

      • checkTab()
      • getAttributes()
      • getColumnId()
      • getGeolocation()
      • getLexiconIcon()
      • getLexiconIconTpl()
      • getOpener()
      • getTop()
      • getURLWithSessionId()
      • getWindow()
      • getWindowName()
      • processTab()
      • removeEntitySelection()
      • savePortletTitle()
      • selectFolder()
      • setCursorPosition()
      • setSelectionRange()
      • showCapsLock()
      • sub()
      • openDDMPortlet via Liferay.Provide
      • portletTitleEdit via Liferay.Provide
      • toggleControls via Liferay.Provide
      • STATUS_CODE
      • zIndex

       With all of the tasks in this epic, the procedure is going to be as follows:

      1. Double-check the item to confirm that it doesn't actually fit better in one of the existing open epics (mentioned above).
      2. Analyze the code's purpose and usage to determine the correct course of action: eg. deprecating (if it is no longer used), or migrating somewhere else. Remember that our goals here are two-fold: to remove all dependency on AUI (see https://issues.liferay.com/browse/LPS-98564 — "Remove AUI / YUI from Liferay Portal") so that we can turn off frontend-js-aui-web by default, and for any functionality that needs to live on, we want it ported into a "modernized" format (ie. remove dependency on legacy APIs and libraries, pay off technical debt etc).
      3. Actually make the necessary changes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kresimir.coko Krešimir Čoko
              Reporter:
              greg.hurrell Greg Hurrell (Inactive)
              Recent user:
              Krešimir Čoko
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package