Support from Acquia helps fund testing for Drupal Acquia logo

Comments

elachlan’s picture

Status: Active » Needs review
elachlan’s picture

Title: SearchSettingsForm implements state incorrectly. » SearchSettingsForm implements CMI incorrectly.
FileSize
8.37 KB

Updated patch to implement config factory as well.

Status: Needs review » Needs work

The last submitted patch, drupal-2032235-1.patch, failed testing.

elachlan’s picture

Status: Needs work » Needs review
FileSize
8.19 KB

Accidentally changed the class name.

elachlan’s picture

FileSize
8.19 KB

PHP Syntax, forgot a ";".

elachlan’s picture

FileSize
8.25 KB

Changed to use $config instead of calling

$this->configFactory->get();

Status: Needs review » Needs work

The last submitted patch, drupal-2032235-4.patch, failed testing.

elachlan’s picture

Status: Needs work » Needs review
FileSize
8.3 KB

Forgot a use and had referenced an incorrect variable name.

Berdir’s picture

Status: Needs review » Needs work
+++ b/core/modules/search/lib/Drupal/search/Form/SearchSettingsForm.phpundefined
@@ -1,13 +1,14 @@
- * Contains \Drupal\search\Form\SearchSettingsForm.
+ * Contains \Drupal\search\Form\configFactoryForm.

Still an accidental rename here.

+++ b/core/modules/search/lib/Drupal/search/Form/SearchSettingsForm.phpundefined
@@ -39,17 +33,17 @@ class SearchSettingsForm extends SystemConfigFormBase {
     $this->moduleHandler = $module_handler;
     $this->state = $state;
+    parent::__construct($config_factory, $context);

the parent call usually happens first.

elachlan’s picture

FileSize
8.18 KB

Re-rolled with changes.

elachlan’s picture

Status: Needs work » Needs review
elachlan’s picture

Issue tags: +API change, +API clean-up

Adding tags. Still needs review to be RTBC.

Berdir’s picture

Category: task » bug
Issue tags: -API change, -API clean-up

This is just a bugfix, no API change :)

elachlan’s picture

Oh ok. I wasn't sure because of the code freeze and wanted to get it in before the cut off :)

Berdir’s picture

Status: Needs review » Needs work
+++ b/core/modules/search/lib/Drupal/search/Form/SearchSettingsForm.phpundefined
@@ -39,17 +33,18 @@ class SearchSettingsForm extends SystemConfigFormBase {
-   * Constructs a \Drupal\user\SearchSettingsForm object.
+   * Constructs a \Drupal\user\configFactoryForm object.

Another invalid rename here :)

The namespace is actually wrong here, let's change \user\ to \search\Form\ while we're here.

+++ b/core/modules/search/lib/Drupal/search/Form/SearchSettingsForm.phpundefined
@@ -39,17 +33,18 @@ class SearchSettingsForm extends SystemConfigFormBase {
    * @param \Drupal\Core\Config\Config $search_settings
    *   The configuration object that manages search settings.
    * @param \Drupal\Core\Extension\ModuleHandler $module_handler
    *   The module handler

The @param's need to be reflected for the changed arguments.

+++ b/core/modules/search/lib/Drupal/search/Form/SearchSettingsForm.phpundefined
@@ -39,17 +33,18 @@ class SearchSettingsForm extends SystemConfigFormBase {
     $this->state = $state;
+    ¶

Now there's an empty line with trailing spaces here, that should be removed.

elachlan’s picture

Status: Needs work » Needs review
FileSize
8.59 KB

Done :)

elachlan’s picture

Bumping. Still needs review for RTBC.

Berdir’s picture

Status: Needs review » Needs work
+++ b/core/modules/search/lib/Drupal/search/Form/SearchSettingsForm.phpundefined
@@ -39,17 +33,21 @@ class SearchSettingsForm extends SystemConfigFormBase {
+   *   The Key Value Store Interface, gives access to state based config settings.

"The state key/value store."

+++ b/core/modules/search/lib/Drupal/search/Form/SearchSettingsForm.phpundefined
@@ -39,17 +33,21 @@ class SearchSettingsForm extends SystemConfigFormBase {
-    $this->state = $state;
+    $this->state = $state;  ¶

Trailing spaces.

elachlan’s picture

Status: Needs work » Needs review
FileSize
8.55 KB

New Patch. Fixes above issues.

elachlan’s picture

Bumping again.

longwave’s picture

Status: Needs review » Needs work

+ * Constructs a \Drupal\search\Form\SystemConfigFormBase object.

This is a \Drupal\search\Form\SearchSettingsForm object.

elachlan’s picture

FileSize
8.55 KB

Re-rolled with fix for #21.

elachlan’s picture

Status: Needs work » Needs review
longwave’s picture

Status: Needs review » Reviewed & tested by the community

Looks RTBC to me presuming the tests pass.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, drupal-2032235-22.patch, failed testing.

longwave’s picture

Status: Needs work » Needs review

#22: drupal-2032235-22.patch queued for re-testing.

longwave’s picture

Status: Needs review » Reviewed & tested by the community

Seemingly unrelated failure in CommentLinksTest, let's see if this one runs green.

elachlan’s picture

Tests passed! Good job everyone :)

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed be35585 and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.