graph TB
field_type_config["search_api_solr.solr_field_type.text_string_und_6_0_0.yml"]
field_type_config_label["label: 'Fulltext String Field'"]
field_type_config_custom_code["custom_code: 'string'"]
solr_plug_discovery["Discover Drupal config starting with search_api_solr.solr_field_type.*"]
search_plug_class["Drupal\search_api_solr\Plugin\search_api\data_type\CustomTextDataType"]
search_plug_derivative["Drupal\search_api_solr\Plugin\Derivative\CustomTextDataType"]
search_plug_label["Label: Fulltext #quot;string#quot;"]
solr_generate_configset["Generate configset (#quot;Get config.zip#quot;)"]
DKAN data flow from harvest to datastore:
graph TD
harvestRegisterCommand(["`dkan:harvest:register`"])
harvestRunCommand(["`dkan:harvest:run`"])
harvestCatalog[Harvest Catalog JSON]
harvestPlanDb[(Harvest Plan)]
harvestProcess[[Harvest]]
harvestRunDb[(Harvest Run)]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here's how you find out how many git commit mentions you have in Drupal core: | |
First we clone Drupal: | |
% git clone git@git.drupal.org:project/drupal.git | |
After a while we then ask it how many commit mentions. Substitute your user name for Mile23. | |
% git log --pretty=oneline --grep Mile23 | wc -l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add this as a composer script for happiness inside docker. | |
$vocabulary_name = 'terms'; | |
foreach (range(148,166) as $term_id) { | |
exec("drush dce taxonomy_term $term_id > docroot/modules/custom/YOUR_CONTENT_MODULE/content/taxonomy/$vocabulary_name-$term_id.json"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ time composer -vvv require drupal/address | |
Reading ./composer.json | |
Loading config file ./composer.json | |
Checked CA file /private/var/folders/_p/lfvb8ksn2p5b_yyl1sn2w4340000gq/T/composer-cacert-e78c8ab7b4432bd466e64bb942d988f6c0ac91cd785017e465bdc96d42fe9dd0.pem: valid | |
Executing command (/Users/paul/pj2/drupal): git branch --no-color --no-abbrev -v | |
Failed to initialize global composer: Composer could not find the config file: /Users/paul/.config/composer/composer.json | |
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section | |
Reading /Users/paul/pj2/drupal/vendor/composer/installed.json | |
Loading plugin Composer\Installers\Plugin | |
Loading plugin Wikimedia\Composer\MergePlugin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/composer.json b/core/composer.json | |
index 0d103002c7..57f34b1b83 100644 | |
--- a/core/composer.json | |
+++ b/core/composer.json | |
@@ -5,19 +5,19 @@ | |
"license": "GPL-2.0+", | |
"require": { | |
"php": ">=5.5.9", | |
- "symfony/class-loader": "^3.2", | |
- "symfony/console": "^3.2", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This build file is (mostlY) copy-pasted from | |
# https://dispatcher.drupalci.org/job/default/296858/ and is for testing Phpcs | |
# with a D7 contrib project with no phpcs.xml(.dist) file. | |
build: | |
codebase: | |
assemble_codebase: | |
replicate: | |
exclude: { } | |
local_dir: '' | |
git_branch: '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a one-liner to aid in reviewing patches on this Drupal.org meta issue: | |
# https://www.drupal.org/node/1811638 | |
# You can use netbeansdrupalcomposed to gather the dependencies, which are phpcs | |
# and Drupal's Coder module | |
# https://www.drupal.org/sandbox/mile23/2197899 | |
# Substitute any module path you want in order to check only that module. | |
# The resulting list will be a bit of gobbledygook in CSV, but will show you whether | |
# or not the patch you're evaluating successfully removed the errors we're looking for. | |
phpcs --standard="/path/to/drupal/coder/coder_sniffer/Drupal" --report-csv path/to/module/src/Tests | grep "should use lowerCamel" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a one-liner to aid in reviewing patches on this Drupal.org meta issue: | |
# https://www.drupal.org/node/1800046 | |
# You can use netbeansdrupalcomposed to gather the dependencies, which are phpcs | |
# and Drupal's Coder module | |
# https://www.drupal.org/sandbox/mile23/2197899 | |
# Substitute any module path you want in order to check only that module. | |
# The resulting list will be a bit of gobbledygook in CSV, but will show you whether | |
# or not the patch you're evaluating successfully removed the errors we're looking for. | |
phpcs --standard="/path/to/drupal/coder/coder_sniffer/Drupal" --extensions="module/php,inc/php,php" --report-csv path/to/module/ | grep -F $'Missing param\nReturn type missing' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$loader = require_once __DIR__ . '/vendor/autoload.php'; | |
use Drupal\Core\DependencyInjection\ContainerBuilder; | |
use Drupal\Core\DependencyInjection\YamlFileLoader; | |
$container = new ContainerBuilder(); | |
$loader = new YamlFileLoader($container); | |
$loader->load('core.services.yml'); |
NewerOlder