Well, that was a way bigger pain than I expected :/
But I fixed the tests. It seems that whitelist and blacklist have a block because they want us to use "allowList" now, but since these are parameters, we can't actually change that. So I ignored the lines individually.
Pipeline had this error:
*****************************************************************************************************************************
This project contains a top-level directory named 'web' which is the same as the variable _WEB_ROOT. This variable defines the location for installing Drupal core and the clash may cause some jobs to fail or give misleading results.
To resolve this, you can either rename the directory within your project or set a different custom value for the _WEB_ROOT variable. The name can be anything other than an existing directory in your project.
*****************************************************************************************************************************
There was an empty file, web/.gitkeep
, so I removed it. I don't actually know what this file was for, though. Is it safe to remove?
https://www.drupal.org/project/jsonapi_extras/issues/3489101 📌 PHP 8.4/phpcs: implicit nullable deprecation Active
Please add an MR instead of a patch. Drupal.org CI infrastructure only runs the module's tests on MRs, not patches.
Drupal itself is GPL-2: https://www.drupal.org/about/licensing#drupal-license →
So if you are worried about GPL-2, you should consider another project.
The issue occurs because this module's composer.json has the following:
"psr-4": {
"Drulma\\": "./src/"
}
As far as I can tell, this only affects the Render callback, which should be namespaced to Drulma instead of Drupal according to the composer.json. But this is not the way Drupal modules are usually written, so I am opening a PR to remove this instruction.
ptmkenny → created an issue.
ptmkenny → created an issue.
Welcome back and I'm glad this solution works for you!
Since the module has GitLab CI tests now, we need an MR, not a patch, because the CI tests are only run for MRs, not patches.
Please add an MR, not a patch. This module runs automated tests via GitLab CI, but only MRs get tested, not patches. So we need an MR to run the tests.
Ok, I looked into this more, and I think this may be a problem with the Data Field module, not Field Encrypt.
foreach ($field_types as $name => $field_type) {
// Special handling for preconfigured definitions.
// @see \Drupal\Core\Field\FieldTypePluginManager::getUiDefinitions()
$type = str_starts_with($name, 'field_ui:') ? $field_type['id'] : $name;
$field_definition = BaseFieldDefinition::create($type);
$definitions = $field_definition->getPropertyDefinitions();
In this code, we are pulling in all the field types, including those with PreconfiguredFieldUiOptionsInterface. These preconfigured definitions do NOT include a name property, so the "special handling" gets the actual field type ID so that it can call BaseFieldDefinition::create(), and then we access getPropertyDefinitions().
It seems that DataFieldType relies on field_name being set, but this is not true for PreconfiguredFieldUiOptionsInterface field types.
Committed and will be in the next beta, thanks everyone!
@megakeegman Thanks for rebasing. Have you encountered this error, and does the MR fix it for your site?
Thank you for rebasing, but the tests are now failing.
ptmkenny → created an issue.
ptmkenny → created an issue.
ptmkenny → created an issue.
ptmkenny → created an issue.
ptmkenny → created an issue.
ptmkenny → created an issue.
ptmkenny → created an issue.
This has been handled, and we are going to move forward with 1.1, not 2.x, so I'm closing this.
@vodde83 If you change the path in a module like JSON:API Extras, you have to take responsibility yourself for modifying the path; this module doesn't have a way to determine what overrides you may have made.
Hopefully @ro-no-lo, as the author of the code, can describe how it is supposed to work.
ptmkenny → created an issue.
The MR needs to be rebased. I won't be working on this further, but I will commit the code if it gets rebased and tested.
New features now need to go into 2.0.x. 1.x will only receive security fixes.
ptmkenny → created an issue.
ptmkenny → created an issue.
ptmkenny → created an issue.
ptmkenny → created an issue.
This is blocked on 📌 12: Use getOriginal() not ->original Active
ptmkenny → created an issue.
ptmkenny → created an issue.
ptmkenny → created an issue.
ptmkenny → created an issue.
ptmkenny → created an issue.
ptmkenny → created an issue.
JSON-RPC 3 beta 1 has been released, so let's move to support it.
ptmkenny → created an issue.
ptmkenny → created an issue.
ptmkenny → created an issue.
We'll address all this in : https://www.drupal.org/project/decoupled_passkeys/issues/3472603 📌 JSON-RPC 3.x: Update object imports Postponed