Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop fetching info from Specref for WICG specs and W3C ED #1633

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
9 changes: 8 additions & 1 deletion src/fetch-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,14 @@ async function fetchInfoFromSpecref(specs, options) {
const browserSpecs = await browserSpecsResponse.json();
specs = specs.filter(spec => !browserSpecs[spec.shortname.toUpperCase()]);

const chunks = chunkArray(specs, 50);
// Browser-specs now acts as source for Specref for the WICG specs and W3C
// Editor's Drafts that have not yet been published to /TR. Let's filter out
// these specs to avoid a catch-22 where the info in browser-specs gets stuck
// to the that in Specref.
const filteredSpecs = specs.filter(spec =>
!spec.url.match(/\/\/(wicg|w3c)\.github\.io\//));

const chunks = chunkArray(filteredSpecs, 50);
const chunksRes = await Promise.all(chunks.map(async chunk => {
let specrefUrl = "https://api.specref.org/bibrefs?refs=" +
chunk.map(spec => spec.shortname).join(',');
Expand Down
Loading