Skip to content

Commit d2c729d

Browse files
authored
Update Product List to Match Cymbal Branding/Story (GoogleCloudPlatform#600)
* Update product list (and images) All new photos were taken by me (Nim). We received approval from Google's Open Source Licensing team to use these photos. * Update ads to match new product list * Update comments about product categories * Update productcatalogservice/server_test.go
1 parent f362d2b commit d2c729d

30 files changed

+82
-88
lines changed

pb/demo.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ message Product {
7979
string picture = 4;
8080
Money price_usd = 5;
8181

82-
// Categories such as "vintage" or "gardening" that can be used to look up
82+
// Categories such as "clothing" or "kitchen" that can be used to look up
8383
// other related products.
8484
repeated string categories = 6;
8585
}

src/adservice/src/main/java/hipstershop/AdService.java

+20-19
Original file line numberDiff line numberDiff line change
@@ -171,47 +171,48 @@ private void blockUntilShutdown() throws InterruptedException {
171171
}
172172

173173
private static ImmutableListMultimap<String, Ad> createAdsMap() {
174-
Ad camera =
174+
Ad hairdryer =
175175
Ad.newBuilder()
176176
.setRedirectUrl("/product/2ZYFJ3GM2N")
177-
.setText("Film camera for sale. 50% off.")
177+
.setText("Hairdryer for sale. 50% off.")
178178
.build();
179-
Ad lens =
179+
Ad tankTop =
180180
Ad.newBuilder()
181181
.setRedirectUrl("/product/66VCHSJNUP")
182-
.setText("Vintage camera lens for sale. 20% off.")
182+
.setText("Tank top for sale. 20% off.")
183183
.build();
184-
Ad recordPlayer =
184+
Ad candleHolder =
185185
Ad.newBuilder()
186186
.setRedirectUrl("/product/0PUK6V6EV0")
187-
.setText("Vintage record player for sale. 30% off.")
187+
.setText("Candle holder for sale. 30% off.")
188188
.build();
189-
Ad bike =
189+
Ad bambooGlassJar =
190190
Ad.newBuilder()
191191
.setRedirectUrl("/product/9SIQT8TOJO")
192-
.setText("City Bike for sale. 10% off.")
192+
.setText("Bamboo glass jar for sale. 10% off.")
193193
.build();
194-
Ad baristaKit =
194+
Ad watch =
195195
Ad.newBuilder()
196196
.setRedirectUrl("/product/1YMWWN1N4O")
197-
.setText("Home Barista kitchen kit for sale. Buy one, get second kit for free")
197+
.setText("Watch for sale. Buy one, get second kit for free")
198198
.build();
199-
Ad airPlant =
199+
Ad mug =
200200
Ad.newBuilder()
201201
.setRedirectUrl("/product/6E92ZMYYFZ")
202-
.setText("Air plants for sale. Buy two, get third one for free")
202+
.setText("Mug for sale. Buy two, get third one for free")
203203
.build();
204-
Ad terrarium =
204+
Ad loafers =
205205
Ad.newBuilder()
206206
.setRedirectUrl("/product/L9ECAV7KIM")
207-
.setText("Terrarium for sale. Buy one, get second one for free")
207+
.setText("Loafers for sale. Buy one, get second one for free")
208208
.build();
209209
return ImmutableListMultimap.<String, Ad>builder()
210-
.putAll("photography", camera, lens)
211-
.putAll("vintage", camera, lens, recordPlayer)
212-
.put("cycling", bike)
213-
.put("cookware", baristaKit)
214-
.putAll("gardening", airPlant, terrarium)
210+
.putAll("clothing", tankTop)
211+
.putAll("accessories", watch)
212+
.putAll("footwear", loafers)
213+
.putAll("hair", hairdryer)
214+
.putAll("decor", candleHolder)
215+
.putAll("kitchen", bambooGlassJar, mug)
215216
.build();
216217
}
217218

src/adservice/src/main/proto/demo.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ message Product {
7979
string picture = 4;
8080
Money price_usd = 5;
8181

82-
// Categories such as "vintage" or "gardening" that can be used to look up
82+
// Categories such as "clothing" or "kitchen" that can be used to look up
8383
// other related products.
8484
repeated string categories = 6;
8585
}

src/checkoutservice/genproto/demo.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/currencyservice/proto/demo.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ message Product {
7979
string picture = 4;
8080
Money price_usd = 5;
8181

82-
// Categories such as "vintage" or "gardening" that can be used to look up
82+
// Categories such as "clothing" or "kitchen" that can be used to look up
8383
// other related products.
8484
repeated string categories = 6;
8585
}

src/frontend/genproto/demo.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-77 KB
Binary file not shown.
Loading
-133 KB
Binary file not shown.
-146 KB
Binary file not shown.
-55 KB
Binary file not shown.
Loading
-107 KB
Binary file not shown.

src/frontend/static/img/products/credits.txt

-9
This file was deleted.
-130 KB
Binary file not shown.
64.5 KB
Loading
128 KB
Loading
61.3 KB
Loading
Binary file not shown.
Loading
64.1 KB
Loading
152 KB
Loading
-53.2 KB
Binary file not shown.
-80.6 KB
Binary file not shown.
96.2 KB
Loading

src/paymentservice/proto/demo.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ message Product {
7979
string picture = 4;
8080
Money price_usd = 5;
8181

82-
// Categories such as "vintage" or "gardening" that can be used to look up
82+
// Categories such as "clothing" or "kitchen" that can be used to look up
8383
// other related products.
8484
repeated string categories = 6;
8585
}

src/productcatalogservice/genproto/demo.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/productcatalogservice/products.json

+53-51
Original file line numberDiff line numberDiff line change
@@ -2,109 +2,111 @@
22
"products": [
33
{
44
"id": "OLJCESPC7Z",
5-
"name": "Vintage Typewriter",
6-
"description": "This typewriter looks good in your living room.",
7-
"picture": "/static/img/products/typewriter.jpg",
5+
"name": "Sunglasses",
6+
"description": "Add a modern touch to your outfits with these sleek aviator sunglasses.",
7+
"picture": "/static/img/products/sunglasses.jpg",
88
"priceUsd": {
99
"currencyCode": "USD",
10-
"units": 67,
10+
"units": 19,
1111
"nanos": 990000000
1212
},
13-
"categories": ["vintage"]
13+
"categories": ["accessories"]
1414
},
1515
{
1616
"id": "66VCHSJNUP",
17-
"name": "Antique Camera",
18-
"description": "It probably doesn't work anyway.",
19-
"picture": "/static/img/products/camera-lens.jpg",
17+
"name": "Tank Top",
18+
"description": "Perfectly cropped cotton tank, with a scooped neckline.",
19+
"picture": "/static/img/products/tank-top.jpg",
2020
"priceUsd": {
2121
"currencyCode": "USD",
22-
"units": 12,
23-
"nanos": 490000000
22+
"units": 18,
23+
"nanos": 990000000
2424
},
25-
"categories": ["photography", "vintage"]
25+
"categories": ["clothing", "tops"]
2626
},
2727
{
2828
"id": "1YMWWN1N4O",
29-
"name": "Home Barista Kit",
30-
"description": "Always wanted to brew coffee with Chemex and Aeropress at home?",
31-
"picture": "/static/img/products/barista-kit.jpg",
29+
"name": "Watch",
30+
"description": "This gold-tone stainless steel watch will work with most of your outfits.",
31+
"picture": "/static/img/products/watch.jpg",
3232
"priceUsd": {
3333
"currencyCode": "USD",
34-
"units": 124
34+
"units": 109,
35+
"nanos": 990000000
3536
},
36-
"categories": ["cookware"]
37+
"categories": ["accessories"]
3738
},
3839
{
3940
"id": "L9ECAV7KIM",
40-
"name": "Terrarium",
41-
"description": "This terrarium will looks great in your white painted living room.",
42-
"picture": "/static/img/products/terrarium.jpg",
41+
"name": "Loafers",
42+
"description": "A neat addition to your summer wardrobe.",
43+
"picture": "/static/img/products/loafers.jpg",
4344
"priceUsd": {
4445
"currencyCode": "USD",
45-
"units": 36,
46-
"nanos": 450000000
46+
"units": 89,
47+
"nanos": 990000000
4748
},
48-
"categories": ["gardening"]
49+
"categories": ["footwear"]
4950
},
5051
{
5152
"id": "2ZYFJ3GM2N",
52-
"name": "Film Camera",
53-
"description": "This camera looks like it's a film camera, but it's actually digital.",
54-
"picture": "/static/img/products/film-camera.jpg",
53+
"name": "Hairdryer",
54+
"description": "This lightweight hairdryer has 3 heat and speed settings. It's perfect for travel.",
55+
"picture": "/static/img/products/hairdryer.jpg",
5556
"priceUsd": {
5657
"currencyCode": "USD",
57-
"units": 2245
58+
"units": 24,
59+
"nanos": 990000000
5860
},
59-
"categories": ["photography", "vintage"]
61+
"categories": ["hair", "beauty"]
6062
},
6163
{
6264
"id": "0PUK6V6EV0",
63-
"name": "Vintage Record Player",
64-
"description": "It still works.",
65-
"picture": "/static/img/products/record-player.jpg",
65+
"name": "Candle Holder",
66+
"description": "This small but intricate candle holder is an excellent gift.",
67+
"picture": "/static/img/products/candle-holder.jpg",
6668
"priceUsd": {
6769
"currencyCode": "USD",
68-
"units": 65,
69-
"nanos": 500000000
70+
"units": 18,
71+
"nanos": 990000000
7072
},
71-
"categories": ["music", "vintage"]
73+
"categories": ["decor", "home"]
7274
},
7375
{
7476
"id": "LS4PSXUNUM",
75-
"name": "Metal Camping Mug",
76-
"description": "You probably don't go camping that often but this is better than plastic cups.",
77-
"picture": "/static/img/products/camp-mug.jpg",
77+
"name": "Salt & Pepper Shakers",
78+
"description": "Add some flavor to your kitchen.",
79+
"picture": "/static/img/products/salt-and-pepper-shakers.jpg",
7880
"priceUsd": {
7981
"currencyCode": "USD",
80-
"units": 24,
81-
"nanos": 330000000
82+
"units": 18,
83+
"nanos": 490000000
8284
},
83-
"categories": ["cookware"]
85+
"categories": ["kitchen"]
8486
},
8587
{
8688
"id": "9SIQT8TOJO",
87-
"name": "City Bike",
88-
"description": "This single gear bike probably cannot climb the hills of San Francisco.",
89-
"picture": "/static/img/products/city-bike.jpg",
89+
"name": "Bamboo Glass Jar",
90+
"description": "This bamboo glass jar can hold 57 oz (1.7 l) and is perfect for any kitchen.",
91+
"picture": "/static/img/products/bamboo-glass-jar.jpg",
9092
"priceUsd": {
9193
"currencyCode": "USD",
92-
"units": 789,
93-
"nanos": 500000000
94+
"units": 5,
95+
"nanos": 490000000
9496
},
95-
"categories": ["cycling"]
97+
"categories": ["kitchen"]
9698
},
9799
{
98100
"id": "6E92ZMYYFZ",
99-
"name": "Air Plant",
100-
"description": "Have you ever wondered whether air plants need water? Buy one and figure out.",
101-
"picture": "/static/img/products/air-plant.jpg",
101+
"name": "Mug",
102+
"description": "A simple mug with a mustard interior.",
103+
"picture": "/static/img/products/mug.jpg",
102104
"priceUsd": {
103105
"currencyCode": "USD",
104-
"units": 12,
105-
"nanos": 300000000
106+
"units": 8,
107+
"nanos": 990000000
106108
},
107-
"categories": ["gardening"]
109+
"categories": ["kitchen"]
108110
}
109111
]
110112
}

src/productcatalogservice/server_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func TestServer(t *testing.T) {
5858
t.Errorf("got %s, want %s", got, want)
5959
}
6060

61-
sres, err := client.SearchProducts(ctx, &pb.SearchProductsRequest{Query: "typewriter"})
61+
sres, err := client.SearchProducts(ctx, &pb.SearchProductsRequest{Query: "sunglasses"})
6262
if err != nil {
6363
t.Fatal(err)
6464
}

src/shippingservice/genproto/demo.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)