[2.0.0-rc1] Remove TODOs and obsolete stuff

Created on 11 December 2024, about 1 month ago

Problem/Motivation

Some obsolete stuff according to Christian:

  • Move this hook function ui_patterns_field_config_delete(FieldConfigInterface $field_config): void TO ::UiPatternsEntitySchemaSubscriber
  • Remove ui_patterns_plugin_filter_block__ui_patterns_alter ?
  • Remove ui_patterns_test_theme. I think we don't need it anymore ?
  • Remove test components alert, close_button, prop_types_tests ?
  • Remove ui-patterns-actions.html.twig ?

Some TODO following πŸ“Œ [2.0.0-rc1] Remove temporary compatibilty layers Active :

$ grep -ir "todo" src/
src/Form/ComponentFormBuilderTrait.php:    // @todo This highlights the link between a configuration key and a form
src/SourcePluginBase.php:    // @todo select the shortest conversion path?
src/SourcePluginBase.php:   * @todo use NestedArray::mergeDeep ?
src/Element/ComponentFormBase.php:    // @todo better organize sources in groups.
src/Element/ComponentElementAlter.php:   * @todo Move this to Drupal Core.
src/Element/ComponentElementBuilder.php:    /* @todo Performance issue...
src/Plugin/UiPatterns/PropType/LinksPropType.php:        // @todo System path is deprecated - use the route name and parameters.
src/Plugin/UiPatterns/DerivableContext/EntityReferencedDerivableContext.php:    // @todo better implementation with service 'entity_type.bundle.info'
src/Plugin/UiPatterns/Source/TextfieldWidget.php:    // @todo change when issue https://www.drupal.org/project/drupal/issues/2633550 is fixed.
src/SourcePluginManager.php:    // @todo use a method of the plugin instead?

$ grep -ir "todo" modules/
modules/ui_patterns_views/src/ViewsPluginUiPatternsTrait.php:    // @todo better implementation with service 'entity_type.bundle.info'
modules/ui_patterns_field_formatters/src/Plugin/UiPatterns/Source/FieldFormatterSource.php:    // @todo remove ui patterns formatters from the list of options ?
modules/ui_patterns_field_formatters/src/Plugin/UiPatterns/Source/FieldFormatterSource.php:    // @todo Ensure it is right to empty all values here, see:
modules/ui_patterns_field_formatters/src/Plugin/Field/FieldFormatter/ComponentFormatterBase.php:    // @todo better implementation with service 'entity_type.bundle.info'
modules/ui_patterns_field_formatters/src/Plugin/Field/FieldFormatter/ComponentFormatterBase.php:    // @todo does this really makes sense to propagate the externally injected context

Which ones can you safely do before 2.0.0?

Proposed resolution

Remove what can be removed. Be careful.

πŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024