diff --git a/.vs/AAWebPlatform/v15/.suo b/.vs/AAWebPlatform/v15/.suo index 8897b4435..95f53b00a 100644 Binary files a/.vs/AAWebPlatform/v15/.suo and b/.vs/AAWebPlatform/v15/.suo differ diff --git a/Ecosystem.js b/Ecosystem.js index 459f8903d..11a633278 100644 --- a/Ecosystem.js +++ b/Ecosystem.js @@ -9,7 +9,9 @@ function newEcosystem() { getBot: getBot, getProduct: getProduct, getDataSet: getDataSet, - getExchange: getExchange, + getExchange: getExchange, + getPlotter: getPlotter, + getPlotterModule: getPlotterModule, initialize: initialize } @@ -84,6 +86,17 @@ function newEcosystem() { } } + function getPlotterModule(pPlotter, pModuleCodeName) { + + for (let i = 0; i < pPlotter.modules.length; i++) { + + if (pPlotter.modules[i].codeName === pModuleCodeName) { + + return pPlotter.modules[i]; + } + } + } + function getProduct(pBot, pProductCodeName) { for (let i = 0; i < pBot.products.length; i++) { diff --git a/ProductCard.js b/ProductCard.js index f323c90ba..03118d962 100644 --- a/ProductCard.js +++ b/ProductCard.js @@ -71,6 +71,14 @@ container.isClickeable = true; thisObject.container = container; + /* Get missing Plotter information. */ + + let team = ecosystem.getTeam(thisObject.product.plotter.devTeam); + let plotter = ecosystem.getPlotter(team, thisObject.product.plotter.codeName); + let plotterModule = ecosystem.getPlotterModule(plotter, thisObject.product.plotter.moduleName); + + thisObject.product.plotter.profilePicture = plotterModule.profilePicture; + /* Lets set the basic dimensions of this thisObject. */ var position = { diff --git a/TimelineChart.js b/TimelineChart.js index d759ab12b..e3efb76ac 100644 --- a/TimelineChart.js +++ b/TimelineChart.js @@ -104,7 +104,7 @@ function newTimelineChart() { /* Now we have all the initial data loaded and ready to be delivered to the new instance of the plotter. */ - let plotter = getNewPlotter(competition.plotter.host, competition.plotter.repo, competition.plotter.moduleName); + let plotter = getNewPlotter(competition.plotter.host, competition.plotter.codeName, competition.plotter.moduleName); plotter.container.displacement.parentDisplacement = thisObject.container.displacement; plotter.container.zoom.parentZoom = thisObject.container.zoom; @@ -204,7 +204,7 @@ function newTimelineChart() { /* Now we have all the initial data loaded and ready to be delivered to the new instance of the plotter. */ - let plotter = getNewPlotter(pProductCard.product.plotter.devTeam, pProductCard.product.plotter.repo, pProductCard.product.plotter.moduleName); + let plotter = getNewPlotter(pProductCard.product.plotter.devTeam, pProductCard.product.plotter.codeName, pProductCard.product.plotter.moduleName); plotter.container.displacement.parentDisplacement = thisObject.container.displacement; plotter.container.zoom.parentZoom = thisObject.container.zoom; diff --git a/server.js b/server.js index a808359d5..0ab07539b 100644 --- a/server.js +++ b/server.js @@ -594,7 +594,7 @@ function onBrowserRequest(request, response) { let caseStringCopy = caseString; - let newFunctionName = devTeam.codeName + plotter.repo + module.codeName; + let newFunctionName = devTeam.codeName + plotter.codeName + module.codeName; newFunctionName = newFunctionName.replace(/-/g, ""); let stringToInsert;