Skip to content

Commit

Permalink
feat: testing rfcs (currently fails, TDD) in rfc-index.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
holloway committed Jan 24, 2025
1 parent a20aaf8 commit 301608e
Show file tree
Hide file tree
Showing 3 changed files with 2,223 additions and 2,203 deletions.
33 changes: 17 additions & 16 deletions client/utilities/rfc-index-xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ export async function renderRfcIndexDotXml(props: Props) {
push(
'<rfc-index xmlns="https://www.rfc-editor.org/rfc-index" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.rfc-editor.org/rfc-index https://www.rfc-editor.org/rfc-index.xsd">\n'
)
await renderBCPs(props)
await renderFYIs(props)
// await renderBCPs(props)
// await renderFYIs(props)
await renderRFCs(props)
await renderSTDs(props)
// await renderSTDs(props)

push('</rfc-index>')
close()
}
Expand All @@ -39,22 +40,22 @@ const xmlBuilderOptions: XMLBuilderOptions = {
textNodeName: '#text'
}

const renderBCPs = async (props: Props) => {
console.log(props.delayBetweenRequestsMs) // FIXME: remove this
// FIXME: render BCPs
}
// const renderBCPs = async (props: Props): Promise<void> => {
// console.log(props.delayBetweenRequestsMs) // FIXME: remove this
// // FIXME: render BCPs
// }

const renderFYIs = async (props: Props) => {
console.log(props.delayBetweenRequestsMs) // FIXME: remove this
// FIXME: render FYIs
}
// const renderFYIs = async (props: Props): Promise<void> => {
// console.log(props.delayBetweenRequestsMs) // FIXME: remove this
// // FIXME: render FYIs
// }

const renderRFCs = async ({
push,
abortController,
redApi,
delayBetweenRequestsMs
}: Props) => {
}: Props): Promise<void> => {
const docListArg: DocListArg = {}
docListArg.sort = ['-number'] // sort by oldest RFC to find the end
docListArg.limit = 1 // we only need one result
Expand Down Expand Up @@ -149,10 +150,10 @@ const renderRFCs = async ({
}
}

const renderSTDs = async (props: Props) => {
console.log(props.delayBetweenRequestsMs) // FIXME: remove this
// FIXME: render STDs
}
// const renderSTDs = async (props: Props): Promise<void> => {
// console.log(props.delayBetweenRequestsMs) // FIXME: remove this
// // FIXME: render STDs
// }

const setTimeoutPromise = (timerMs: number) =>
new Promise((resolve) => setTimeout(resolve, timerMs))
Loading

0 comments on commit 301608e

Please sign in to comment.