That seems convoluted and not stable, so I thought about starting this brainstorming to add a FAQ entry on xwiki.org on how to achieve this task properly.
I’m sure there are ways to query wikiepedia for the latest stable version but I don’t know how to do it (XWiki — Wikipédia)
I remember @tmortagne mentioned a web site with the latest versions of software. I don’t remember the name but we could add a step in our RP to update it.
Create an official service (a page) on xwiki.org to return the info directly
Do you have a single source of truth for the XWiki version? E.g. does your build or publish process tag a Git commit, deploy artifacts somewhere, etc.? Or are all the sites mentioned updated by a human?
Indeed we don’t do this but mostly because we’ve never needed it.
The What’s New app is about various news about XWiki, not just about releases (and there’s no concept of LTS in it). It also doesn’t offer a programmatic way to query it ATM.
Maybe you mean https://newreleases.io/ (I’m using it to get notifications about new versions of various stuff, including XWiki dependencies, even if that usage is fading away in favor of Renovate these days on my side) ?
Some softwares I’m following are using the concept of “pre-release” that you can set in a GitHub releases to mark the difference between releases for the LTS branch and release for the current dev branch. And then they can use the github API to find and download the latest version, depending on the configured channel.
Now I don’t think we really need that level of complexity, it would IMO be good enough to just:
use the github API (on xwiki-platform repository, for example) to get the latest version (X.Y.Z)
and consider
X.Y. as the current stable version
X-1. as the current LTS version
In both of those cases, it would mean for us to start creating actual GitHub releases (we just have the tags currently), but it’s probably a good thing anyway. It should be easy to automate this in the release script (for the content of that release note, just putting a link to the XWiki release note is good enough IMO).
ok, I guess you’d need to read up to the bottom of the text to find out, which is cumbersome and slower than it could be.
I was thinking about another one that had the concept of LTS and that didn’t need an account to view stuff.
There’s no concept of LTS in Maven.
That still sounds complex vs being able to ask for what is the last LTS. Isn’t it possible to tag a release as LTS in GitHub and then ask for the latest one tagged with LTS using the API?
Proposal
ATM, it feels like the best source of truth for the LTS should be in our code or infra somewhere.
What about simply adding a boolean xproperty to indicate a LTS release in ReleaseNotes.Code.ReleaseNoteClass? Then we should be able to write a URL to query it and return the last one. And we could also show the LTS status in the LT at ReleaseNotes.Code.ReleaseNoteClass.