Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tim.plunkett’s picture

Status: Active » Needs review
FileSize
48.44 KB
tim.plunkett’s picture

#1: config-factory-2021111-1.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, config-factory-2021111-1.patch, failed testing.

tim.plunkett’s picture

Status: Needs work » Needs review
FileSize
66.17 KB

Rerolled. This would be nice to get in.

andypost’s picture

4: config-2021111-4.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 4: config-2021111-4.patch, failed testing.

jibran’s picture

Issue summary: View changes
Status: Needs work » Needs review
Issue tags: +API change
FileSize
42.03 KB
97.64 KB

Reroll and some more fixes.

Status: Needs review » Needs work

The last submitted patch, 7: config-2021111-7.patch, failed testing.

jibran’s picture

Status: Needs work » Needs review
FileSize
1.5 KB
98.25 KB

Here is the fix. Fails shows the benefit of having interface :D

andypost’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -API change +API clean-up, +beta target

This fixes Configfactory into interface, no api changes here

xjm’s picture

9: config-2021111-9.patch queued for re-testing.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 9: config-2021111-9.patch, failed testing.

jibran’s picture

Status: Needs work » Reviewed & tested by the community
FileSize
98.45 KB

Simple reroll.

jibran’s picture

mtift’s picture

Issue tags: -Needs reroll
FileSize
101.86 KB
3.41 KB

Here's a re-roll

catch’s picture

Assigned: Unassigned » alexpott

Giving Alex a chance to look at this before it goes in, makes sense to me although it could conflict with quite a lot.

jibran’s picture

15: config-2021111-15.patch queued for re-testing.

The last submitted patch, 15: config-2021111-15.patch, failed testing.

jibran’s picture

Assigned: alexpott » Unassigned
Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

Once more patch needs reroll. Please add 'Avoid commit conflicts' once RTBC and assign back it to @alexpott. Thank you @catch for having the look and @mtift for the reroll.

alexpott’s picture

Status: Needs work » Postponed
Issue tags: +Will cause commit conflicts

Postponing on #2098119: Replace config context system with baked-in locale support and single-event based overrides

Personally I think we should do this in two steps - get the interface in and the config factory using it - and then do the type hinting changes.

jibran’s picture

Status: Postponed » Needs review
Issue tags: -Needs reroll, -Will cause commit conflicts
FileSize
11.68 KB

Here is step 1. Please review I have created the patch from scratch.

alexpott’s picture

Status: Needs review » Needs work
+++ b/core/lib/Drupal/Core/Config/ConfigFactory.php
@@ -24,12 +24,7 @@
+class ConfigFactory implements ConfigFactoryInterface,EventSubscriberInterface {

Very minor - missing a space after the comma. Otherwise looks good.

jibran’s picture

+++ b/core/lib/Drupal/Core/Config/ConfigFactoryInterface.php
@@ -0,0 +1,176 @@
+  /**
+   * Removes stale static cache entries when configuration is saved.
+   *
+   * @param ConfigEvent $event
+   *   The configuration event.
+   */
+  public function onConfigSave(ConfigEvent $event);

This is an event function should I remove it form interface?

alexpott’s picture

#23 yep that is a good point.

jibran’s picture

Status: Needs work » Needs review
FileSize
11.47 KB
1.17 KB

Here we go.

alexpott’s picture

Status: Needs review » Needs work
+++ b/core/lib/Drupal/Core/Config/ConfigFactory.php
@@ -445,10 +359,7 @@ protected function canOverride($name) {
   /**
-   * Removes stale static cache entries when configuration is saved.
-   *
-   * @param ConfigEvent $event
-   *   The configuration event.
+   * {@inheritdoc}
    */
   public function onConfigSave(ConfigEvent $event) {

Needs reverting too :)

jibran’s picture

Status: Needs work » Needs review
FileSize
620 bytes
11.1 KB

My bad. Fixed

alexpott’s picture

Status: Needs review » Needs work
+++ b/core/lib/Drupal/Core/Config/ConfigFactory.php
@@ -2,7 +2,7 @@
+ * Contains of Drupal\Core\Config\ConfigFactory.

Should be Contains \Drupal\Core\Config\ConfigFactory.

jibran’s picture

Status: Needs work » Needs review
FileSize
413 bytes
411 bytes
11.1 KB

srlsy NW :P. Fixed.

alexpott’s picture

Status: Needs review » Reviewed & tested by the community

Looks great - thanks!

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

Needs reroll - conflicts with #2108599: Convert language_default to CMI

git ac https://drupal.org/files/issues/config-2021111-29.patch
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 11368  100 11368    0     0   5045      0  0:00:02  0:00:02 --:--:--  6263
error: patch failed: core/lib/Drupal/Core/Config/ConfigFactory.php:360
error: core/lib/Drupal/Core/Config/ConfigFactory.php: patch does not apply
jibran’s picture

Status: Needs work » Reviewed & tested by the community
Issue tags: -Needs reroll
FileSize
12.41 KB

Reroll

alexpott’s picture

Status: Reviewed & tested by the community » Postponed

postponing on #2172561: Config overrides may spill over to undesired places - this patch is just going to go through re-roll hell :(

jibran’s picture

Status: Postponed » Needs review
FileSize
701 bytes
12.4 KB

Here we go again. With minor doc fixes.

alexpott’s picture

Status: Needs review » Reviewed & tested by the community

I can't think of any other rtbc patches that are doing anything to the ConfigFactory so this one should be good to go!

Thanks for sticking with @jibran

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 34: config-2021111-34.patch, failed testing.

alexpott’s picture

Status: Needs work » Needs review

34: config-2021111-34.patch queued for re-testing.

jibran’s picture

Status: Needs review » Reviewed & tested by the community

Back to RTBC then.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed f1fdcfa and pushed to 8.x. Thanks!

jibran’s picture

#2184231: Use ConfigFactoryInterface to type hint ConfigFactory added as a child issue. Thanks everyone. Thank you @alexpott for the commit.

Status: Fixed » Closed (fixed)

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