Merge pull request #2111 from Luis-Fernando-Molina/develop

Contribution: App Schema Fixes at Related UI Object Project
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-10-11 16:44:53 -04:00
commit 8a53f6b54c
27 files changed
+92 -44

No files matched your search

+10
View File
@@ -1015,6 +1015,7 @@ exports.newHttpInterface = function newHttpInterface() {
let directoryCount = 0
let allAppSchemas = []
let allAppSchemasFilePaths = []
let allAppSchemasFileProjects = []
for (let i = 0; i < projects.length; i++) {
let project = projects[i]
@@ -1050,6 +1051,7 @@ exports.newHttpInterface = function newHttpInterface() {
SCHEMA_MAP.set(schemaDocument.type, schemaDocument)
allAppSchemas.push(schemaDocument)
allAppSchemasFilePaths.push(fileToRead)
allAppSchemasFileProjects.push(project)
} catch (err) {
console.log('[ERROR] sendSchema -> Error Parsing JSON File: ' + fileToRead + ' .Error = ' + err.stack)
return
@@ -1094,6 +1096,14 @@ exports.newHttpInterface = function newHttpInterface() {
hits++
foundProject = project
multiProject = multiProject + ' -> ' + project
let fileProject = allAppSchemasFileProjects[i]
//console.log(fileProject, project)
if (fileProject === project) {
/* If the projec of the file is the same as the project found, then we consider this a match*/
hits = 1
continue
}
}
}