Skip to content

Commit

Permalink
Merge pull request #1267 from acquia/ACMS-1431-v1.5.1
Browse files Browse the repository at this point in the history
ACMS-1431: Release acquia_cms:1.5.2
  • Loading branch information
vishalkhode1 authored Sep 28, 2022
2 parents d2a1b75 + 1d3b47f commit 494fa63
Show file tree
Hide file tree
Showing 4 changed files with 1,738 additions and 1,589 deletions.
37 changes: 1 addition & 36 deletions acquia_cms.profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use Acquia\DrupalEnvironmentDetector\AcquiaDrupalEnvironmentDetector as Environm
use Acquia\Utility\AcquiaTelemetry;
use Drupal\acquia_cms\Facade\TelemetryFacade;
use Drupal\acquia_cms\Form\SiteConfigureForm;
use Drupal\acquia_cms_site_studio\Facade\CohesionFacade;
use Drupal\Core\Installer\InstallerKernel;
use Symfony\Component\Console\Output\ConsoleOutput;

Expand Down Expand Up @@ -102,12 +101,6 @@ function acquia_cms_install_tasks(): array {

// Allow acquia_cms_site_studio module to be install using profile.
if (Drupal::service('module_handler')->moduleExists('acquia_cms_site_studio')) {
$tasks['install_acms_site_studio_initialize'] = [
'display_name' => t('Import Site Studio elements'),
'display' => $cohesion_configured,
'type' => 'batch',
'run' => $cohesion_configured ? INSTALL_TASK_RUN_IF_NOT_COMPLETED : INSTALL_TASK_SKIP,
];
$tasks['install_acms_site_studio_ui_kit'] = [
'display_name' => t('Import Site Studio components'),
'display' => $cohesion_configured,
Expand Down Expand Up @@ -166,35 +159,7 @@ function install_acms_send_heartbeat_event() {
* @throws Exception
*/
function install_acms_site_studio_ui_kit() {
// During testing, we don't import the UI kit, because it takes forever.
// Instead, we swap in a pre-built directory of Cohesion templates and assets.
if (getenv('COHESION_ARTIFACT')) {
return [];
}

/** @var \Drupal\acquia_cms\Facade\CohesionFacade $facade */
$facade = Drupal::classResolver(CohesionFacade::class);

// Site studio will rebuild packages (fetch HTML/CSS via the API) by default
// on import. Passing this bool as TRUE will skip the rebuild, since we force
// a total rebuild at the end. This cuts install times approximately in half,
// especially via Drush.
$operations = $facade->getAllOperations(TRUE);
$batch = [
'operations' => $operations,
'finished' => 'update_site_studio_settings',
];

// Set batch along with drush backend process if site is being
// installed via Drush, so that we can show log on the screen during
// site studio package import/validate.
if (PHP_SAPI == 'cli') {
batch_set($batch);
drush_backend_batch_process();
}
else {
return $batch;
}
\Drupal::service('acquia_cms_common.utility')->siteStudioPackageImport();
}

/**
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"drupal/acquia_claro": "^1.3.2",
"drupal/acquia_cms_audio": "^1.3.2",
"drupal/acquia_cms_component": "^1.3.1",
"drupal/acquia_cms_site_studio": "^1.3.5",
"drupal/acquia_cms_starter": "^1.3.0",
"drupal/acquia_cms_toolbar": "^1.3.3",
"drupal/acquia_cms_tour": "^1.3.0",
Expand Down
Loading

0 comments on commit 494fa63

Please sign in to comment.