fix(providence-analytics): allow scoped package refs dashboard
This commit is contained in:
parent
b781160919
commit
9dea018310
2 changed files with 8 additions and 4 deletions
|
|
@ -304,14 +304,17 @@ class PBoard extends DecorateMixin(LitElement) {
|
||||||
const refSearch = `_${ref.replace('#', '_')}_`;
|
const refSearch = `_${ref.replace('#', '_')}_`;
|
||||||
activeRepos.forEach(dep => {
|
activeRepos.forEach(dep => {
|
||||||
const depSearch = `_${dep.replace('#', '_')}_`;
|
const depSearch = `_${dep.replace('#', '_')}_`;
|
||||||
const found = this.__resultFiles[activeAnalyzer].find(
|
const found = this.__resultFiles[activeAnalyzer].find(({ fileName }) => {
|
||||||
({ fileName }) => fileName.includes(refSearch) && fileName.includes(depSearch),
|
return (
|
||||||
|
fileName.includes(encodeURIComponent(refSearch)) &&
|
||||||
|
fileName.includes(encodeURIComponent(depSearch))
|
||||||
);
|
);
|
||||||
|
});
|
||||||
if (found) {
|
if (found) {
|
||||||
jsonResultsActiveFilter.push(found.content);
|
jsonResultsActiveFilter.push(found.content);
|
||||||
} else {
|
} else {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.warn(`No result output json for ${refSearch} and ${depSearch}`);
|
console.info(`No result output json for ${refSearch} and ${depSearch}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ async function cli({ cwd, addProjectDependencyPaths } = {}) {
|
||||||
let regexSearchOptions;
|
let regexSearchOptions;
|
||||||
|
|
||||||
const externalConfig = InputDataService.getExternalConfig();
|
const externalConfig = InputDataService.getExternalConfig();
|
||||||
|
console.log('externalConfig', externalConfig);
|
||||||
|
|
||||||
async function getQueryInputData(
|
async function getQueryInputData(
|
||||||
/* eslint-disable no-shadow */
|
/* eslint-disable no-shadow */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue