endoflife-date / release-data

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

Product info in json files #352

Closed artemiux closed 4 months ago

artemiux commented 5 months 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 5 months 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 5 months 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 5 months ago

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