Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Unfortunately when In-Portal page referencing assets is transformed into static HTML and later used outside of In-Portal (e.g. on the WordPress) the referenced assets won't exist anymore. The assets won't exist because next deployment removed them in hope, that next website visit would happen and rebuild them.

Solution

...

  1. create "MinifyHelper::

...

  1. dump" method, that will CURL website homepage to trigger generation of

...

  1. assets
  2. create "adm:OnDumpAssets" event, that will call "MinifyHelper::delete" and "MinifyHelper::dump" methods
  3. no longer call "MinifyHelper::delete" method from "kThemesHelper::refreshThemes" method
  4. create "DeploymentHelper::dumpAssets" method, that will:
    1. be declared after and be similar to "DeploymentHelper::refreshThemes" method
    2. call "adm:adm:OnDumpAssets" event
  5. call "DeploymentHelper::dumpAssets" method right after "DeploymentHelper::refreshThemes" method
  6. on "Tools > System Tools" page:
    1. update documentation for "Deploy" button to explain that assets are also being dumped
    2. add another button for dumping assets

Related Tasks

Jira Legacy
serverSystem Jira
serverId513b375f-8291-3313-9d9f-704c39b1f915
keyINP-1706