Create HTTP web service which generates Recipes Catalogue dynamically #604
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I mentioned to @decentral1se last week the idea of generating the
recipes-catalogue-jsonin a new fashion which is dynamically via a minimal HTTP server which could be found atrecipes.coopcloud.tech/apior such.If I understand correctly, the current flow revolves around manually running
abra catalogue generateand committing that to the repo and pushing it. My proposal, I think, would allow that to just happen automagically whenever a new recipe version is published.This would benefit from migration to
coopcloud.tech/recipesorganization detailed in #569 and possibly relate to #599 and also benefit #603Thanks for opening! Under "Operator Collaboration / General Version Improvement" on coop-cloud/organising#583 and in the last fedi meeting (notes: https://docs.coopcloud.tech/federation/minutes/2024-03-29/) we touched on a few ways that we could remove the need for the catalogue repository requirement on the
abraside. But we didn't have an answer for how to still provide pre-computed data for catalogue web UI. This/apicould deffo sort this. And I'm curious on the overlap between ideas of @p4u1 and your ideas @basebuilder. Hopefully to be discussed at the next fedi meeting 🎉It's already automatic for some (many? most?) recipes.
abra recipe sync wordpress/abra recipe release wordpress→ generates and pushes a git tagauto-recipes-catalogue-jsonauto-recipes-catalogue-jsonrebuilds the catalogue and makes a commit torecipes-catalogue-jsonThere's also a daily Drone job which runs
auto-recipes-catalogue-jsonwhich will pick up recipes which don't have thedrone/downstreamstep (either ones created not usingabra recipe new/ the repo template, or older recipes which didn't have that step added afterwards).The main issues I see with the current set-up are:
Copying the above comment into the TODO on Maintainer Handbook could be a start towards addressing (1).
For (2), I think it would be interesting to understand more about the use-cases for 3rd-party recipe catalogues, and maybe make some more progress on the recipe-generation code itself first (i.e. how could we make
abra catalogue generatework if.abra/recipescontains recipes which aren't in git.coopcloud.tech/coop-cloud).It's unlikely that we'll be switching over to a whole new system like this so let's close this one off for now. There are more and more pain points coming up with the release process, so I think it will definitely be something to focus on after the next
abrarelease comes out. As mentioned above, this will most likely be a social process of figuring out what people need to be improved here.I've heard a few hints at this and if it should be a thing, re-opening!
Starting to play around with something for this: https://git.coopcloud.tech/toolshed/almanac