[ 
https://issues.apache.org/jira/browse/CAMEL-27359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-27359:
--------------------------------
    Description: 
The upgrade guides 
(docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_*.adoc) as JSON 
in camel-catalog, one entry per change, so tools can build upgrade help on the 
same data without parsing AsciiDoc: the Camel CLI, the MCP server, IDE plugins, 
Camel Kit and others.

The design is in apache/camel#30566 (design/upgrade-guides-as-data.adoc). In 
short:
* A camel-package-maven-plugin goal parses the guides into JSON in 
camel-catalog (index.json and one file per guide). Each entry has an id, a 
change id, the guide, from/to of its section (minor or patch release), title, 
components (artifact ids), kind (change, deprecation, removal), breaking, 
summary, text as Markdown, and url (the anchor on the website).
* A written rule for which entries apply to an upgrade from version A to 
version B, including patch releases and backports (each entry has a unique id, 
and an entry of a patch release has a change field with the id of the 
minor-guide entry it backports, so different changes with a generic title such 
as camel-kafka stay apart), with one helper in camel-catalog that implements 
it. CamelCatalog gets camelUpgradeGuideEntries().
* Checks in the build that find mistakes in the guides. The mistakes are fixed 
in the guides themselves, not worked around in the parser, so the JSON is as 
accurate as we can make it. The checks start as warnings and become strict 
after a cleanup pass.

Found so far by a prototype on main:
* The 4.14 guide has a stray "Upgrading from 4.10.0 to 4.10.1" section ("No 
changes"); it should be 4.14.0 to 4.14.1.
* The 4.8 guide has no 4.8.3 to 4.8.4 section.
* 83 of the 356 patch-release entries have no entry with the same title in a 
minor guide (titles changed when copied, or a backport whose entry on the minor 
guide is missing).
* Headings the parser cannot split (camel-stomp removal, an em dash), names 
that are not artifacts (camel-simple, camel-cxfrs, camel-aws, camel-tests), and 
five sections with the same title twice.

Work, each its own PR:
# The goal, the JSON, the model and the catalog API, with the checks as 
warnings.
# Fix the guides: the sections, the titles of backported entries, the missing 
entries, and the headings. Then the checks become strict.
# The MCP server reads the entries from the catalog instead of its own copy of 
the guides.

The first user is the upgrade view of CAMEL-27352. This ticket is the shared 
data part, open for anyone to pick up.

_Claude Code on behalf of Claus Ibsen_

  was:
The upgrade guides 
(docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_*.adoc) as JSON 
in camel-catalog, one entry per change, so tools can build upgrade help on the 
same data without parsing AsciiDoc: the Camel CLI, the MCP server, IDE plugins, 
Camel Kit and others.

The design is in apache/camel#30566 (design/upgrade-guides-as-data.adoc). In 
short:
* A camel-package-maven-plugin goal parses the guides into JSON in 
camel-catalog (index.json and one file per guide). Each entry has an id, the 
guide, from/to of its section (minor or patch release), title, components 
(artifact ids), kind (change, deprecation, removal), breaking, summary, text as 
Markdown, and url (the anchor on the website).
* A written rule for which entries apply to an upgrade from version A to 
version B, including patch releases and backports (a backported change shares 
its id across guides), with one helper in camel-catalog that implements it. 
CamelCatalog gets camelUpgradeGuideEntries().
* Checks in the build that find mistakes in the guides. The mistakes are fixed 
in the guides themselves, not worked around in the parser, so the JSON is as 
accurate as we can make it. The checks start as warnings and become strict 
after a cleanup pass.

Found so far by a prototype on main:
* The 4.14 guide has a stray "Upgrading from 4.10.0 to 4.10.1" section ("No 
changes"); it should be 4.14.0 to 4.14.1.
* The 4.8 guide has no 4.8.3 to 4.8.4 section.
* 83 of the 356 patch-release entries have no entry with the same title in a 
minor guide (titles changed when copied, or a backport whose entry on the minor 
guide is missing).
* Headings the parser cannot split (camel-stomp removal, an em dash), names 
that are not artifacts (camel-simple, camel-cxfrs, camel-aws, camel-tests), and 
five sections with the same title twice.

Work, each its own PR:
# The goal, the JSON, the model and the catalog API, with the checks as 
warnings.
# Fix the guides: the sections, the titles of backported entries, the missing 
entries, and the headings. Then the checks become strict.
# The MCP server reads the entries from the catalog instead of its own copy of 
the guides.

The first user is the upgrade view of CAMEL-27352. This ticket is the shared 
data part, open for anyone to pick up.

_Claude Code on behalf of Claus Ibsen_


> camel-catalog - upgrade guides as JSON, with the entries of an upgrade 
> between two versions
> -------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27359
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27359
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-catalog, documentation
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 4.25.0
>
>
> The upgrade guides 
> (docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_*.adoc) as JSON 
> in camel-catalog, one entry per change, so tools can build upgrade help on 
> the same data without parsing AsciiDoc: the Camel CLI, the MCP server, IDE 
> plugins, Camel Kit and others.
> The design is in apache/camel#30566 (design/upgrade-guides-as-data.adoc). In 
> short:
> * A camel-package-maven-plugin goal parses the guides into JSON in 
> camel-catalog (index.json and one file per guide). Each entry has an id, a 
> change id, the guide, from/to of its section (minor or patch release), title, 
> components (artifact ids), kind (change, deprecation, removal), breaking, 
> summary, text as Markdown, and url (the anchor on the website).
> * A written rule for which entries apply to an upgrade from version A to 
> version B, including patch releases and backports (each entry has a unique 
> id, and an entry of a patch release has a change field with the id of the 
> minor-guide entry it backports, so different changes with a generic title 
> such as camel-kafka stay apart), with one helper in camel-catalog that 
> implements it. CamelCatalog gets camelUpgradeGuideEntries().
> * Checks in the build that find mistakes in the guides. The mistakes are 
> fixed in the guides themselves, not worked around in the parser, so the JSON 
> is as accurate as we can make it. The checks start as warnings and become 
> strict after a cleanup pass.
> Found so far by a prototype on main:
> * The 4.14 guide has a stray "Upgrading from 4.10.0 to 4.10.1" section ("No 
> changes"); it should be 4.14.0 to 4.14.1.
> * The 4.8 guide has no 4.8.3 to 4.8.4 section.
> * 83 of the 356 patch-release entries have no entry with the same title in a 
> minor guide (titles changed when copied, or a backport whose entry on the 
> minor guide is missing).
> * Headings the parser cannot split (camel-stomp removal, an em dash), names 
> that are not artifacts (camel-simple, camel-cxfrs, camel-aws, camel-tests), 
> and five sections with the same title twice.
> Work, each its own PR:
> # The goal, the JSON, the model and the catalog API, with the checks as 
> warnings.
> # Fix the guides: the sections, the titles of backported entries, the missing 
> entries, and the headings. Then the checks become strict.
> # The MCP server reads the entries from the catalog instead of its own copy 
> of the guides.
> The first user is the upgrade view of CAMEL-27352. This ticket is the shared 
> data part, open for anyone to pick up.
> _Claude Code on behalf of Claus Ibsen_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to