Investigate ModuleHandler::add

Created on 18 October 2024, 4 months ago

Problem/Motivation

It currently picks up procedural hooks but it makes no sense to do so after the introduction of ModuleInstaller::invoke()
and the additional work in πŸ“Œ OOP hooks using event dispatcher Needs review

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

base system

Created by

πŸ‡ΊπŸ‡ΈUnited States nicxvan

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

Merge Requests

Comments & Activities

  • Issue created by @nicxvan
  • πŸ‡¨πŸ‡¦Canada Charlie ChX Negyesi 🍁Canada
  • πŸ‡ΊπŸ‡ΈUnited States nicxvan
  • πŸ‡ΊπŸ‡ΈUnited States nicxvan
  • πŸ‡ΊπŸ‡ΈUnited States nicxvan
  • Merge request !10262Remove user from authorize β†’ (Open) created by nicxvan
  • Pipeline finished with Success
    3 months ago
    Total: 733s
    #343931
  • Pipeline finished with Success
    3 months ago
    Total: 609s
    #343963
  • Pipeline finished with Failed
    3 months ago
    Total: 184s
    #350765
  • Pipeline finished with Failed
    3 months ago
    Total: 725s
    #350785
  • Pipeline finished with Failed
    3 months ago
    Total: 572s
    #350998
  • Merge request !10365Resolve #3481778 "Option2" β†’ (Open) created by nicxvan
  • Pipeline finished with Success
    3 months ago
    Total: 953s
    #352036
  • Pipeline finished with Success
    3 months ago
    Total: 532s
    #352082
  • Pipeline finished with Failed
    3 months ago
    Total: 509s
    #352240
  • Pipeline finished with Failed
    3 months ago
    Total: 804s
    #352265
  • Pipeline finished with Failed
    3 months ago
    Total: 139s
    #352340
  • Pipeline finished with Success
    3 months ago
    Total: 1152s
    #352344
  • Pipeline finished with Failed
    3 months ago
    Total: 640s
    #356616
  • Pipeline finished with Canceled
    3 months ago
    Total: 81s
    #356870
  • πŸ‡ΊπŸ‡ΈUnited States nicxvan
  • Pipeline finished with Failed
    3 months ago
    Total: 157s
    #357029
  • πŸ‡ΊπŸ‡ΈUnited States nicxvan
  • πŸ‡ΊπŸ‡ΈUnited States nicxvan

    nicxvan β†’ changed the visibility of the branch 3481778-investigate-modulehandleradd to hidden.

  • Pipeline finished with Failed
    3 months ago
    Total: 251s
    #357034
  • Pipeline finished with Failed
    3 months ago
    Total: 252s
    #357039
  • Pipeline finished with Success
    3 months ago
    Total: 1890s
    #357051
  • πŸ‡ΊπŸ‡ΈUnited States nicxvan
  • πŸ‡³πŸ‡±Netherlands daffie

    Back to NW for the 2 remarks on the MR.

  • πŸ‡ΊπŸ‡ΈUnited States nicxvan

    I think I answered your concerns, let me know if you have any further questions.

  • πŸ‡³πŸ‡±Netherlands daffie

    My questions have been answered.
    All code changes look good to me.
    The IS and the CR are in order.
    For me it is RTBC.

  • πŸ‡ΊπŸ‡ΈUnited States dww

    Thanks for working on this!
    GitLab thinks this needs a rebase due to conflicts.
    Meanwhile, I opened some MR threads, mostly with pedantic nits.

  • πŸ‡ΊπŸ‡ΈUnited States nicxvan

    Yeah I saw the conflict but when I went to rebase it was gone, maybe an issue was reverted I'll fix it and address your comments.

  • Pipeline finished with Success
    3 months ago
    Total: 751s
    #364929
  • πŸ‡ΊπŸ‡ΈUnited States nicxvan

    Rebase is werd I'll look tomorrow

  • πŸ‡ΊπŸ‡ΈUnited States nicxvan

    Rebased and comments addressed.

  • Pipeline finished with Success
    2 months ago
    Total: 80105s
    #364987
  • Pipeline finished with Failed
    2 months ago
    Total: 147s
    #367134
  • Pipeline finished with Failed
    2 months ago
    Total: 3569s
    #367140
  • πŸ‡ΊπŸ‡ΈUnited States dww

    The functional test fails in https://git.drupalcode.org/issue/drupal-3481778/-/pipelines/367140 are random, but the fail in Unit is legit. Opened MR threads with suggestions.

    Almost there, thanks!
    -Derek

  • Pipeline finished with Success
    2 months ago
    Total: 584s
    #367224
  • πŸ‡ΊπŸ‡ΈUnited States nicxvan
  • Pipeline finished with Success
    2 months ago
    Total: 633s
    #367282
  • πŸ‡ΊπŸ‡ΈUnited States dww

    Whereas:

    1. All feedback addressed.
    2. Pipeline 367282 is green.
    3. This is my first time experimenting with requesting changes. Even though I've got somewhat elevated perms in GitLab MRs for core as a subsystem maintainer, I can't actually resolve that request (even though I made it myself). Good to know, I won't be using that feature anymore. The committer can ignore the "Merge blocked: 1 check failed" error on the MR.
    4. Tweaked some formatting in the summary.
    5. Initial pass at saving credit.
    6. I don't mind RTBC'ing this, even though I pushed a trivial commit to update the formatting of the deprecation message.

    Therefore, RTBC!

    Thanks again,
    -Derek

  • πŸ‡ΊπŸ‡ΈUnited States dww
  • πŸ‡¬πŸ‡§United Kingdom longwave UK

    This looks like a nice cleanup, added a couple of minor questions to the MR.

  • Pipeline finished with Failed
    2 months ago
    Total: 455s
    #367689
  • Status changed to Needs review 2 months ago
  • πŸ‡ΊπŸ‡ΈUnited States nicxvan

    I replied to the comments that I could not address.

  • Pipeline finished with Success
    about 2 months ago
    Total: 795s
    #383875
  • πŸ‡ΊπŸ‡ΈUnited States nicxvan

    Follow up created and all comments addressed.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Resolved all threads

    When looking at the CR though it wasn't super clear, maybe something like

    ModuleHandler::addModule and ModuleHandler::addProfile have been deprecated. There is no direct replacement. (can the reason why be mentioned?)

    Adding modules or profiles run time is not supported. Use ModuleInstallerInterface::install instead.

    before/after implementations or least an after of how one would use ModuleInstallerInterface::install

  • πŸ‡ΊπŸ‡ΈUnited States nicxvan

    Updated the CR.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thanks!

    CR reads much better. I believe all feedback for this one is complete. Fingers crossed.

  • First commit to issue fork.
  • πŸ‡³πŸ‡ΏNew Zealand quietone

    I left some questions in the MR. The change record before section should be for 'addModule' and 'addProfile' not 'add'. Tagging for updates.

  • πŸ‡¬πŸ‡§United Kingdom oily Greater London

    @quiteone RE: #30, updated the CR. Is the new version closer?

  • Pipeline finished with Success
    29 days ago
    Total: 588s
    #406715
  • Pipeline finished with Success
    29 days ago
    Total: 1518s
    #406730
  • πŸ‡¬πŸ‡§United Kingdom oily Greater London

    Dealt with 2 of 3 comments in the MR. Rebased.

  • Pipeline finished with Failed
    29 days ago
    Total: 596s
    #406755
  • πŸ‡ΊπŸ‡ΈUnited States nicxvan

    I will revert one of your changes you removed the deprecation on module handler add.

    I'll address the remaining comment too it just needs to be more imperative.

  • πŸ‡¬πŸ‡§United Kingdom oily Greater London

    @nicxvan Ah, I see. Thank you for fixing.

  • πŸ‡ΊπŸ‡ΈUnited States nicxvan

    @quietone, I don't think we can change the return type since it's inherit doc and the parent has return type of array|false?

    Is that ok?

  • Pipeline finished with Success
    29 days ago
    Total: 1412s
    #406779
  • πŸ‡ΊπŸ‡ΈUnited States nicxvan
  • πŸ‡ΊπŸ‡ΈUnited States nicxvan

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

  • πŸ‡ΊπŸ‡ΈUnited States nicxvan
Production build 0.71.5 2024