endoflife-date / release-data

Common Release Data for various projects in a consumable format, automatically updated.
MIT License
100 stars 36 forks source link

Product info in json files #352

Open artemiux opened 2 weeks ago

artemiux commented 2 weeks ago

Thanks for the project. I use it to automatically send notifications every week and I have one suggestion.

Currently, the product name can be extracted from the release file name. For example, jira.json corresponds to jira. This identifier can be used to generate a link to the website. However, this method won't work in some cases. For instance, using apache-http-server from apache-http-server.json will return a 404 error.

It is suggested to add a product object with the appropriate identifier and full name properties inside. For instance, for releases/apache-http-server.json, it would be structured as follows:

{
  "product": {
    "name": "apache",
    "fullname": "Apache HTTP Server"
  },
  "releases": {},
  "versions": {
    "2.4.59": {
      "releaseName": "2.4.59",
      "releaseDate": "2024-04-04"
    }
}
captn3m0 commented 2 weeks ago

The intent is for these to always match, so I've filed a PR to add apache-http-server as a redirect: https://github.com/endoflife-date/endoflife.date/pull/5300

This will ensure https://endoflife.date/api/apache-httpd-server.json redirects to https://endoflife.date/api/apache.json, similar to how https://endoflife.date/api/httpd.json redirects right now.

Another alternative is to change the page link to /apache-http-server, but unsure about that.

I'll check to see if there are other such pages and file corrections if needed.


It is suggested to add a product object with the appropriate identifier and full name properties inside.

I like the idea of having a product.identifier JSON key.

cc @marcwrobel

captn3m0 commented 2 weeks ago

Filed https://github.com/endoflife-date/endoflife.date/pull/5301 to fix such issues across all products. Once that is merged, we can add a test to ensure this doesn't break in the future.

artemiux commented 1 week ago

Please, add an alternative url for "Palo Alto Networks PAN-OS". Name from release-data/releases/pan-os.json causes 404.