davsclaus opened a new pull request, #30566:
URL: https://github.com/apache/camel/pull/30566
A design proposal (`design/upgrade-guides-as-data.adoc`), for discussion
before any code:
- A new `camel-package-maven-plugin` goal turns the upgrade guides into JSON
in `camel-catalog`: one entry per change, with its release, components, kind,
breaking flag, summary, text as Markdown and the link to the entry on the
website.
- **A written rule for which entries apply to an upgrade from version A to
version B**, covering patch releases and backports. A backported change shares
an `id` across guides, so it is listed once, and not at all when the version in
use already has it. This way the Camel CLI, the MCP server, IDE plugins, Camel
Kit and other tools all list the same entries, and none of them parses AsciiDoc.
- **Checks in the build find mistakes in the guides, and the fixes go into
the guides**, so the JSON is as accurate as we can make it. After a cleanup
pass the checks become strict. A prototype run on the 4.x guides found:
- A stray `4.10.0 to 4.10.1` section in the 4.14 guide.
- A missing 4.8.3 to 4.8.4 section.
- 83 patch entries with no matching entry in a minor guide.
- Headings the parser cannot split.
- Names that are not artifacts.
- `CamelCatalog.camelUpgradeGuideEntries()`, plus a small helper that
implements the rule.
The first user is the upgrade view of CAMEL-27352, but the point is a shared
format that others can build on. The open questions are listed at the end of
the doc: Markdown or AsciiDoc text, the 3.x guides, the Camel Spring Boot and
Quarkus guides, and links to the upgrade recipes.
This PR only adds the design doc, plus its line in the `AGENTS.md` list of
design docs.
_Claude Code on behalf of Claus Ibsen_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]