Convert Editor plugin discovery to attributes

Created on 13 February 2024, 9 months ago
Updated 3 April 2024, 8 months ago

Problem/Motivation

In ๐Ÿ“Œ Use PHP attributes instead of doctrine annotations Fixed we added support for attribute based plugin discovery.
As part of that issue we converted block and action plugins.

This issue is to convert \Drupal\editor\Annotation\Editorplugins to use Attributes.

Proposed resolution

  1. Add a class to represent the new Attribute - Example
  2. Update the plugin manager constructor to include both the attribute and annotation class names - example
  3. Convert all plugins that use the annotation to use the new attribute - example

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Fixed

Version

10.3 โœจ

Component
Editorย  โ†’

Last updated about 13 hours ago

Created by

๐Ÿ‡ฆ๐Ÿ‡บAustralia larowlan ๐Ÿ‡ฆ๐Ÿ‡บ๐Ÿ.au GMT+10

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

Merge Requests

Comments & Activities

  • Issue created by @larowlan
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia kalpanajaiswal

    Converted Editor plugin discovery to attributes.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia kalpanajaiswal

    Converted Editor plugin discovery to attributes.

  • Status changed to Needs work 9 months ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    Thanks! ๐Ÿ˜Š Could you please convert this to a merge request, for much faster test results?

  • First commit to issue fork.
  • Pipeline finished with Failed
    9 months ago
    Total: 237s
    #104551
  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia mstrelan

    MR is up, added feedback and suggestions to the MR.

  • First commit to issue fork.
  • Pipeline finished with Failed
    9 months ago
    Total: 178s
    #106895
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    Accepted the other suggestion, to fix the spelling error.

  • Pipeline finished with Failed
    9 months ago
    Total: 176s
    #106897
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    I'm the subsystem maintainer and would like to be able to sign off on this. Love where this is going! ๐Ÿ˜„๐Ÿ‘

  • Pipeline finished with Canceled
    9 months ago
    Total: 92s
    #106991
  • Pipeline finished with Running
    9 months ago
    #106995
  • First commit to issue fork.
  • Pipeline finished with Failed
    9 months ago
    Total: 214s
    #107596
  • Pipeline finished with Canceled
    9 months ago
    Total: 24s
    #107604
  • Status changed to Needs review 9 months ago
  • ๐Ÿ‡ท๐Ÿ‡บRussia sorlov
  • Pipeline finished with Failed
    9 months ago
    Total: 208s
    #107606
  • Status changed to Needs work 9 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Appears to phpcs and stan errors.

  • Status changed to Needs review 9 months ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ
  • Pipeline finished with Failed
    9 months ago
    Total: 198s
    #110100
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    Because \Drupal\editor\Plugin\EditorPluginInterface::getJSSettings() and \Drupal\editor\Plugin\EditorPluginInterface::getLibraries() inappropriately are using the concrete Editor class in their signature rather than EditorInterface, an awkward aliasing-upon-using was necessary ๐Ÿ˜ฅ

    As far as I'm concerned, this is ready (except for the one comment nit that is yet to be applied).

  • Pipeline finished with Failed
    9 months ago
    Total: 485s
    #110118
  • Status changed to Needs work 9 months ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    I can reproduce the test failure locally. It's in a test that was added >9 years ago, in #2442255: Changing text formats on a field makes it impossible to edit. โ†’ .

  • Pipeline finished with Failed
    9 months ago
    Total: 487s
    #110276
  • Pipeline finished with Failed
    9 months ago
    Total: 589s
    #111317
  • Pipeline finished with Failed
    9 months ago
    Total: 512s
    #111586
  • Pipeline finished with Failed
    9 months ago
    Total: 494s
    #111990
  • Pipeline finished with Success
    8 months ago
    Total: 488s
    #122334
  • Status changed to Needs review 8 months ago
  • ๐Ÿ‡ณ๐Ÿ‡ฟNew Zealand quietone
  • Status changed to Needs work 8 months ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    The sole remaining unresolved thread is still not resolved, and it's about fixing a big bug in the current MR: https://git.drupalcode.org/project/drupal/-/merge_requests/6776#note_278485

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Ruturaj Chaubey Pune, India

    Ruturaj Chaubey โ†’ made their first commit to this issueโ€™s fork.

  • Pipeline finished with Failed
    8 months ago
    Total: 610s
    #122976
  • Status changed to Needs review 8 months ago
  • ๐Ÿ‡ง๐Ÿ‡ชBelgium wim leers Ghent ๐Ÿ‡ง๐Ÿ‡ช๐Ÿ‡ช๐Ÿ‡บ

    This looks ready to me now!

    But one test is failing:

    Drupal\FunctionalJavascriptTests\Ajax\AjaxTest::testAjaxFocus
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'edit-textfield-3'
    +'edit-textfield-2'
    

    ๐Ÿค” Re-testingโ€ฆ

  • Pipeline finished with Success
    8 months ago
    Total: 19714s
    #122984
  • Pipeline finished with Success
    8 months ago
    Total: 2831s
    #123235
  • Status changed to RTBC 8 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Appears all feedback has been addressed

    All instances replaced

    Tests are green :)

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom alexpott ๐Ÿ‡ช๐Ÿ‡บ๐ŸŒ

    Committed e715970 and pushed to 11.x. Thanks!
    Committed c84ae09 and pushed to 10.3.x. Thanks!

    • alexpott โ†’ committed c84ae09d on 10.3.x
      Issue #3421011 by sorlov, Wim Leers, quietone, kalpanajaiswal, mstrelan...
  • Status changed to Fixed 8 months ago
    • alexpott โ†’ committed e7159707 on 11.x
      Issue #3421011 by sorlov, Wim Leers, quietone, kalpanajaiswal, mstrelan...
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024