`latest` API parameter does not seem to work as expected
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
Research direction
Start with the documented packages endpoint and reproduce the linked Semeru JDK 11 request using latest=available. Compare the response with the reported expectations: exclude packages whose latest_build_available is false and determine whether the certified distribution should be named semeru_certified; done means the API behavior and naming match the documented contract.
Written by the indexing model from the issue text.
Description
This might be user error.
I want to download (say) the latest version of Semeru JDK 11, for Linux/x64.
The documentation says I should use latest=available, but if I do that I get the following response:
{
"result": [
{
"id": "e001e5341739cb1a86454e2bf4758eb2",
"archive_type": "tar.gz",
"distribution": "semeru",
"major_version": 11,
"java_version": "11.0.22",
"distribution_version": "11.0.22",
"jdk_version": 11,
"latest_build_available": true,
"release_status": "ga",
"term_of_support": "lts",
"operating_system": "linux",
"lib_c_type": "glibc",
"architecture": "x64",
"fpu": "unknown",
"package_type": "jdk",
"javafx_bundled": false,
"directly_downloadable": true,
"filename": "ibm-semeru-open-jdk_x64_linux_11.0.22_7_openj9-0.43.0.tar.gz",
"links": {
"pkg_info_uri": "https://api.foojay.io/disco/v3.0/ids/e001e5341739cb1a86454e2bf4758eb2",
"pkg_download_redirect": "https://api.foojay.io/disco/v3.0/ids/e001e5341739cb1a86454e2bf4758eb2/redirect"
},
"free_use_in_production": true,
"tck_tested": "unknown",
"tck_cert_uri": "",
"aqavit_certified": "unknown",
"aqavit_cert_uri": "",
"size": 205750292,
"feature": []
},
{
"id": "81408b9d636baab491c46b2948299907",
"archive_type": "tar.gz",
"distribution": "semeru",
"major_version": 11,
"java_version": "11.0.22",
"distribution_version": "11.0.22",
"jdk_version": 11,
"latest_build_available": false,
"release_status": "ga",
"term_of_support": "lts",
"operating_system": "linux",
"lib_c_type": "glibc",
"architecture": "x64",
"fpu": "unknown",
"package_type": "jdk",
"javafx_bundled": false,
"directly_downloadable": true,
"filename": "ibm-semeru-certified-jdk_x64_linux_11.0.22.0.tar.gz",
"links": {
"pkg_info_uri": "https://api.foojay.io/disco/v3.0/ids/81408b9d636baab491c46b2948299907",
"pkg_download_redirect": "https://api.foojay.io/disco/v3.0/ids/81408b9d636baab491c46b2948299907/redirect"
},
"free_use_in_production": true,
"tck_tested": "no",
"tck_cert_uri": "",
"aqavit_certified": "yes",
"aqavit_cert_uri": "https://github.com/ibmruntimes/semeru11-certified-binaries/releases/download/jdk-11.0.22%2B7_openj9-0.43.0/ibm-semeru-certified-jdk_x64_linux_11.0.22.0.tap.zip",
"size": 219470559,
"feature": []
}
],
"message": "2 package(s) found"
}
It's returned:
ibm-semeru-open-jdk_x64_linux_11.0.22_7_openj9-0.43.0.tar.gzwithlatest_build_available=trueibm-semeru-certified-jdk_x64_linux_11.0.22.0.tar.gzwithlatest_build_available=false
I think that:
latest=availableshould have filtered out anylatest_build_available=false- a
semeru-certifiedJDK should have adistributionofsemeru_certified
- Dominant language
- Java
- Stars
- 154
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from foojayio/discoapi
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
-
bug
All issues in foojayio/discoapi
Similar issues
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/flink-agents#1152 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
jenkinsci/blueocean-plugin#5417 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
objectionary/eo-graphs#75 ·