- Issue created by @marcofernandes
-
marcofernandes →
committed 933f65b9 on 3402975-update-patterns
Issue #3402975 by marcofernandes: Adjust patterns view
-
marcofernandes →
committed 933f65b9 on 3402975-update-patterns
-
marcofernandes →
committed c7b4e3d4 on 3402975-update-patterns
Issue #3402975 by marcofernandes: Fix key
-
marcofernandes →
committed c7b4e3d4 on 3402975-update-patterns
-
marcofernandes →
committed 9e63da65 on 3402975-update-patterns
Issue #3402975 by marcofernandes: Remove some attributes that caused...
-
marcofernandes →
committed 9e63da65 on 3402975-update-patterns
-
marcofernandes →
committed f377afc2 on 3402975-update-patterns
Issue #3402975 by marcofernandes: Refactor code to ES6 + add missing...
-
marcofernandes →
committed f377afc2 on 3402975-update-patterns
-
marcofernandes →
committed 0376b6a7 on 3402975-update-patterns
Issue #3402975 by marcofernandes: Add dependencies; remove CI for...
-
marcofernandes →
committed 0376b6a7 on 3402975-update-patterns
-
marcofernandes →
committed 0031078a on 3402975-update-patterns
Issue #3402975 by marcofernandes: Validate array key; Remove Bartik and...
-
marcofernandes →
committed 0031078a on 3402975-update-patterns
-
marcofernandes →
committed 0031078a on 3.0.x
Issue #3402975 by marcofernandes: Validate array key; Remove Bartik and...
-
marcofernandes →
committed 0031078a on 3.0.x
-
marcofernandes →
committed 0376b6a7 on 3.0.x
Issue #3402975 by marcofernandes: Add dependencies; remove CI for...
-
marcofernandes →
committed 0376b6a7 on 3.0.x
-
marcofernandes →
committed f377afc2 on 3.0.x
Issue #3402975 by marcofernandes: Refactor code to ES6 + add missing...
-
marcofernandes →
committed f377afc2 on 3.0.x
-
marcofernandes →
committed c7b4e3d4 on 3.0.x
Issue #3402975 by marcofernandes: Fix key
-
marcofernandes →
committed c7b4e3d4 on 3.0.x
-
marcofernandes →
committed 9e63da65 on 3.0.x
Issue #3402975 by marcofernandes: Remove some attributes that caused...
-
marcofernandes →
committed 9e63da65 on 3.0.x
-
marcofernandes →
committed 933f65b9 on 3.0.x
Issue #3402975 by marcofernandes: Adjust patterns view
-
marcofernandes →
committed 933f65b9 on 3.0.x
-
marcofernandes →
committed e3f42591 on 3.0.x
Issue #3402975 by marcofernandes: Patterns and synced patterns (reusable...
-
marcofernandes →
committed e3f42591 on 3.0.x
- Status changed to Fixed
12 months ago 3:43pm 22 November 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Needs work
10 months ago 11:25am 17 January 2024 There's no update hook for the new reusable block
field_pattern_category
andfield_pattern_sync_status
fields introduced here. This breaks on a site upgrading from 2.x whenever you attempt to add a new pattern:The website encountered an unexpected error. Please try again later.<br><br><em class="placeholder">InvalidArgumentException</em>: Field field_pattern_category is unknown. in <em class="placeholder">Drupal\Core\Entity\ContentEntityBase->getTranslatedField()</em> (line <em class="placeholder">587</em> of <em class="placeholder">core/lib/Drupal/Core/Entity/ContentEntityBase.php</em>). <pre class="backtrace">Drupal\Core\Entity\ContentEntityBase->get('field_pattern_category') (Line: 323) Drupal\gutenberg\Controller\ReusableBlocksController->getBlockAttributes(Object) (Line: 229) Drupal\gutenberg\Controller\ReusableBlocksController->save(Object, NULL) call_user_func_array(Array, Array) (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 163) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74) 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: 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: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 692) Drupal\Core\DrupalKernel->handle(Object) (Line: 19) </pre>
An upgrade path should be created or documented. Ideally something in an update hook.
- Status changed to Needs review
9 months ago 12:42pm 6 February 2024 Sorry it took a while to get back to this. I like the approach, but it seems like
\Drupal::service('config.installer')->installDefaultConfig('module', 'gutenberg')
will override any local configuration overrides the sites might have, so we need special handling for it.I've pushed an update to the branch with the updated logic, feel free to test and review, and let me know if it all makes sense.
- 🇵🇹Portugal marcofernandes
I tested from a clean Drupal instance, installed Gutenberg 2.x, enabled Gutenberg for Basic Page changed Gutenberg text format a bit just to check if configuration wouldn't be override. Then I updated Gutenberg to this branch and did an update db but it threw this error:
Unable to decode output into JSON: Syntax error TypeError: Drupal\Core\Field\WidgetBase::__construct(): Argument #5 ($third_party_setti ngs) must be of type array, null given, called in /var/www/html/web/core/lib/Drupal/Cor e/Field/WidgetBase.php on line 64 in Drupal\Core\Field\WidgetBase->__construct() (line 53 of /var/www/html/web/core/lib/Drupal/Core/Field/WidgetBase.php).
Ran update db again but at this time no error occurred and configuration seemed to be ok. At least no override on the text format settings and fields were created.
-
marcofernandes →
committed 32d0946b on 3.x
Issue #3402975 by marcofernandes, codebymikey: Add update hook to...
-
marcofernandes →
committed 32d0946b on 3.x
-
marcofernandes →
committed eeb52ce9 on 3.x
Issue #3402975 by marcofernandes, codebymikey: Add third_party_settings...
-
marcofernandes →
committed eeb52ce9 on 3.x
-
marcofernandes →
committed 1523c05c on 3.x
Issue #3402975 by marcofernandes, codebymikey: Remove...
-
marcofernandes →
committed 1523c05c on 3.x
-
marcofernandes →
committed c1ccac4c on 3.x
Issue #3402975: Update texts
-
marcofernandes →
committed c1ccac4c on 3.x
-
codebymikey →
committed ff5e6595 on 3.x
Issue #3402975: Add Patterns and synced patterns (reusable blocks) post...
-
codebymikey →
committed ff5e6595 on 3.x
-
marcofernandes →
committed 70d61827 on 3.x
Issue #3402975: Update existing reusable blocks sync status field
-
marcofernandes →
committed 70d61827 on 3.x
-
marcofernandes →
committed 9b7a818d on 3.x
Issue #3402975: Add update hook for new config
-
marcofernandes →
committed 9b7a818d on 3.x
-
marcofernandes →
committed 87ad951d on 3.x
Issue #3402975: Add update hook for new config
-
marcofernandes →
committed 87ad951d on 3.x
- Status changed to Fixed
6 months ago 12:09pm 20 May 2024 -
marcofernandes →
committed 32d0946b on 3.0.x
Issue #3402975 by marcofernandes, codebymikey: Add update hook to...
-
marcofernandes →
committed 32d0946b on 3.0.x
-
marcofernandes →
committed eeb52ce9 on 3.0.x
Issue #3402975 by marcofernandes, codebymikey: Add third_party_settings...
-
marcofernandes →
committed eeb52ce9 on 3.0.x
-
marcofernandes →
committed 1523c05c on 3.0.x
Issue #3402975 by marcofernandes, codebymikey: Remove...
-
marcofernandes →
committed 1523c05c on 3.0.x
-
marcofernandes →
committed c1ccac4c on 3.0.x
Issue #3402975: Update texts
-
marcofernandes →
committed c1ccac4c on 3.0.x
-
codebymikey →
committed ff5e6595 on 3.0.x
Issue #3402975: Add Patterns and synced patterns (reusable blocks) post...
-
codebymikey →
committed ff5e6595 on 3.0.x
-
marcofernandes →
committed 70d61827 on 3.0.x
Issue #3402975: Update existing reusable blocks sync status field
-
marcofernandes →
committed 70d61827 on 3.0.x
-
marcofernandes →
committed 9b7a818d on 3.0.x
Issue #3402975: Add update hook for new config
-
marcofernandes →
committed 9b7a818d on 3.0.x
-
marcofernandes →
committed 87ad951d on 3.0.x
Issue #3402975: Add update hook for new config
-
marcofernandes →
committed 87ad951d on 3.0.x
Automatically closed - issue fixed for 2 weeks with no activity.