Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACMS-4373: Make Acquia CMS Toolbar and Tour work independent. #1909

Merged
merged 14 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/acquia_cms_ci.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ jobs:
matrix:
orca-job:
- INTEGRATED_TEST_ON_LATEST_LTS
- ISOLATED_TEST_ON_CURRENT
- INTEGRATED_TEST_ON_PREVIOUS_MINOR
# - ISOLATED_TEST_ON_CURRENT
acms_job:
- integrated_php_unit_tests
- integrated_existing_site_tests
Expand Down Expand Up @@ -225,7 +226,8 @@ jobs:
matrix:
orca-job:
- INTEGRATED_TEST_ON_LATEST_LTS
- ISOLATED_TEST_ON_CURRENT
- INTEGRATED_TEST_ON_PREVIOUS_MINOR
# - ISOLATED_TEST_ON_CURRENT
#php-version: [ "8.1" ]
modules:
- acquia_cms_article
Expand All @@ -240,6 +242,7 @@ jobs:
- acquia_cms_place
- acquia_cms_search
- acquia_cms_site_studio
- acquia_cms_toolbar
- acquia_cms_tour
- acquia_cms_video
steps:
Expand Down Expand Up @@ -322,14 +325,16 @@ jobs:
matrix:
orca-job:
- INTEGRATED_TEST_ON_LATEST_LTS
# - INTEGRATED_TEST_ON_PREVIOUS_MINOR
- ISOLATED_TEST_ON_CURRENT
- INTEGRATED_TEST_ON_PREVIOUS_MINOR
# - ISOLATED_TEST_ON_CURRENT
php-version:
- 8.1
- 8.3
exclude:
- php-version: 8.1
orca-job: ISOLATED_TEST_ON_CURRENT
orca-job: INTEGRATED_TEST_ON_PREVIOUS_MINOR
# - php-version: 8.1
# orca-job: ISOLATED_TEST_ON_CURRENT
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/acquia_cms_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ jobs:
- acquia_cms_place
- acquia_cms_search
- acquia_cms_site_studio
- acquia_cms_toolbar
- acquia_cms_tour
- acquia_cms_video
steps:
Expand Down
29 changes: 15 additions & 14 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,6 @@
* )
*/
class HeadlessApiKeys extends AcquiaCmsDashboardBase {
/**
* The state interface.
*
* @var \Drupal\Core\State\StateInterface
*/
protected $state;


/**
* The module handler.
*
* @var \Drupal\Core\Extension\ModuleHandlerInterface
*/
protected $moduleHandler;

/**
* The link generator.
*
* @var \Drupal\Core\Utility\LinkGeneratorInterface
*/
protected $linkGenerator;

/**
* The info file parser.
*
* @var \Drupal\Core\Extension\InfoParserInterface
*/
protected $infoParser;

/**
* The EntityTypeManager service.
Expand All @@ -75,27 +47,15 @@ class HeadlessApiKeys extends AcquiaCmsDashboardBase {
*/
protected $module = 'consumers';

/**
* {@inheritdoc}
*/
public function __construct(StateInterface $state, ModuleHandlerInterface $module_handler, LinkGeneratorInterface $link_generator, InfoParserInterface $info_parser, EntityTypeManagerInterface $entity_type_manager, StarterkitNextjsService $starterkit_nextjs_service) {
parent::__construct($state, $module_handler, $link_generator, $info_parser);
$this->entityTypeManager = $entity_type_manager;
$this->starterKitNextjsService = $starterkit_nextjs_service;
}

/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static(
$container->get('state'),
$container->get('module_handler'),
$container->get('link_generator'),
$container->get('info_parser'),
$container->get('entity_type.manager'),
$container->get('acquia_cms_headless.starterkit_nextjs')
);
$instance = parent::create($container);
$instance->entityTypeManager = $container->get('entity_type.manager');
$instance->starterKitNextjsService = $container->get('acquia_cms_headless.starterkit_nextjs');

return $instance;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,6 @@
* )
*/
class HeadlessApiUsers extends AcquiaCmsDashboardBase {
/**
* The state interface.
*
* @var \Drupal\Core\State\StateInterface
*/
protected $state;


/**
* The module handler.
*
* @var \Drupal\Core\Extension\ModuleHandlerInterface
*/
protected $moduleHandler;

/**
* The link generator.
*
* @var \Drupal\Core\Utility\LinkGeneratorInterface
*/
protected $linkGenerator;

/**
* The info file parser.
*
* @var \Drupal\Core\Extension\InfoParserInterface
*/
protected $infoParser;

/**
* The EntityTypeManager service.
Expand Down Expand Up @@ -81,28 +53,16 @@ class HeadlessApiUsers extends AcquiaCmsDashboardBase {
*/
protected $headlessRoleLabel;

/**
* {@inheritdoc}
*/
public function __construct(StateInterface $state, ModuleHandlerInterface $module_handler, LinkGeneratorInterface $link_generator, InfoParserInterface $info_parser, EntityTypeManagerInterface $entity_type_manager, StarterkitNextjsService $starterkit_nextjs_service) {
parent::__construct($state, $module_handler, $link_generator, $info_parser);
$this->entityTypeManager = $entity_type_manager;
$this->headlessRoleLabel = $entity_type_manager->getStorage('user_role')->load('headless')->label();
$this->starterKitNextjsService = $starterkit_nextjs_service;
}

/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static(
$container->get('state'),
$container->get('module_handler'),
$container->get('link_generator'),
$container->get('info_parser'),
$container->get('entity_type.manager'),
$container->get('acquia_cms_headless.starterkit_nextjs')
);
$instance = parent::create($container);
$instance->entityTypeManager = $container->get('entity_type.manager');
$instance->starterKitNextjsService = $container->get('acquia_cms_headless.starterkit_nextjs');
$instance->headlessRoleLabel = $instance->entityTypeManager->getStorage('user_role')->load('headless')->label();

return $instance;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,6 @@
* )
*/
class HeadlessNextEntityTypes extends AcquiaCmsDashboardBase {
/**
* The state interface.
*
* @var \Drupal\Core\State\StateInterface
*/
protected $state;


/**
* The module handler.
*
* @var \Drupal\Core\Extension\ModuleHandlerInterface
*/
protected $moduleHandler;

/**
* The link generator.
*
* @var \Drupal\Core\Utility\LinkGeneratorInterface
*/
protected $linkGenerator;

/**
* The info file parser.
*
* @var \Drupal\Core\Extension\InfoParserInterface
*/
protected $infoParser;

/**
* The EntityTypeManager service.
Expand All @@ -74,27 +46,15 @@ class HeadlessNextEntityTypes extends AcquiaCmsDashboardBase {
*/
protected $module = 'next';

/**
* {@inheritdoc}
*/
public function __construct(StateInterface $state, ModuleHandlerInterface $module_handler, LinkGeneratorInterface $link_generator, InfoParserInterface $info_parser, EntityTypeManagerInterface $entity_type_manager, StarterkitNextjsService $starterKitNextjsService) {
parent::__construct($state, $module_handler, $link_generator, $info_parser);
$this->entityTypeManager = $entity_type_manager;
$this->starterKitNextjsService = $starterKitNextjsService;
}

/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static(
$container->get('state'),
$container->get('module_handler'),
$container->get('link_generator'),
$container->get('info_parser'),
$container->get('entity_type.manager'),
$container->get('acquia_cms_headless.starterkit_nextjs')
);
$instance = parent::create($container);
$instance->entityTypeManager = $container->get('entity_type.manager');
$instance->starterKitNextjsService = $container->get('acquia_cms_headless.starterkit_nextjs');

return $instance;
}

/**
Expand Down
Loading
Loading