- Issue created by @tedbow
- Assigned to yash.rode
- Status changed to Needs work
almost 2 years ago 7:42am 11 April 2023 - @yashrode opened merge request.
- 🇮🇳India yash.rode pune
Need help with:
InEnabledProjectsValidator.php
$module_list = $this->moduleExtensionList->getList();
does not contain the test_module2, which I am enabling inEnabledProjectsValidatorTest.php
So can I use$this->configFactory->get('core.extension')->get('module');
to do that. - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
https://git.drupalcode.org/project/automatic_updates/-/merge_requests/82... and the first 2 hunks in https://git.drupalcode.org/project/automatic_updates/-/merge_requests/82... were my work after pairing with @yash.rode this morning for 1.5 hours.
@yash.rode, I asked you to write a comment on the issue about why those changes were necessary. I don't see that comment yet?
- Assigned to wim leers
- 🇮🇳India yash.rode pune
I got ahead with the previous problem, I have added package type in FixtureManipulator but the problem in below debug output is, the path of our test site(/private/tmp/package_manager_testing_roottest85927549/active) is not there in the
$searchdirs
whereExtensionDiscovery::scan()
is going to scan for the extensions. So it won't be able to find/modules/contrib/test_module2/
- 🇮🇳India yash.rode pune
Hi @wim.leers, I am trying to find the reason why we have to remove the node_modules/ingnore.txt and I can't remember the actual reason of removing it but .../active/core/composer.json doesn't exist(which causes the test to fail) when we have node_modules/ingnore.txt otherwise composer.json exists?
- Assigned to yash.rode
- 🇮🇳India yash.rode pune
In a call with @tedbow and @phenaproxima came to a conclusion that, we can't do it this way because we won't be able to see the module we are adding in the test directory in ExtensionDiscovery::scan() as it uses the local directory to find the extensions and not the test directory.
We are going with the use ofModuleHandler
by getting a list of enabled modules and then adding an custom created extension to that list and then setting the newly created extensions List. - last update
almost 2 years ago 708 pass - 🇮🇳India yash.rode pune
\Drupal\automatic_updates\Validator\StagedProjectsValidator
will also throw exception if an enabled module is removed so what should we do with that? for now I have disabled that validator. - last update
almost 2 years ago 710 pass - last update
almost 2 years ago 718 pass - last update
almost 2 years ago 718 pass - last update
almost 2 years ago 718 pass - last update
almost 2 years ago 718 pass - Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 11:09am 18 April 2023 - Assigned to omkar.podey
- Assigned to yash.rode
- Status changed to Needs work
almost 2 years ago 12:41pm 18 April 2023 - 🇮🇳India omkar.podey
Looks good overall, some questions need answering and some further simplification is possible.
- last update
almost 2 years ago 719 pass - Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 10:02am 19 April 2023 - Assigned to omkar.podey
- last update
almost 2 years ago 719 pass - Issue was unassigned.
- Status changed to RTBC
almost 2 years ago 11:18am 19 April 2023 - Assigned to yash.rode
- Status changed to Needs work
almost 2 years ago 11:42am 19 April 2023 - 🇺🇸United States phenaproxima Massachusetts
I like how straightforward this validator is. It leverages our API nicely and the test covers all cases, as far as I can tell. I think it still needs some clean-up, but no major refactoring.
- last update
almost 2 years ago 721 pass - Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 7:40am 20 April 2023 - Assigned to phenaproxima
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Thanks to @phenaproxima's review, I spotted something else — most of my feedback needs input/confirmation from him before you should act on it, @yash.rode, so assigning to @phenaproxima!
- last update
almost 2 years ago 748 pass - last update
almost 2 years ago 748 pass - last update
almost 2 years ago 748 pass - Assigned to yash.rode
- Status changed to Needs work
almost 2 years ago 8:46pm 20 April 2023 - 🇺🇸United States phenaproxima Massachusetts
This is really great work. I did a touch of clean-up in the test, but there really wasn't a whole lot to do!
I think all this needs is two follow-ups and a
@todo
, then it's good to go. For reference, the follow-ups are:- To rename
InstalledPackage::getProjectName()
andInstalledPackagesList::getPackageByDrupalProjectName()
(no need for a todo here) - To make ComposerInstallersTrait add the default configuration, for DX purposes. (This one does need a todo)
- To rename
- last update
almost 2 years ago 748 pass - last update
almost 2 years ago 748 pass - last update
almost 2 years ago 748 pass - Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 9:19am 21 April 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
@phenaproxima mentioned the 2 follow-ups that we need:
- Done: 📌 Document the relations between packages, projects, extensions, modules, themes, and profiles Needs work — thanks @yash.rode!
- Done: 📌 Set the default installer paths for Drupal in installComposerInstallers() Fixed — thanks @yash.rode!
Removed tag.
- last update
almost 2 years ago 748 pass - Assigned to phenaproxima
- Status changed to RTBC
almost 2 years ago 11:02am 21 April 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
The end result looks amazing! 🤩👍
Just one nitpicky question left for @phenaproxima!
-
phenaproxima →
committed 32f733eb on 3.0.x authored by
yash.rode →
Issue #3353219 by yash.rode, phenaproxima, Wim Leers, omkar.podey:...
-
phenaproxima →
committed 32f733eb on 3.0.x authored by
yash.rode →
- Status changed to Fixed
almost 2 years ago 11:26am 21 April 2023 - 🇺🇸United States phenaproxima Massachusetts
I think that, if we want to make all injected dependencies
readonly
, it's something we should do in a follow-up consistently across the module, rather than piecemeal. So that's why I reverted that change for now.But otherwise, glad to get this safeguard in!
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
👍
Done: 📌 All injected services should be marked readonly Fixed .
Automatically closed - issue fixed for 2 weeks with no activity.