Skip to content

Instantly share code, notes, and snippets.

@nelson-ph
nelson-ph / drupal.swiftype-add-document-types-filters.patch
Created November 26, 2021 14:10
Drupal - Swiftype - Add document types filters
Index: src/Plugin/search_api/backend/SwiftypeBackend.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Plugin/search_api/backend/SwiftypeBackend.php b/src/Plugin/search_api/backend/SwiftypeBackend.php
--- a/src/Plugin/search_api/backend/SwiftypeBackend.php
+++ b/src/Plugin/search_api/backend/SwiftypeBackend.php (date 1637931844545)
@@ -610,7 +610,8 @@
$data = [
@nelson-ph
nelson-ph / drupal.password-policy-error-message-to-storage.patch
Last active November 29, 2021 12:47
Drupal - Password policy - review patch to add error message to the storage
Index: password_policy.module
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/password_policy.module b/password_policy.module
--- a/password_policy.module
+++ b/password_policy.module (date 1638189983327)
@@ -197,10 +197,12 @@
$user,
@nelson-ph
nelson-ph / drupal.redis-d9-readiness.patch
Created November 22, 2021 14:56
Drupal - Redis - D9 readinness review
Index: src/Cache/CacheBase.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Cache/CacheBase.php b/src/Cache/CacheBase.php
--- a/src/Cache/CacheBase.php
+++ b/src/Cache/CacheBase.php (date 1609972096000)
@@ -313,7 +313,7 @@
// Check expire time, allow to have a cache invalidated explicitly, don't
@nelson-ph
nelson-ph / drupal.search_api_swiftype.support-multiple-indexes.patch
Created November 17, 2021 14:49
Drupal - search_api_swiftype - support multiple indexes
Index: src/Plugin/search_api/backend/SwiftypeBackend.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Plugin/search_api/backend/SwiftypeBackend.php b/src/Plugin/search_api/backend/SwiftypeBackend.php
--- a/src/Plugin/search_api/backend/SwiftypeBackend.php
+++ b/src/Plugin/search_api/backend/SwiftypeBackend.php (date 1637160068723)
@@ -610,6 +610,7 @@
$data = [
@nelson-ph
nelson-ph / drupal.redis-cluster-add-prediscluster-deletemultiple-support.patch
Last active June 18, 2021 09:49
Drupal 8 - Redis cluster - add prediscluster doDeleteMultiple support
Index: src/Cache/PredisCluster.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Cache/PredisCluster.php b/src/Cache/PredisCluster.php
--- a/src/Cache/PredisCluster.php (date 1623849227261)
+++ b/src/Cache/PredisCluster.php (date 1623849227261)
@@ -27,4 +27,18 @@
parent::__construct($bin, $client, $checksum_provider, $serializer);
@nelson-ph
nelson-ph / drupal.token.image_style.support-relative-url.patch
Created June 3, 2021 16:47
Drupal 8 - Token image style url - support relative case
Index: token.tokens.inc
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/token.tokens.inc b/token.tokens.inc
--- a/token.tokens.inc (date 1622738647667)
+++ b/token.tokens.inc (date 1622738647667)
@@ -1767,7 +1767,15 @@
$replacements[$original] = $style->buildUri($original_uri);
@nelson-ph
nelson-ph / simplesam.redis-cluster-support.patch
Last active April 30, 2021 13:10
Simplesaml - redis cluster support
Index: lib/SimpleSAML/Store/Redis.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/lib/SimpleSAML/Store/Redis.php b/lib/SimpleSAML/Store/Redis.php
--- a/lib/SimpleSAML/Store/Redis.php (date 1619776407367)
+++ b/lib/SimpleSAML/Store/Redis.php (date 1619776407367)
@@ -38,17 +38,31 @@
$password = $config->getString('store.redis.password', '');
@nelson-ph
nelson-ph / drupal.redis-cluster-report-controller-support.patch
Created April 29, 2021 16:46
Drupal 8 - Redis cluster - report controller support
Index: src/Controller/ReportController.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Controller/ReportController.php b/src/Controller/ReportController.php
--- a/src/Controller/ReportController.php (date 1619714576096)
+++ b/src/Controller/ReportController.php (date 1619714576096)
@@ -9,6 +9,7 @@
use Drupal\redis\ClientFactory;
@nelson-ph
nelson-ph / drupal.redis-cluster-review-cachetagschecksum-and-lock.patch
Last active June 18, 2021 14:48
Drupal - Redis Cluster - review Lock/PredisCluster and PredisClusterCacheTagsChecksum::getTagInvalidationCounts
Index: src/Lock/PredisCluster.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Lock/PredisCluster.php b/src/Lock/PredisCluster.php
--- a/src/Lock/PredisCluster.php (date 1619704355683)
+++ b/src/Lock/PredisCluster.php (date 1619704355683)
@@ -7,4 +7,22 @@
*/
@nelson-ph
nelson-ph / drupal.redis-support-scheme-tls.patch
Created April 28, 2021 10:45
Drupal 8 - Predis - support scheme / tls
Index: src/Client/Predis.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Client/Predis.php b/src/Client/Predis.php
--- a/src/Client/Predis.php (date 1619606317239)
+++ b/src/Client/Predis.php (date 1619606317239)
@@ -51,8 +51,6 @@
else {