- Issue created by @phenaproxima
- First commit to issue fork.
- last update
10 months ago Custom Commands Failed - last update
10 months ago 71 pass, 4 fail - 🇺🇸United States phenaproxima Massachusetts
@srishtiiee had asked me in Slack:
I need some directions over evaluating the compatibility of a recipe with the site, do you have any thoughts over it? Do we need to check the compatibility of all its dependencies?
That's a really good question.
My feeling at this stage of things is that we should assume recipes are compatible if their
composer.json
says they are. I see that the source plugin we're building here, as it currently exists, asks for data on each individual recipe -- that's good!To be compatible, maybe a recipe should:
- Declare a dependency (in its
composer.json
'srequire
section) ondrupal/core
ordrupal/core-recommended
- That requirement must satisfy (according to semver) the current version of Drupal core. So something like this (psuedocode):
if (\Composer\Semver\Semver::satisfies($core_version_required, \Drupal::VERSION)) { $recipe_is_compatible = TRUE; }
I'm sure we'll refine this later on, when drupal.org properly exposes recipes. But given the limited information we can get from Packagist, this might be a reasonable approach in the meantime.
- Declare a dependency (in its
- last update
10 months ago 77 pass - last update
10 months ago 72 pass, 2 fail - last update
10 months ago 72 pass, 2 fail - Status changed to Needs review
10 months ago 2:08pm 24 January 2024 - Status changed to Needs work
10 months ago 2:31pm 24 January 2024 - last update
10 months ago 77 pass - last update
10 months ago Custom Commands Failed - last update
10 months ago Custom Commands Failed - last update
10 months ago Custom Commands Failed - last update
10 months ago 77 pass, 1 fail - Open on Drupal.org →Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7last update
10 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7last update
10 months ago Waiting for branch to pass - last update
10 months ago Custom Commands Failed - Status changed to Needs review
10 months ago 2:42pm 9 February 2024 - Status changed to Needs work
10 months ago 6:51pm 12 February 2024 - 🇺🇸United States phenaproxima Massachusetts
I think this is a fantastic start, and quite straightforward and generally easy to understand. There are some spots where it needs to be more robust and better-documented, and we need to expand the test coverage somewhat, but I think this is a very strong foundation upon which to iterate. Nice job, @srishtiiee!
- last update
9 months ago Custom Commands Failed - Open on Drupal.org →Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Status changed to Needs review
9 months ago 11:52am 20 February 2024 - Status changed to Needs work
9 months ago 8:40pm 22 February 2024 - 🇺🇸United States phenaproxima Massachusetts
This looks really good to me. Most of my remaining feedback is quite minor!
- Open on Drupal.org →Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Open on Drupal.org →Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Status changed to Needs review
9 months ago 11:49am 23 February 2024 - 🇮🇳India srishtiiee
@phenaproxima, thanks for the review! I've addressed it and the MR needs another review.
- Status changed to Needs work
9 months ago 3:58pm 27 February 2024 - 🇺🇸United States phenaproxima Massachusetts
Few nits, but otherwise I don't see any reason to hold this up!
- 🇺🇸United States phenaproxima Massachusetts
This will probably need some changes now that ✨ Remove as many getters and setters as possible from the Project class, in favor of public, typed properties Fixed landed.
- Open on Drupal.org →Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7last update
9 months ago Waiting for branch to pass - Status changed to Needs review
9 months ago 10:46am 28 February 2024 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Can we get some screenshots in the issue summary? 😇 Very curious to see what this looks like for end users! 😄
(I would not be a good code reviewer here, because I don't know this codebase at all.)
- 🇺🇸United States phenaproxima Massachusetts
Thanks for that screenshot, @srishtiiee, it looks good to me! It's a bit sad (and concerning) that none of the recipes in it are compatible -- are we sure that compatibility check is working? At the very least, I've been able to get kanopi/gin-admin-experience to work on Drupal 10.2.x.
- Status changed to RTBC
9 months ago 8:22pm 29 February 2024 - 🇺🇸United States phenaproxima Massachusetts
Well, I think that looks pretty good, at least from a code perspective!
I need to give it a manual test, but since this is a proof of concept, I think we could call this RTBC. It probably doesn't need to be committed right now, but it could be applied in conjunction with the recipe system (which is a core patch itself). I'll add this to my recipe-test repo, which sets up the recipe system with Project Browser.
- Status changed to Needs work
8 months ago 3:10pm 20 March 2024 - 🇺🇸United States chrisfromredfin Portland, Maine
After talking to Tim about this, I like the idea that the plugin itself (and test) be provided externally to this project. However, it sounds like we still need/want to move the pagination into the base class.
Can we break out the DrupalCore.php and ProjectBrowserSourceBase.php changes into a separate issue, and I'll merge that one?
- 🇨🇦Canada mandclu
There are recipes listed on the Recipes Cookbook → that are posted to drupal.org as module projects, with newer releases reconfigured to be recipes. They don't seem to show up in the packagist.org list. Is that because of the packagist.org integration for drupal.org?
- 🇺🇸United States thejimbirch Cape Cod, Massachusetts
@mandclu. I believe that is because the function is pulling from https://packagist.org/, not https://packages.drupal.org/8
private function fetchRecipeData() : array { $recipes = []; try { $url = 'https://packagist.org/search.json?type=drupal-recipe';
from: https://git.drupalcode.org/project/project_browser/-/merge_requests/425/...
- 🇺🇸United States chrisfromredfin Portland, Maine
Also, yes. Only Drupal "general" projects go to Packagist, not module projects.