| Line 20... |
Line 20... |
| 20 |
import in.shop2020.metamodel.util.ExpandedBullet;
|
20 |
import in.shop2020.metamodel.util.ExpandedBullet;
|
| 21 |
import in.shop2020.metamodel.util.ExpandedEntity;
|
21 |
import in.shop2020.metamodel.util.ExpandedEntity;
|
| 22 |
import in.shop2020.model.v1.catalog.InventoryService.Client;
|
22 |
import in.shop2020.model.v1.catalog.InventoryService.Client;
|
| 23 |
import in.shop2020.model.v1.catalog.Item;
|
23 |
import in.shop2020.model.v1.catalog.Item;
|
| 24 |
import in.shop2020.model.v1.catalog.status;
|
24 |
import in.shop2020.model.v1.catalog.status;
|
| 25 |
import in.shop2020.thrift.clients.CatalogServiceClient;
|
25 |
import in.shop2020.thrift.clients.CatalogClient;
|
| 26 |
import in.shop2020.ui.util.ComparisonStatsFetcher;
|
26 |
import in.shop2020.ui.util.ComparisonStatsFetcher;
|
| 27 |
|
27 |
|
| 28 |
import java.io.BufferedReader;
|
28 |
import java.io.BufferedReader;
|
| 29 |
import java.io.DataInputStream;
|
29 |
import java.io.DataInputStream;
|
| 30 |
import java.io.File;
|
30 |
import java.io.File;
|
| Line 184... |
Line 184... |
| 184 |
}
|
184 |
}
|
| 185 |
return true;
|
185 |
return true;
|
| 186 |
}
|
186 |
}
|
| 187 |
|
187 |
|
| 188 |
public boolean migrateBrandModel(String dryRun) throws Exception{
|
188 |
public boolean migrateBrandModel(String dryRun) throws Exception{
|
| 189 |
CatalogServiceClient catalogServiceClient = new CatalogServiceClient();
|
189 |
CatalogClient catalogServiceClient = new CatalogClient();
|
| 190 |
Client client = catalogServiceClient.getClient();
|
190 |
Client client = catalogServiceClient.getClient();
|
| 191 |
List<Item> items = client.getAllItemsByStatus(status.ACTIVE);
|
191 |
List<Item> items = client.getAllItemsByStatus(status.ACTIVE);
|
| 192 |
items.addAll(client.getAllItemsByStatus(status.PAUSED));
|
192 |
items.addAll(client.getAllItemsByStatus(status.PAUSED));
|
| 193 |
items.addAll(client.getAllItemsByStatus(status.CONTENT_COMPLETE));
|
193 |
items.addAll(client.getAllItemsByStatus(status.CONTENT_COMPLETE));
|
| 194 |
Map<Long, Entity> entities = CreationUtils.getEntities();
|
194 |
Map<Long, Entity> entities = CreationUtils.getEntities();
|