- Issue created by @thejimbirch
- Status changed to Postponed
11 months ago 7:06pm 29 January 2024 - πΊπΈUnited States phenaproxima Massachusetts
I'd like to postpone this on #3417835: Convert the Standard install profile into a set of recipes β . If we can convert Standard to recipes, then we can attack Umami, which is a far more complicated install profile that even touches on the need for default content. :)
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Not only that, it's possible that a recipized(?) version of Umami could reuse some of the recipes that make up Standard.
Shouldn't we take this into account while converting Standard to a Recipe? π€ For example for the
article
andpage
node types, as well as the various media types? - πΊπΈUnited States phenaproxima Massachusetts
Shouldn't we take this into account while converting Standard to a Recipe?
Well...sure, but in an indirect way. IMHO, converting Standard to recipes is a big enough undertaking even without having to think about Umami.
Let's get Standard converted, and committed, first. Then see what we can reuse from it without any modifications. (I'm guessing most of its tangible content and media types will fall into that category.)
- π¬π§United Kingdom Eli-T Manchester
Just fixing what looks like copy-paste hangovers in the summary - Standard β‘οΈ Umami in text and standard β‘οΈ demo_umami in config links.
- πΊπΈUnited States phenaproxima Massachusetts
The Umami profile substantially extends the
editorial
workflow compared to what's in Standard, so I think we'll probably want to have some config actions available to manipulate Content Moderation workflows before we do this. The only one currently open is #3422821: Add a config action to add entity types and bundles to a Content Moderation workflow β , and we'll need that one, so blocking this on that. - πΊπΈUnited States phenaproxima Massachusetts
Hey, look... #3417835: Convert the Standard install profile into a set of recipes β is in!
- πΊπΈUnited States phenaproxima Massachusetts
Umami also ships content, of course...but #3292287: Extend recipe runner to create content provided in the recipe's /content folder β is in a reviewable state, now. So blocking on that one too.
- πΊπΈUnited States phenaproxima Massachusetts
I was thinking about this a bit and it occurs to me that converting Umami to a set of recipes is a much different circumstance, and therefore has different goals, then converting Standard.
The recipes that make up Standard are meant to be generic, reusable parts -- the kind of things you'd likely need on any site. Umami is a lot more specialized. Do we really expect, for example, that most (or even many) sites will want to have a "recipe" content type, set up specifically the way they are set up in Umami?
To me, this means we should take a different approach in reconstructing Umami as a recipe. Namely - I think the Umami recipe can be less composable, because it's intended more to be a self-contained demo than a set of reusable parts. We should carefully consider which parts of Umami can be extracted into smaller, useful recipes that could be cherry-picked into other sites...but I suspect the main Umami recipe can and will be very large and complicated. That's okay, though, since that is in line with Umami's purpose.
- πΊπΈUnited States phenaproxima Massachusetts
Some thoughts on how to split up Umami:
- The block types (banner, basic, disclaimer, and footer promo) should be reused from Standard (basic_block_type), and should all be individual recipes.
- The Page content type, and all media types, can probably be reused from Standard (or lightly modified, if needed, by the main Umami recipe).
- The "card" view mode for nodes should be its own recipe. I can imagine that being very useful.
- The recipe content type should be its own, well, recipe. Although we might want to call it umami_recipe_content_type, to make it very clear that this content type was specifically designed for Umami.
- All of Umami's image styles and associated media view modes should be part of a single recipe called umami_image_styles (or similar). It should include the responsive image styles.
- The "author" and "editor" roles can be part of the main Umami recipe.
- Umami's Article and Page content types use Layout Builder. This, to me, is a great chance to have a layout_builder_content recipe, which applies LB to all content types! (We could use the new "add field to all bundles" config action for this.)
More ideas may be forthcoming, but this is just an initial brainstorm.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
#12 sounds like a nice proposal to me! π
- πΊπΈUnited States phenaproxima Massachusetts
- Status changed to Active
9 months ago 1:14pm 9 April 2024 - πΊπΈUnited States phenaproxima Massachusetts
The final blocker -- the ability to import default content -- is in!
Let us continue here. :)
- πΊπΈUnited States thejimbirch Cape Cod, Massachusetts
We should set a precedent here for having default content in its own recipe. Of course, it can be applied as part of umami/recipe.yml, but it should also be able to be applied independently.
Why? I can apply a recipe on my local machine, export the config, unpack and remove a recipe (if contrib), and then push all my changes to a development, staging, or live environment. In that workflow, the content would not get pushed with it.
If we define the idea of a recipe that is content only, that could get pushed up as part of the code base and applied on subsequent environments.
I see many benefits from this, from prepopulating demos, to configuring baseline functionality, and content for quality assurance.
- Status changed to Postponed
8 months ago 5:32pm 9 May 2024 - πΊπΈUnited States thejimbirch Cape Cod, Massachusetts
@catch wants π Umami views should use responsive grid Active merged into Umami before the recipe can be completed.
Other work can be done to this issue, just not that view.
- π¬π§United Kingdom catch
The recipes that make up Standard are meant to be generic, reusable parts -- the kind of things you'd likely need on any site. Umami is a lot more specialized. Do we really expect, for example, that most (or even many) sites will want to have a "recipe" content type, set up in the specific way Umami does it?
I'm in two minds about this - I agree that there are very few bits of Umami that would be re-usable.
However, Umami is also supposed to be a showcase of what can be done with Drupal core and a bit of theming, so if we include recipes in 'what can be done with Drupal core', it might make sense to have the recipes more composable so that it's easier to see how it was put together? I don't know if we'll show installed recipes in a UI somewhere, but if we do, then having Umami made up of smaller recipes would appear in that UI for example, or just if people are looking through the code base to see how it was done.
fwiw I don't think π Umami views should use responsive grid Active needs to be a hard blocker here, we could do it after a recipe conversion too, but also it's nearly ready and just needs review. Didn't realise there was already progress on this issue.
- Status changed to Active
7 months ago 2:31pm 21 May 2024 - π¬π§United Kingdom catch
π Umami views should use responsive grid Active is in.