Inject various dependencies into DisplayPluginBase

Created on 8 June 2013, almost 12 years ago
Updated 13 February 2024, about 1 year 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 about 15 hours 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
    over 1 year ago
    #73833
  • Pipeline finished with Failed
    over 1 year ago
    #73836
  • πŸ‡¬πŸ‡·Greece dimitriskr

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

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

    I've also created a draft CR for this change

  • Pipeline finished with Success
    about 1 year ago
    Total: 3190s
    #95011
  • Pipeline finished with Success
    about 1 year ago
    Total: 470s
    #95288
  • Status changed to Needs review about 1 year 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 about 1 year 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 about 1 year ago
  • πŸ‡¬πŸ‡·Greece dimitriskr

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

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

    Feedback appears to be addressed.

  • Status changed to Needs work about 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom catch

    I think we should use constructor property promotion here.

  • Pipeline finished with Success
    12 months ago
    Total: 961s
    #142792
  • Pipeline finished with Success
    12 months ago
    Total: 1171s
    #142833
  • Status changed to Needs review 12 months ago
  • Status changed to RTBC 12 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 12 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 12 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 12 months ago
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10
  • Pipeline finished with Failed
    5 months ago
    Total: 107s
    #332932
  • Pipeline finished with Failed
    5 months ago
    Total: 562s
    #333013
  • Pipeline finished with Success
    5 months ago
    Total: 886s
    #333033
  • Pipeline finished with Failed
    5 months ago
    Total: 123s
    #333057
  • Pipeline finished with Success
    5 months ago
    Total: 877s
    #333139
  • Status changed to Needs review 5 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
    5 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
    4 months ago
    Total: 990s
    #364316
  • Pipeline finished with Success
    3 months ago
    Total: 802s
    #381746
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Left comments and questions on the MR.

  • Pipeline finished with Canceled
    2 months ago
    Total: 741s
    #412610
  • Pipeline finished with Success
    2 months ago
    Total: 435s
    #412620
  • The Needs Review Queue Bot β†’ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".

    This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

    Consult the Drupal Contributor Guide β†’ to find step-by-step guides for working with issues.

Production build 0.71.5 2024