Inject various dependencies into DisplayPluginBase

Created on 8 June 2013, over 11 years ago
Updated 13 February 2024, 11 months ago

For better unit testability this converts the display base plugin to get it's dependencies injected.

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated 29 minutes ago

Created by

πŸ‡©πŸ‡ͺGermany dawehner

Live updates comments and jobs are added and updated live.
  • VDC

    Related to the Views in Drupal Core initiative.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • Pipeline finished with Failed
    12 months ago
    #73833
  • Pipeline finished with Failed
    12 months ago
    #73836
  • πŸ‡¬πŸ‡·Greece dimitriskr

    dimitriskr β†’ changed the visibility of the branch 11.x to hidden.

  • Pipeline finished with Canceled
    11 months ago
    #81602
  • Pipeline finished with Failed
    11 months ago
    #81604
  • Pipeline finished with Failed
    11 months ago
    #81610
  • Pipeline finished with Failed
    11 months ago
    Total: 175s
    #94369
  • Pipeline finished with Failed
    11 months ago
    #94378
  • Pipeline finished with Failed
    11 months ago
    Total: 526s
    #94383
  • Pipeline finished with Failed
    11 months ago
    #94393
  • Pipeline finished with Success
    11 months ago
    Total: 787s
    #94684
  • πŸ‡¬πŸ‡·Greece dimitriskr

    I've also created a draft CR for this change

  • Pipeline finished with Success
    11 months ago
    Total: 3190s
    #95011
  • Pipeline finished with Success
    11 months ago
    Total: 470s
    #95288
  • Status changed to Needs review 11 months ago
  • πŸ‡¬πŸ‡·Greece dimitriskr

    Finally, ready for review.

    P.S. I've deliberatly put the issue node instead of the draft CR link to the trigger_error(), per a conversation with @berdir at Slack.

  • Status changed to Needs work 11 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Left a comment on the MR.

    But think the MR and maybe title should be updated as not super clear why the Rest plugin is needed to be updated.

  • Status changed to Needs review 10 months ago
  • πŸ‡¬πŸ‡·Greece dimitriskr

    RestExport plugin is updated because it extends PathPluginBase, which itself extends DisplayPluginBase

  • Pipeline finished with Success
    10 months ago
    Total: 513s
    #104516
  • Status changed to RTBC 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Feedback appears to be addressed.

  • Status changed to Needs work 10 months ago
  • πŸ‡¬πŸ‡§United Kingdom catch

    I think we should use constructor property promotion here.

  • Pipeline finished with Success
    9 months ago
    Total: 961s
    #142792
  • Pipeline finished with Success
    9 months ago
    Total: 1171s
    #142833
  • Status changed to Needs review 9 months ago
  • Status changed to RTBC 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Good call on the constructor promotion.

    For the follow up issue of removing these deprecations would recommend tagging for novice. Would be excellent for new users.

  • Status changed to Needs work 9 months ago
  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

    As per @catch's comment on the MR we can remove the constructor docs everywhere and we can use property promotion on all the classes.

  • Status changed to RTBC 9 months ago
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    The issue summary has 'Add BC layer' deleted - this is a fairly common extension point.
    We're not obligated to provide a BC layer, but should we do the right thing and try to avoid hard breaking people's things without warning?

  • Status changed to Needs work 9 months ago
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10
  • Pipeline finished with Failed
    about 2 months ago
    Total: 107s
    #332932
  • Pipeline finished with Failed
    about 2 months ago
    Total: 562s
    #333013
  • Pipeline finished with Success
    about 2 months ago
    Total: 886s
    #333033
  • Pipeline finished with Failed
    about 2 months ago
    Total: 123s
    #333057
  • Pipeline finished with Success
    about 2 months ago
    Total: 877s
    #333139
  • Status changed to Needs review about 2 months ago
  • πŸ‡¬πŸ‡·Greece dimitriskr

    Added the constructor property promotion.
    About the constructor docs, I cannot remove them because PHPCS will complain and tests will fail. Do I need to add a phpcs bypass for this to work?

    @larowlan BC layer exists, it's crossed out because it is already done

  • Pipeline finished with Success
    about 2 months ago
    Total: 1412s
    #333160
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    @dimitriskr sorry haven't had a chance to get to this sooner. I believe we have probably missed the 11.1x window mind updating those for 11.2.x please

    I'd assign the issue to you if I could

  • Pipeline finished with Success
    23 days ago
    Total: 990s
    #364316
  • Pipeline finished with Success
    3 days ago
    Total: 802s
    #381746
Production build 0.71.5 2024