From 45f38662e34d5ca86e4b45fbe641505d3a690d1c Mon Sep 17 00:00:00 2001 From: Alex Tkachev Date: Fri, 28 Jun 2024 20:05:04 +0400 Subject: [PATCH] chore(SLB-336): add replicate module --- apps/cms/composer.json | 1 + apps/cms/composer.lock | 130 +++++++++++++++++- apps/cms/config/sync/core.extension.yml | 2 + .../cms/config/sync/replicate_ui.settings.yml | 5 + .../config/sync/user.role.administrator.yml | 2 + apps/cms/config/sync/user.role.editor.yml | 2 + 6 files changed, 138 insertions(+), 4 deletions(-) create mode 100644 apps/cms/config/sync/replicate_ui.settings.yml diff --git a/apps/cms/composer.json b/apps/cms/composer.json index d2860b8d1..c2e0d6cec 100644 --- a/apps/cms/composer.json +++ b/apps/cms/composer.json @@ -67,6 +67,7 @@ "drupal/metatag": "^2.0", "drupal/pathauto": "^1.11", "drupal/redirect": "^1.8", + "drupal/replicate_ui": "^1.1", "drupal/reroute_email": "^2.2", "drupal/role_delegation": "^1.2", "drupal/simple_oauth": "^5.2", diff --git a/apps/cms/composer.lock b/apps/cms/composer.lock index 6aa58607b..6b09bf557 100644 --- a/apps/cms/composer.lock +++ b/apps/cms/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f2375207790855cc777235f699c7c2b9", + "content-hash": "4f934e8fc2c92c784d33ad8959e208b2", "packages": [ { "name": "amazeeio/drupal_integrations", @@ -3866,6 +3866,131 @@ "source": "https://git.drupalcode.org/project/redirect" } }, + { + "name": "drupal/replicate", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/replicate.git", + "reference": "8.x-1.3" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/replicate-8.x-1.3.zip", + "reference": "8.x-1.3", + "shasum": "58598b086285349230f08e4d13d959ca65526081" + }, + "require": { + "drupal/core": "^9.1 || ^10 || ^11" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-1.3", + "datestamp": "1719242891", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "Berdir", + "homepage": "https://www.drupal.org/user/214652" + }, + { + "name": "dawehner", + "homepage": "https://www.drupal.org/user/99340" + }, + { + "name": "geek-merlin", + "homepage": "https://www.drupal.org/user/229048" + }, + { + "name": "jgalletta", + "homepage": "https://www.drupal.org/user/1187850" + }, + { + "name": "vbouchet", + "homepage": "https://www.drupal.org/user/1671428" + }, + { + "name": "VladimirAus", + "homepage": "https://www.drupal.org/user/673120" + } + ], + "description": "Replicate provide an API to replicate (duplicate) entities. This modules also provide hooks to control exactly how parts of an entity are duplicated.", + "homepage": "https://www.drupal.org/project/replicate", + "support": { + "source": "https://git.drupalcode.org/project/replicate" + } + }, + { + "name": "drupal/replicate_ui", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/replicate_ui.git", + "reference": "8.x-1.1" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/replicate_ui-8.x-1.1.zip", + "reference": "8.x-1.1", + "shasum": "fade816b12a76df62621c363264e18ae17ee99e2" + }, + "require": { + "drupal/core": "^9 || ^10", + "drupal/replicate": "^1.0" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-1.1", + "datestamp": "1679704077", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "Berdir", + "homepage": "https://www.drupal.org/user/214652" + }, + { + "name": "btopro", + "homepage": "https://www.drupal.org/user/24286" + }, + { + "name": "dawehner", + "homepage": "https://www.drupal.org/user/99340" + }, + { + "name": "dhruveshdtripathi", + "homepage": "https://www.drupal.org/user/3083735" + }, + { + "name": "kbrinner", + "homepage": "https://www.drupal.org/user/565800" + } + ], + "description": "Provides a UI for Replicate (local tasks, entity operations with a form)", + "homepage": "https://www.drupal.org/project/replicate_ui", + "support": { + "source": "https://git.drupalcode.org/project/replicate_ui" + } + }, { "name": "drupal/reroute_email", "version": "2.2.1", @@ -15815,8 +15940,5 @@ "php": "^8.2 <8.3" }, "platform-dev": [], - "platform-overrides": { - "php": "8.2" - }, "plugin-api-version": "2.6.0" } diff --git a/apps/cms/config/sync/core.extension.yml b/apps/cms/config/sync/core.extension.yml index 84b5d6503..59be63a72 100644 --- a/apps/cms/config/sync/core.extension.yml +++ b/apps/cms/config/sync/core.extension.yml @@ -56,6 +56,8 @@ module: path_alias: 0 phpass: 0 redirect: 0 + replicate: 0 + replicate_ui: 0 reroute_email: 0 role_delegation: 0 serialization: 0 diff --git a/apps/cms/config/sync/replicate_ui.settings.yml b/apps/cms/config/sync/replicate_ui.settings.yml new file mode 100644 index 000000000..1a950da6d --- /dev/null +++ b/apps/cms/config/sync/replicate_ui.settings.yml @@ -0,0 +1,5 @@ +_core: + default_config_hash: kTj4VrfBBlmTowM6GEcqnV6rS5DvkIeeWJSGHyda1e4 +entity_types: + - node +check_edit_access: true diff --git a/apps/cms/config/sync/user.role.administrator.yml b/apps/cms/config/sync/user.role.administrator.yml index c6d92bb9a..fe433cbac 100644 --- a/apps/cms/config/sync/user.role.administrator.yml +++ b/apps/cms/config/sync/user.role.administrator.yml @@ -20,6 +20,7 @@ dependencies: - node - path - redirect + - replicate_ui - role_delegation - shortcut - silverback_campaign_urls @@ -71,6 +72,7 @@ permissions: - 'edit config_pages entity' - 'edit own webform' - 'edit own webform submission' + - 'replicate entities' - 'translate editable entities' - 'translate interface' - 'trigger a gatsby build' diff --git a/apps/cms/config/sync/user.role.editor.yml b/apps/cms/config/sync/user.role.editor.yml index 321c5fdb9..53303e339 100644 --- a/apps/cms/config/sync/user.role.editor.yml +++ b/apps/cms/config/sync/user.role.editor.yml @@ -18,6 +18,7 @@ dependencies: - node - path - redirect + - replicate_ui - shortcut - silverback_external_preview - silverback_gatsby @@ -51,6 +52,7 @@ permissions: - 'dropzone upload files' - 'edit any page content' - 'edit own page content' + - 'replicate entities' - 'revert page revisions' - 'translate editable entities' - 'trigger a gatsby build'