- Issue created by @drumm
- πΊπΈUnited States drumm NY, US
This is now deployed and back-filled for general projects. According to their
composer.json
files, the recipes on Drupal.org are:MariaDB [drupal]> SELECT DISTINCT n.nid, n.title FROM field_data_field_composer_type fdf_ct INNER JOIN field_data_field_release_project fdf_rp ON fdf_rp.entity_id = fdf_ct.entity_id INNER JOIN node n ON n.nid = fdf_rp.field_release_project_target_id WHERE fdf_ct.field_composer_type_value = 'drupal-recipe'; +---------+-------------------------+ | nid | title | +---------+-------------------------+ | 3452316 | Velir Base | | 3453366 | Locations | | 1934532 | Events | | 3463672 | Events Calendar | | 3463674 | Events Locations | | 3463675 | Events Registration | | 3476826 | Tour Core | | 3477215 | Test JSON:API Reference | | 3478282 | Tour Core Language | +---------+-------------------------+
In case we need to do more back-filling, it was done with
$client = new GuzzleHttp\Client([ 'base_uri' => 'https://git.drupalcode.org', ]); $result = db_query("SELECT fdf_rvl.entity_id release_nid, fdf_pmn.field_project_machine_name_value project, fdf_rvl.field_release_vcs_label_value label FROM {field_data_field_release_vcs_label} fdf_rvl INNER JOIN {field_data_field_release_project} fdf_rp ON fdf_rp.entity_id = fdf_rvl.entity_id INNER JOIN {node} n ON n.nid = fdf_rp.field_release_project_target_id AND n.type = 'project_general' INNER JOIN {field_data_field_project_machine_name} fdf_pmn ON fdf_pmn.entity_id = n.nid"); foreach ($result as $row) { try { print $row->release_nid . ' ' . $row->project . ' ' . $row->label . PHP_EOL; $composer_json = json_decode($client->request('GET', '/project/' . $row->project . '/-/raw/' . $row->label . '/composer.json')->getBody()); if (!empty($composer_json->type)) { $release_node = node_load($row->release_nid); $release_node_wrapper = entity_metadata_wrapper('node', $release_node); $release_node_wrapper->field_composer_type = $composer_json->type; node_save($release_node); } } catch (Exception $e) { print $e->getResponse()->getStatusCode() . PHP_EOL; } }
If we do this again, we should set the flag on
$release_node
to signal that it is βin packaging,β so packaging is not triggered. Automatically closed - issue fixed for 2 weeks with no activity.