Browse Source

added masquerade module

bach 2 years ago
parent
commit
bdd6f022e9

+ 1 - 0
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",

+ 70 - 1
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,

+ 8 - 1
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

+ 1 - 0
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

+ 1 - 0
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

+ 2 - 2
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

+ 44 - 0
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;
+```
+