Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Apr 2018 at 19:03 UTC
Updated:
6 Aug 2019 at 19:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottPatch removes all usages. Going to add a test.
Comment #3
alexpottHere's a legacy test that tests drupal_get_profile() in nearly all of the ways it works.
It doesn't test
Because this is a db call and I've done this as a unit test. I'm not sure that level of complexity is necessary because there is no logic inside the else.
Comment #4
alexpottIt'd be great to get #2952888: Allow install profiles to require modules done first because it removes the dependency of the uninstall form on drupal_get_profile().
Comment #6
alexpottWhoops.
Comment #7
borisson_The one remark I have is that we usually seem to mention the version of drupal a function was deprecated in and the trigger_error here doesn't seem to be doing that.
I don't have any other remarks, but I don't feel confident enough about my knowledge of the installer system to RTBC this patch.
Comment #8
dawehnerThis looks really great already!
I'm curious whether it is worth injecting the parameter normally, instead of going via the kernel to the container.
In case you want to make your life easier ... there is
$this->rootComment #9
alexpottThanks for the review @dawehner. Re #8.1 - I left that well alone because of #2380293: Properly inject services into ModuleInstaller.
easy life++
Comment #10
borisson_Should we postpone this issue based on #4? Otherwise it looks like the remarks @dawehner had in #8 are resolved.
Comment #11
alexpott@borisson_ yep let's postpone.
Comment #12
alexpottPostponing on #2952888: Allow install profiles to require modules
Comment #14
colanUpdating status now that the other issue has been resolved.
Comment #16
alexpottHere's a reroll. Some things have got simpler in the intervening 11 months. The profile is not injected into ModulesUninstallForm for example.
Comment #18
volegerComment #19
volegerRerolled in the separate JUST_REROLL patch.
Changes in the second patch:
- Removed changes in a create method (mentioned in #16 comment)
- Fixed CS issues related to the deprecation messages and legacy test.
Comment #20
wim leersWhy 1000?
Nit: extraneous blank line 🤓
I think this is the longest list of annotations I've ever seen in a test :D
Nit: s/Test/Tests/
🤔 I thought we usually named the provider
providerFooBarif the test method it's for is calledtestFooBar?This is naming it
providerTestFoobarinstead.Nit: Let's format this to fit within 80 cols.
Comment #21
volegerRegarding #20.1:
See
install_finished()function ininstall.core.incfile:Comment #22
andypostComment #23
wim leers#21: TIL! Thanks 🙏
Comment #24
vladbo commented#20.2: fixed
#20:4: fixed
#20.5: fixed
#20.6: fixed
Test was renamed to DrupalGetProfileLegacyTest.php
Comment #25
vladbo commentedComment #26
volegerAddressed #20
Comment #27
catchCommitted eb9dc11 and pushed to 8.8.x. Thanks!
Comment #29
catch