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

File tree

30 files changed

+82
-88
lines changed

30 files changed

+82
-88
lines changed

pb/demo.proto

Lines changed: 1 addition & 1 deletion
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

Lines changed: 20 additions & 19 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/currencyservice/proto/demo.proto

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-77 KB
Binary file not shown.
73.6 KB
Loading
-133 KB
Binary file not shown.
-146 KB
Binary file not shown.

0 commit comments

Comments
 (0)