Problem/Motivation

This issue will bring the phase 1 Recipes project into core. The MR includes all the fixed issues from the recipes queue - see https://www.drupal.org/project/issues/search/distributions_recipes?proje...

Proposed resolution

@todo

Remaining tasks

#3439702: Allow CLI install of Drupal using recipes
#3439918: Add a core/core.recipes.api.php file
#3427558: Output information from the recipe application process

And any other issues tagged in the queue with core-mvp - see https://www.drupal.org/project/issues/search/distributions_recipes?proje...

User interface changes

None

API changes

The MR adds 4 new APIs. There are:

  • Drupal\Core\Config\Action
  • Drupal\Core\Config\Checkpoint
  • Drupal\Core\Recipe
  • Drupal\Core\DefaultContent

Recipe depends on DefaultContent, Action and Checkpoint. The other new APIs have no interdependencies.

Data model changes

None

Release notes snippet

@todo

NOTE ABOUT CONTRIBUTING TO THIS MR

Ideally create a core-mvp issue in https://www.drupal.org/project/issues/distributions_recipes and address there first and one of the recipes initiative leads will merge in into this the fork and then into this MR>

Issue fork drupal-3439923

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alexpott created an issue. See original summary.

alexpott credited bircher.

alexpott credited franz.

alexpott credited nedjo.

alexpott credited sonfd.

alexpott credited tasc.

alexpott’s picture

Status: Active » Needs review

Adding the people who contributed the issues that are committed to the recipe repo as contributors here.

alexpott’s picture

Issue summary: View changes
alexpott’s picture

Issue summary: View changes

alexpott’s picture

alexpott credited vasike.

alexpott’s picture

larowlan’s picture

Left a review.

You mentioned the other night we could split the APIs up and put them in separately - e.g. the default content api, the config actions stuff.

But reviewing it with gitlab wasn't horrible so I'm not fussed either way.

alexpott’s picture

Crediting people of who have been credited in the recipes initiative queue recently.

alexpott credited millnut.

alexpott’s picture

Crediting people of who have been credited in the recipes initiative queue recently.

alexpott’s picture

thejimbirch’s picture

Going to move this to RTBC. All the feedback from @larowlan has been addressed, and out last outstanding issue is being reviewed by @alexpot.

thejimbirch’s picture

Status: Needs review » Reviewed & tested by the community
wim leers’s picture

Responded to ~half a dozen threads.

And did a review pass myself too over the parts I had not seen before. Two questions I have:

  1. changing InstallCommand looks like a BC break? https://git.drupalcode.org/project/drupal/-/merge_requests/7410#note_306489
  2. why do we need all the revision_translation_affected in the default content YAML if it's a read-only field? https://git.drupalcode.org/project/drupal/-/merge_requests/7410#note_306499
phenaproxima’s picture

Regarding #31.2: it's exported by the default_content module, which is what generates these YAML files. IMHO they should not be changed at this time, but if (which, once this is committed, is really when) core adds the ability to export content entities as YAML, then it may make sense to omit certain fields, like revision_translation_affected.

alexpott credited longwave.

alexpott’s picture

Creditting longwave for review

longwave’s picture

Status: Reviewed & tested by the community » Needs work

Did a second pass, nothing much to add except some small nits - happy to defer many of them to followups if that helps.

alexpott’s picture

Status: Needs work » Reviewed & tested by the community

I've addressed/applied @longwave's review - thanks! - great spot on the array_diff. As these were small nits setting back to rtbc.

longwave’s picture

Status: Reviewed & tested by the community » Needs work

Some test failures following the change to encode/decode.

alexpott’s picture

Status: Needs work » Reviewed & tested by the community

Fixed the tests - it was pretty simple so back to RTBC.

alexpott’s picture

mondrake’s picture

Can you please make dataproviders static so we don’t mess up with PHPUnit 10 upgrade ?

longwave’s picture

Status: Reviewed & tested by the community » Needs work

Great catch in #40.

alexpott’s picture

Status: Needs work » Reviewed & tested by the community

Resolved #40 in https://git.drupalcode.org/project/drupal/-/merge_requests/7410/diffs?co... - as this is only about staticness - back to rtbc.

longwave’s picture

Status: Reviewed & tested by the community » Needs work

Will need a separate MR for 10.3.x/10.4.x:

CONFLICT (content): Merge conflict in core/lib/Drupal/Core/Command/InstallCommand.php

11.x is also currently frozen but this could be committed there when it's unfrozen and then backported later to 10.4/10.3, so leaving at RTBC for now.

alexpott’s picture

Status: Needs work » Needs review

We maintain a 10.3.x version of recipes so that's no problem to push here... which I've done so #43 is done so I guess this can be back to rbtc once we see green on the 10.3.x test run.

alexpott’s picture

Status: Needs review » Reviewed & tested by the community

we're green on 10.3.x

  • longwave committed a15d5540 on 10.3.x
    Issue #3439923 by alexpott, longwave, thejimbirch, Wim Leers,...

  • longwave committed 54be1ad9 on 10.4.x
    Issue #3439923 by alexpott, longwave, thejimbirch, Wim Leers,...

  • longwave committed 74da82a3 on 11.x
    Issue #3439923 by alexpott, longwave, thejimbirch, Wim Leers,...
longwave’s picture

Version: 11.x-dev » 10.3.x-dev
Status: Reviewed & tested by the community » Fixed

Thanks to everyone who contributed here, and congratulations on landing this, can't wait to see what we can do in the future now this is available in core.

Committed 74da82a and pushed to 11.x. Thanks!

Committed and pushed 54be1ad9d2 to 10.4.x and a15d5540c6 to 10.3.x. Thanks!

  • longwave committed 1beb140e on 11.0.x
    Issue #3439923 by alexpott, longwave, thejimbirch, Wim Leers,...
gábor hojtsy’s picture

Published the draft CR at https://www.drupal.org/node/3445169

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.