Skip to content

Commit

Permalink
Merge branch 'master' into bounty2
Browse files Browse the repository at this point in the history
  • Loading branch information
sambhavgupta0705 authored Dec 10, 2024
2 parents 02b18ed + 7f81142 commit aadb343
Show file tree
Hide file tree
Showing 6 changed files with 587 additions and 102 deletions.
158 changes: 83 additions & 75 deletions dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,15 @@
"score": 34.46095064991105
},
{
"id": "I_kwDODou01c5BZZv-",
"isPR": false,
"id": "PR_kwDOBW5R_c5-T7mG",
"isPR": true,
"isAssigned": false,
"title": "Open Graph link preview image according to the document to open",
"author": "smoya",
"resourcePath": "/asyncapi/studio/issues/224",
"repo": "asyncapi/studio",
"labels": [
{
"name": "enhancement",
"color": "a2eeef"
},
{
"name": "keep-open",
"color": "f9dd4b"
}
],
"score": 31.302030173669205
"title": "feat: add tests for build post list script",
"author": "vishvamsinh28",
"resourcePath": "/asyncapi/website/pull/3284",
"repo": "asyncapi/website",
"labels": [],
"score": 29.866157229922912
},
{
"id": "I_kwDOGQYLdM5AX1lK",
Expand All @@ -54,29 +45,18 @@
"color": "0E8A16"
}
],
"score": 28.430284286176615
},
{
"id": "PR_kwDOBW5R_c5-T7mG",
"isPR": true,
"isAssigned": false,
"title": "feat: add tests for build post list script",
"author": "vishvamsinh28",
"resourcePath": "/asyncapi/website/pull/3284",
"repo": "asyncapi/website",
"labels": [],
"score": 27.28158593117958
"score": 28.717458874925875
},
{
"id": "PR_kwDOBW5R_c59FBoR",
"id": "PR_kwDOBW5R_c6BZLuT",
"isPR": true,
"isAssigned": false,
"title": "feat: add tests for tool-object script",
"title": "feat: add tests for check markdown script",
"author": "vishvamsinh28",
"resourcePath": "/asyncapi/website/pull/3265",
"resourcePath": "/asyncapi/website/pull/3378",
"repo": "asyncapi/website",
"labels": [],
"score": 25.845712987433288
"score": 23.26114168868996
},
{
"id": "PR_kwDOFLhIt85bqKL8",
Expand Down Expand Up @@ -121,17 +101,6 @@
],
"score": 21.825268744943667
},
{
"id": "PR_kwDOBW5R_c6BZLuT",
"isPR": true,
"isAssigned": false,
"title": "feat: add tests for check markdown script",
"author": "vishvamsinh28",
"resourcePath": "/asyncapi/website/pull/3378",
"repo": "asyncapi/website",
"labels": [],
"score": 20.67657038994663
},
{
"id": "PR_kwDOFLhIt855u7Eb",
"isPR": true,
Expand All @@ -143,22 +112,6 @@
"labels": [],
"score": 20.102221212448114
},
{
"id": "PR_kwDOBW5R_c535wDj",
"isPR": true,
"isAssigned": false,
"title": "feat: add test for combine tools script",
"author": "vishvamsinh28",
"resourcePath": "/asyncapi/website/pull/3136",
"repo": "asyncapi/website",
"labels": [
{
"name": "gsoc",
"color": "F4D03F"
}
],
"score": 17.804824502454043
},
{
"id": "I_kwDOBW5R_c5RVOOY",
"isPR": false,
Expand Down Expand Up @@ -189,9 +142,75 @@
"repo": "asyncapi/community",
"labels": [],
"score": 16.08177696995849
},
{
"id": "I_kwDOFLhIt85bebeO",
"isPR": false,
"isAssigned": false,
"title": "Meeting Banners Storage",
"author": "AceTheCreator",
"resourcePath": "/asyncapi/community/issues/568",
"repo": "asyncapi/community",
"labels": [],
"score": 15.794602381209232
},
{
"id": "I_kwDODou01c5BZZv-",
"isPR": false,
"isAssigned": false,
"title": "Open Graph link preview image according to the document to open",
"author": "smoya",
"resourcePath": "/asyncapi/studio/issues/224",
"repo": "asyncapi/studio",
"labels": [
{
"name": "enhancement",
"color": "a2eeef"
},
{
"name": "keep-open",
"color": "f9dd4b"
}
],
"score": 15.087185824232376
},
{
"id": "I_kwDODou01c5ZAFWh",
"isPR": false,
"isAssigned": true,
"title": "Please support File References",
"author": "philCryoport",
"resourcePath": "/asyncapi/studio/issues/528",
"repo": "asyncapi/studio",
"labels": [
{
"name": "enhancement",
"color": "a2eeef"
},
{
"name": "bounty",
"color": "0E8A16"
}
],
"score": 14.07155484871368
}
],
"goodFirstIssues": [
{
"id": "I_kwDOFLhIt86ihL5I",
"title": "[BUG] voting summary has some errors in `isVotedInLast3Months`",
"isAssigned": false,
"resourcePath": "/asyncapi/community/issues/1614",
"repo": "asyncapi/community",
"author": "derberg",
"area": "javascript",
"labels": [
{
"name": "bug",
"color": "d73a4a"
}
]
},
{
"id": "I_kwDOFLhIt86hMsxx",
"title": "Create an announcement design for the new TSC member (Ashmit Jagtap)",
Expand Down Expand Up @@ -608,6 +627,10 @@
{
"name": "enhancement",
"color": "a2eeef"
},
{
"name": "stale",
"color": "ededed"
}
]
},
Expand Down Expand Up @@ -664,21 +687,6 @@
}
]
},
{
"id": "I_kwDOBGu-185qGt6A",
"title": "Ensure consistency when using either `Application` or `API` terms",
"isAssigned": false,
"resourcePath": "/asyncapi/spec/issues/949",
"repo": "asyncapi/spec",
"author": "smoya",
"area": "Unknown",
"labels": [
{
"name": "enhancement",
"color": "a2eeef"
}
]
},
{
"id": "I_kwDOE8Qh385m4AtC",
"title": "C# generator add xml docs from the async api description",
Expand Down
61 changes: 34 additions & 27 deletions scripts/tools/combine-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,37 +106,44 @@ const getFinalTool = async (toolObject) => {
// Combine the automated tools and manual tools list into single JSON object file, and
// lists down all the language and technology tags in one JSON file.
const combineTools = async (automatedTools, manualTools, toolsPath, tagsPath) => {
for (const key in automatedTools) {
let finalToolsList = [];
if (automatedTools[key].toolsList.length) {
for (const tool of automatedTools[key].toolsList) {
finalToolsList.push(await getFinalTool(tool))
try {
for (const key in automatedTools) {
let finalToolsList = [];
if (automatedTools[key].toolsList.length) {
for (const tool of automatedTools[key].toolsList) {
finalToolsList.push(await getFinalTool(tool))
}
}
}
if (manualTools[key] && manualTools[key].toolsList.length) {
for (const tool of manualTools[key].toolsList) {
let isAsyncAPIrepo;
const isValid = await validate(tool)
if (isValid) {
if (tool?.links?.repoUrl) {
const url = new URL(tool.links.repoUrl)
isAsyncAPIrepo = url.href.startsWith("https://github.com/asyncapi/")
} else isAsyncAPIrepo = false
let toolObject = await createToolObject(tool, "", "", isAsyncAPIrepo)
finalToolsList.push(await getFinalTool(toolObject))
} else {
console.error('Script is not failing, it is just dropping errors for further investigation');
console.error(`Invalid ${tool.title} .asyncapi-tool file.`);
console.error(`Located in manual-tools.json file`);
console.error('Validation errors:', JSON.stringify(validate.errors, null, 2));
if (manualTools[key]?.toolsList?.length) {
for (const tool of manualTools[key].toolsList) {
let isAsyncAPIrepo;
const isValid = await validate(tool)
if (isValid) {
if (tool?.links?.repoUrl) {
const url = new URL(tool.links.repoUrl)
isAsyncAPIrepo = url.href.startsWith("https://github.com/asyncapi/")
} else isAsyncAPIrepo = false
let toolObject = await createToolObject(tool, "", "", isAsyncAPIrepo)
finalToolsList.push(await getFinalTool(toolObject))
} else {
console.error({
message: 'Tool validation failed',
tool: tool.title,
source: 'manual-tools.json',
errors: validate.errors,
note: 'Script continues execution, error logged for investigation'
});
}
}
}
finalToolsList.sort((tool, anotherTool) => tool.title.localeCompare(anotherTool.title));
finalTools[key].toolsList = finalToolsList
}
finalToolsList.sort((tool, anotherTool) => tool.title.localeCompare(anotherTool.title));
finalTools[key].toolsList = finalToolsList
fs.writeFileSync(toolsPath, JSON.stringify(finalTools));
fs.writeFileSync(tagsPath, JSON.stringify({ languages: languageList, technologies: technologyList }),)
} catch (err) {
throw new Error(`Error combining tools: ${err}`);
}
fs.writeFileSync(toolsPath,JSON.stringify(finalTools));
fs.writeFileSync(tagsPath,JSON.stringify({ languages: languageList, technologies: technologyList }),)
}

module.exports = { combineTools }
module.exports = { combineTools }
Loading

0 comments on commit aadb343

Please sign in to comment.