Best practices on handling large numbers of recipes? #13375
Unanswered
ericrrichards
asked this question in
Q&A
Replies: 1 comment
-
I don't think there's an issue if you split your large recipe into mutiple recipes |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building an OrchardCore-based application, and we have a large number of content items that we want to lay down when we install a new instance or tenant of the application. For instance, we have a reporting engine, and we use Orchard ContentItem documents to hold the parameters of each report. When we install, we want to give the customer the fifteen or twenty standard report definitions out of the box.
I have a setup recipe that I created to apply the necessary features, apply themes, set default settings, and add this content.
The content items got rather large, and so I split that out into another recipe, and called it from the first recipe with a recipes step
Now we've updated one of these report definitions on our reference instance, exported it, and want to update the content that is setup on new tenants. Diffing the content.recipe.json gets very painful, so I've split things out again, to make each content item an individual recipe, and the old content.recipe.json recipe has replaced its Content steps with Recipe steps
Now I have a structure like this:
Out-of-the-box, I don't think I can put these child recipes in folders to clean things up and stay organized, because the stock IRecipeHarvester only looks in the /Recipes directory, not in any subdirectories. Or if I can, I didn't do it right when I tried to do it...
I think this leaves me with two options:
Beta Was this translation helpful? Give feedback.
All reactions