| Line 15... |
Line 15... |
| 15 |
import in.shop2020.metamodel.util.ExpandedEntity;
|
15 |
import in.shop2020.metamodel.util.ExpandedEntity;
|
| 16 |
import in.shop2020.model.v1.catalog.InventoryService.Client;
|
16 |
import in.shop2020.model.v1.catalog.InventoryService.Client;
|
| 17 |
import in.shop2020.model.v1.catalog.Item;
|
17 |
import in.shop2020.model.v1.catalog.Item;
|
| 18 |
import in.shop2020.model.v1.catalog.status;
|
18 |
import in.shop2020.model.v1.catalog.status;
|
| 19 |
import in.shop2020.thrift.clients.CatalogServiceClient;
|
19 |
import in.shop2020.thrift.clients.CatalogServiceClient;
|
| - |
|
20 |
import in.shop2020.ui.util.ComparisonStatsFetcher;
|
| 20 |
import in.shop2020.ui.util.PriceInsertor;
|
21 |
import in.shop2020.ui.util.PriceInsertor;
|
| 21 |
import in.shop2020.ui.util.NewVUI;
|
22 |
import in.shop2020.ui.util.NewVUI;
|
| 22 |
|
23 |
|
| 23 |
import org.apache.commons.cli.*;
|
24 |
import org.apache.commons.cli.*;
|
| 24 |
|
25 |
|
| Line 266... |
Line 267... |
| 266 |
//Calculate comparison scores
|
267 |
//Calculate comparison scores
|
| 267 |
NewCMP cmp = new NewCMP(validEntities);
|
268 |
NewCMP cmp = new NewCMP(validEntities);
|
| 268 |
Map<Long, Map<Long, Double>> slideScoresByEntity = cmp.getSlideScores();
|
269 |
Map<Long, Map<Long, Double>> slideScoresByEntity = cmp.getSlideScores();
|
| 269 |
CreationUtils.storeSlideScores(slideScoresByEntity);
|
270 |
CreationUtils.storeSlideScores(slideScoresByEntity);
|
| 270 |
|
271 |
|
| - |
|
272 |
ComparisonStatsFetcher csf = new ComparisonStatsFetcher();
|
| - |
|
273 |
csf.fetchAndStoreComparisonStats();
|
| - |
|
274 |
|
| 271 |
items = client.getAllItemsByStatus(status.ACTIVE);
|
275 |
items = client.getAllItemsByStatus(status.ACTIVE);
|
| 272 |
items.addAll(client.getAllItemsByStatus(status.PAUSED));
|
276 |
items.addAll(client.getAllItemsByStatus(status.PAUSED));
|
| 273 |
items.addAll(client.getAllItemsByStatus(status.CONTENT_COMPLETE));
|
277 |
items.addAll(client.getAllItemsByStatus(status.CONTENT_COMPLETE));
|
| 274 |
populateEntityIdItemMap();
|
278 |
populateEntityIdItemMap();
|
| 275 |
|
279 |
|