πŸ‡ΊπŸ‡ΈUnited States @oheller

Account created on 15 November 2013, over 10 years ago
  • Software Engineer at NerderyΒ  …
#

Merge Requests

Recent comments

πŸ‡ΊπŸ‡ΈUnited States oheller

I have success with the defaults after updating from beta7 to beta8, but I still have the 3381787.patch applied.
Below is the code after it's applied. While debugging I noticed that the 2nd defaultStorageSettings() is never hit. Which is why applying the patch works.

If remove the patch I get an error. If I move the 'target_type' => 'view' into the 2nd function and delete the first, I get an error.

  /**
   * {@inheritdoc}
   */
  public static function defaultStorageSettings() {
    return [
      'target_type' => 'view',
      'handler' => 'default:view',
    ];
  }

  /**
   * {@inheritdoc}
   */
  public static function defaultFieldSettings() {
    return [
      'force_default' => 0,
      'allowed_views' => [],
      'allowed_display_types' => ['block' => 'block'],
      'handler' => 'default:view',
    ] + parent::defaultFieldSettings();
  }

After getting the WSOD + error, when I go back to the Manage fields screen I see the following error. I'm not sure if it's related.

Deprecated function: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManager->getInstance() (line 45 of core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginManager.php).
Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManager->getInstance(Array) (Line: 101)
Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManager->getSelectionHandler(Object, Object) (Line: 97)
Drupal\Core\Entity\Plugin\Validation\Constraint\ValidReferenceConstraintValidator->validate(Object, Object) (Line: 202)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateConstraints(Object, '0000000000000ee20000000000000000', Array) (Line: 154)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object, Array, 1) (Line: 106)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validate(Object, NULL, NULL) (Line: 93)
Drupal\Core\TypedData\Validation\RecursiveValidator->validate(Object) (Line: 132)
Drupal\Core\TypedData\TypedData->validate() (Line: 307)
Drupal\Core\Field\FieldItemList->defaultValuesFormValidate(Array, Array, Object) (Line: 377)
Drupal\field_ui\Form\FieldConfigEditForm->validateForm(Array, Object)
call_user_func_array(Array, Array) (Line: 82)
Drupal\Core\Form\FormValidator->executeValidateHandlers(Array, Object) (Line: 275)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object, 'field_config_edit_form') (Line: 118)
Drupal\Core\Form\FormValidator->validateForm('field_config_edit_form', Array, Object) (Line: 593)
Drupal\Core\Form\FormBuilder->processForm('field_config_edit_form', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
πŸ‡ΊπŸ‡ΈUnited States oheller

I've created a patch to add the field and template.

πŸ‡ΊπŸ‡ΈUnited States oheller

Here's a patch to remove the debugging notices.

πŸ‡ΊπŸ‡ΈUnited States oheller

oheller β†’ created an issue.

πŸ‡ΊπŸ‡ΈUnited States oheller

At this point we should be using "v1" instead of the "v1beta1" per the documentation (https://cloud.google.com/recaptcha-enterprise/docs/migration-v1).

If you are using v1beta1 to create and annotate assessments, we recommend using v1because the new features, such as reCAPTCHA Enterprise account defender are available only on v1. v1 supports both API key and service account authentication.

Also the url that's constructed is pointing to the site secret and for enterprise it should be pointing to the site key instead.

πŸ‡ΊπŸ‡ΈUnited States oheller

Here is a patch for 1.0@beta8:

πŸ‡ΊπŸ‡ΈUnited States oheller

I have a webform specific version, working on making it also consider more general application.

πŸ‡ΊπŸ‡ΈUnited States oheller

Resolution works for me. I've updated the summary to reflect what is accepted.

πŸ‡ΊπŸ‡ΈUnited States oheller

I'm working on this at DrupalCon2023 Pittsburgh.

πŸ‡ΊπŸ‡ΈUnited States oheller

I'm working on this at DrupalCon2023 Pittsburgh.

πŸ‡ΊπŸ‡ΈUnited States oheller

Looks good just some little changes:

This module allows items in a Views table to be rearranged with 'drag and drop' behavior.

πŸ‡ΊπŸ‡ΈUnited States oheller

Added the short summary.

πŸ‡ΊπŸ‡ΈUnited States oheller

I am working on this at DrupalCon2023 Pittsburgh.

πŸ‡ΊπŸ‡ΈUnited States oheller

I'm working on this for DrupalCon2023 Pittsburgh.

πŸ‡ΊπŸ‡ΈUnited States oheller

This works after applying the patch and clearing the cache. I feel good about the new class name.

πŸ‡ΊπŸ‡ΈUnited States oheller

I too was having this issue, here's the solution I arrived at:
Requirements: Using Gatsby + Webforms + Recaptcha v3 (invisible).

After reviewing captcha and recaptcha_v3 it seems that the verification doesn't work for a headless Drupal site. When following the xdebug path the "captcha" field never makes it into the form_state for future verification. So, it always works.

I ended up using simple_recaptcha because they have a well defined method SimpleReCaptchaFormManager::validateCaptchaToken(). I had to add my own helper module to add my webformelement and webformhandler because simple_Recaptcha adds the form validation to the button and uses ajax in it's provided simple_recaptcha_webform handler.

I created my own WebformElement, "HeadlessCaptcha", to add the headless_captcha element to use, and a WebformHandler "HeadlessCaptchaValidation" to handle the verification (using validateForm() instead of submitForm()).

I've got the front end (gatsby) to generate the token and the backend to send the token via the handler to verify the token. It succeeds when submitting the webform form gatsby, and fails when trying to send the form via Postman (without the captcha token). It also fails if the correct key's aren't present.

πŸ‡ΊπŸ‡ΈUnited States oheller

I'm working on making the children issues.

πŸ‡ΊπŸ‡ΈUnited States oheller

First bullet point ready for review. I've updated the schema with entity_id and implemented the update_hook() to add the field to the tables.

πŸ‡ΊπŸ‡ΈUnited States oheller

Started the merge request branch during MidCamp. I will continue to work on this today.

πŸ‡ΊπŸ‡ΈUnited States oheller

oheller β†’ made their first commit to this issue’s fork.

πŸ‡ΊπŸ‡ΈUnited States oheller

I'm not sure why but it seems like the files were caught in cache (I've got cache disabled locally). Once I removed and resolved that, the proper js files were loaded. Thanks for your help.

πŸ‡ΊπŸ‡ΈUnited States oheller

This has been implemented. In your behat.yml config file you can configure it as such:

Drupal\DrupalExtension:
text:
login_url: "/user"
logout_url: "/user/logout"
log_out: "Sign out"
log_in: "Sign in"
password_field: "Enter your password"
username_field: "Nickname"

This is also outlined in the documentation: https://behat-drupal-extension.readthedocs.io/en/v4.0.1/blackbox.html

πŸ‡ΊπŸ‡ΈUnited States oheller

We have updated the js/views/AppView.js LN: 44 with:

once('shs', this.$el)[0].classList.add('hidden');

This adds the hidden class but we don't have the taxonomy terms added to the containers.

πŸ‡ΊπŸ‡ΈUnited States oheller

If you open the browser inspector, you will see an error about Once not being a function. This is because jquery.once has been removed from core: https://www.drupal.org/node/3158256 β†’ .

We need to update the library to call core/once and update AppView.js, around ln:42 to properly use once. I've tried but haven't succeeded yet.

πŸ‡ΊπŸ‡ΈUnited States oheller

I have created a submodule to add the button. It pulls the site id from the gatsby.settings:incrementalbuild_url to trigger the correct Gatsby environment.

I've included 2 patches. One to be included using the composer.json patches option. The other is to be applied with git from the project root using `git am file.patch`.

Production build 0.69.0 2024