From bdd6f022e9d9f6e8f06415ea4112d4bc18e0ff48 Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 7 Feb 2022 20:08:54 +0100 Subject: [PATCH] added masquerade module --- composer.json | 1 + composer.lock | 71 ++++++++++++++++++- config/devel/devel.settings.yml | 9 ++- config/sync/core.extension.yml | 1 + .../sync/simplenews.newsletter.companies.yml | 1 + config/sync/webform.webform.contact.yml | 4 +- patches/flag_lists_cleaning.md | 44 ++++++++++++ 7 files changed, 127 insertions(+), 4 deletions(-) create mode 100644 patches/flag_lists_cleaning.md diff --git a/composer.json b/composer.json index 5a7cb0c7..fd281ef2 100644 --- a/composer.json +++ b/composer.json @@ -118,6 +118,7 @@ "drupal/login_tracker": "^1.4", "drupal/mailgun": "^1.x-dev", "drupal/mailsystem": "^4.1", + "drupal/masquerade": "2.x-dev@dev", "drupal/migrate_devel": "2.x-dev@dev", "drupal/migrate_plus": "5.x-dev@dev", "drupal/migrate_tools": "5.x-dev@dev", diff --git a/composer.lock b/composer.lock index d2310389..76be7c1b 100644 --- a/composer.lock +++ b/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": "914a2babd07fb0f3e56775b890f01b4c", + "content-hash": "5578ce008e17282080b4c8861506f071", "packages": [ { "name": "alchemy/zippy", @@ -10138,6 +10138,74 @@ "source": "https://git.drupalcode.org/project/mailsystem" } }, + { + "name": "drupal/masquerade", + "version": "dev-2.x", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/masquerade.git", + "reference": "c130db7035adc5da01d9ac26faf1de53d3713f76" + }, + "require": { + "drupal/core": "^8.8 || ^9" + }, + "type": "drupal-module", + "extra": { + "branch-alias": { + "dev-2.x": "2.x-dev" + }, + "drupal": { + "version": "8.x-2.0-beta4+2-dev", + "datestamp": "1614910132", + "security-coverage": { + "status": "not-covered", + "message": "Project has not opted into security advisory coverage!" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Andrey Postnikov (andypost)", + "homepage": "https://www.drupal.org/u/andypost", + "role": "Maintainer" + }, + { + "name": "David Norman (deekayen)", + "homepage": "https://www.drupal.org/u/deekayen", + "role": "Maintainer" + }, + { + "name": "Mark Shropshire (shrop)", + "homepage": "https://www.drupal.org/u/shrop", + "role": "Maintainer" + }, + { + "name": "Daniel Kudwien (sun)", + "homepage": "https://www.drupal.org/u/sun", + "role": "Maintainer" + }, + { + "name": "Andrew Berry (deviantintegral)", + "homepage": "https://www.drupal.org/u/deviantintegral", + "role": "Maintainer" + }, + { + "name": "sun", + "homepage": "https://www.drupal.org/user/54136" + } + ], + "description": "Allows privileged users to masquerade as another user.", + "homepage": "https://www.drupal.org/project/masquerade", + "support": { + "source": "https://git.drupal.org/project/masquerade.git", + "issues": "https://www.drupal.org/project/issues/masquerade", + "irc": "irc://irc.freenode.org/drupal-contribute" + } + }, { "name": "drupal/matomo", "version": "1.11.0", @@ -21987,6 +22055,7 @@ "drupal/login_destination": 20, "drupal/login_history": 20, "drupal/mailgun": 20, + "drupal/masquerade": 20, "drupal/migrate_devel": 20, "drupal/migrate_plus": 20, "drupal/migrate_tools": 20, diff --git a/config/devel/devel.settings.yml b/config/devel/devel.settings.yml index 324d89c6..743fcf6b 100644 --- a/config/devel/devel.settings.yml +++ b/config/devel/devel.settings.yml @@ -1 +1,8 @@ -devel_dumper: default +page_alter: false +raw_names: false +error_handlers: + - 0 +rebuild_theme: false +devel_dumper: kint +debug_logfile: 'temporary://drupal_debug.txt' +debug_pre: false diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 6e54b25e..16890d76 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -127,6 +127,7 @@ module: mailgun: 0 maillog: 0 mailsystem: 0 + masquerade: 0 materio_commerce: 0 materio_decoupled: 0 materio_expo: 0 diff --git a/config/sync/simplenews.newsletter.companies.yml b/config/sync/simplenews.newsletter.companies.yml index 76d52842..fa2eddc6 100644 --- a/config/sync/simplenews.newsletter.companies.yml +++ b/config/sync/simplenews.newsletter.companies.yml @@ -12,6 +12,7 @@ from_name: materiO’ subject: '[node:title]' from_address: info@materio.com hyperlinks: true +allowed_handlers: { } new_account: none opt_inout: double weight: 0 diff --git a/config/sync/webform.webform.contact.yml b/config/sync/webform.webform.contact.yml index d5955a94..042341c7 100644 --- a/config/sync/webform.webform.contact.yml +++ b/config/sync/webform.webform.contact.yml @@ -5,6 +5,8 @@ dependencies: enforced: module: - webform +_core: + default_config_hash: Q4QShRpLvlheaOjtXj4lKYXCOGMiuBopVI6GYCCWRK8 open: null close: null weight: 0 @@ -273,5 +275,3 @@ handlers: theme_name: '' parameters: { } variants: { } -_core: - default_config_hash: Q4QShRpLvlheaOjtXj4lKYXCOGMiuBopVI6GYCCWRK8 diff --git a/patches/flag_lists_cleaning.md b/patches/flag_lists_cleaning.md new file mode 100644 index 00000000..3f0b5a6b --- /dev/null +++ b/patches/flag_lists_cleaning.md @@ -0,0 +1,44 @@ + +get each flagging_collection id wich related_flag does not exists +```sql +SELECT * FROM `flagging_collection`; +SELECT * FROM `flagging`; +``` + +for each flagging_collection + +get the flag_lists_items ids form flag_list_item_field_data +```sql +SELECT * FROM `flag_list_item_field_data` WHERE `flag_list` LIKE 'FLAG_LIST_ID' +``` + +remove flag_list_items +```sql +DELETE FROM `flag_list_item` WHERE `id` = FLAG_LIST_ITEM_ID; +``` + +remove flag_list_item_field_data +```sql +DELETE FROM `flag_list_item_field_data` WHERE `id` = FLAG_LIST_ITEM_ID; +``` + +remove flagging_collection_revision +```sql +DELETE FROM `flagging_collection_revision` WHERE `id` = FLAG_LIST_ID; +``` + +remove flagging_collection_field_revision +```sql +DELETE FROM `flagging_collection_field_revision` WHERE `id` = FLAG_LIST_ID; +``` + +remove flagging_collection_field_data +```sql +DELETE FROM `flagging_collection_field_data` WHERE `id` = FLAG_LIST_ID; +``` + +remove flagging_collection +```sql +DELETE FROM `flagging_collection` WHERE `id` = FLAG_LIST_ID; +``` +