Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions docs/site/_includes/compatibility.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
const parts = item.name.split('.');
const package_name = parts[0];
const version = parts.slice(1, -1).join('.') || DB.ANY_VERSION;
packages.push(`${package_name},${version},0,${BUILD_SCRIPT_AVAILABLE(item.html_url)}`);
packages.push(`${package_name},${version},,${BUILD_SCRIPT_AVAILABLE(item.html_url)}`);
}
resolve(packages.join("\n"));
} else {
Expand Down Expand Up @@ -116,7 +116,7 @@
patches.push(
[currentPatch.name,
currentPatch.version,
0,
'',
currentPatch.comment || PATCH_AVAILABLE].join(",")
)
}
Expand All @@ -143,7 +143,7 @@
patches.push(
[currentPatch.name,
currentPatch.version,
0,
'',
currentPatch.comment || PATCH_AVAILABLE].join(",")
)
}
Expand Down Expand Up @@ -285,11 +285,11 @@
load_db(graalpyModuleValue).then(function (db_contents) {
database = new DB("python", db_contents);
const rowsPerPage = getRowsPerPage();
let count = 0;
let countCompatible = 0;
let countUntested = 0;
let countIncompatible = 0;
let countNotSupported = 0;
let tableRowCount = 0;
$('#dataTable tbody').empty();
for (let package in database.db) {
const versions = database.db[package];
Expand All @@ -300,7 +300,7 @@
if (versionA > versionB) return 1;
return 0;
});
versions_loop: for (const version of version_keys) {
for (const version of version_keys) {
if (version.startsWith('~')) {
continue;
}
Expand All @@ -310,18 +310,16 @@
countCompatible++;
break;
case 1:
countUntested++;
countIncompatible++;
break;
case 2:
countIncompatible++;
countUntested++;
break;
case 3:
countNotSupported++;
break;
default:
continue versions_loop;
}
const styling = count++ < rowsPerPage ? '' : ' style="display: none;"';
const styling = tableRowCount++ < rowsPerPage ? '' : ' style="display: none;"';
const highlight = '<span class="highlight-package legend-item-1"></span>'.repeat(Math.ceil(info.highlight));
$('#dataTable tbody').append(`
<tr${styling}>
Expand All @@ -332,6 +330,7 @@
}
}
$('#compatibility_page__search-field').trigger("input");
const count = countCompatible + countUntested + countIncompatible + countNotSupported;
updateStatistics(count, countCompatible, countUntested, countIncompatible, countNotSupported);
updatePagination(true);
});
Expand Down Expand Up @@ -543,15 +542,15 @@ <h4 class="comp__chart-title">Over 600 Python packages tested for compatibility
<div class="legend">
<div>
<div class="legend-item legend-item-1"
title="More than 90% of the package's tests run successfully on GraalPy">Compatible: <span id="compatibility-stats-compatible">loading...</span><sup class="info-tooltip"></sup></div>
title="More than 75% of the package's tests run successfully on GraalPy">Compatible: <span id="compatibility-stats-compatible">loading...</span><sup class="info-tooltip"></sup></div>
<div class="legend-item legend-item-2"
title="The package either does not install on GraalPy or is not currently tested">
Currently Untested: <span id="compatibility-stats-untested">loading...</span><sup class="info-tooltip"></sup></div>
</div>
<div>
<div class="legend-item legend-item-3"
title="Fewer than 90% of the package's tests run successfully on GraalPy">Currently
Incompatible: <span id="compatibility-stats-incompatible">loading...</span><sup class="info-tooltip"></sup></div>
title="Fewer than 75% of the package's tests run successfully on GraalPy">Currently
Failing Tests: <span id="compatibility-stats-incompatible">loading...</span><sup class="info-tooltip"></sup></div>
<div class="legend-item legend-item-4"
title="We have no plans to test the package">Not
Supported: <span id="compatibility-stats-not-supported">loading...</span><sup class="info-tooltip"></sup></div>
Expand Down
Loading