Commit graph

475 commits

Author SHA1 Message Date
Ahmet Alp Balkan
2ec570c507 frontend: checkout form
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 15:43:24 -07:00
Ahmet Alp Balkan
10748d6b0a frontend/templates: fix money rendering
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 14:55:19 -07:00
Ahmet Alp Balkan
6c2336b21e frontend: money proto migration
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 14:31:38 -07:00
Ahmet Alp Balkan
71c27ccea0 checkoutservice: money proto migration
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 14:27:17 -07:00
Ace Nassri
6f1a3d79e1 Move to new proto + add magic of left-pad 2018-06-27 13:51:08 -07:00
Ahmet Alp Balkan
51d5e9a3ed currencyservice: [WIP] money proto migration
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 13:30:18 -07:00
Ahmet Alp Balkan
f5dc3dd056 checkoutservice: money proto migration
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 13:30:17 -07:00
Ahmet Alp Balkan
3d22afac72 delete currencyservicetemp implementation
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 13:30:17 -07:00
Ahmet Alp Balkan
129eb9be66 paymentservice: money proto migration
the logs will reflect full nanos representation, I'm not sure how to
divide this by 10000000 and left pad a zero (%02d).

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 13:30:17 -07:00
Ahmet Alp Balkan
c2b08f0793 shippingservice: money proto migration
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 13:30:17 -07:00
Ahmet Alp Balkan
8a07a97872 recommendationservice: money proto migration
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 13:30:17 -07:00
Ahmet Alp Balkan
bc87db4601 test-cli: money proto migration
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 13:30:16 -07:00
Ahmet Alp Balkan
c43dcd7c90 productcatalog: regenerate protos
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 13:30:16 -07:00
Ahmet Alp Balkan
07419c2077 pb: breaking change to Money, remove MoneyAmount
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 13:30:16 -07:00
Ahmet Alp Balkan
8ca3593635 frontend/money: add money utilities
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 13:30:16 -07:00
Ahmet Alp Balkan
3144c87e21 frontend: ui tweaks
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 13:30:16 -07:00
Simon Zeltser
22762b28bd Fixing AddItem and adding more tests/cartservice/CartServiceTests
Updated AddItem functionality so it handles update quantities scenario.
Added tests
2018-06-27 10:33:18 -07:00
Simon Zeltser
6891793b4e Merge remote-tracking branch 'origin' into createCartService 2018-06-26 14:47:41 -07:00
Simon Zeltser
2041bdcb48 Fixing GetCart for non-existing user
Now GetCart returns an empty cart for non-existing user
(user that haven't added anything to the cart before)
Added test to cover that

Also enhanced windows script for running cart service locally.
Now we have two options:
 - Running the service and redis locally (assuming redis emulator is installed)
   This is good for easier local debugging and troubleshooting

   docker_setup local

 - Running the service and redis in two separate docker containers
   This is good for better simulation of what will happen in the cloud
2018-06-26 14:41:00 -07:00
Ahmet Alp Balkan
908df8d331 frontend: integrate recommmendationservice
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-26 14:19:22 -07:00
Ahmet Alp Balkan
9634693f37 recommendationservice: exclude input ids
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-26 14:01:05 -07:00
Ahmet Alp Balkan
289bd4db13 frontend: view cart, add to cart, empty cart
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-26 12:55:07 -07:00
Ahmet Alp Balkan
f3fe6d42ad connect cartservice
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-26 11:01:24 -07:00
Ahmet Alp Balkan
36b7b9eb65 frontend: stop refreshing cookies
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-25 23:26:26 -07:00
Ahmet Alp Balkan
e16172c14a frontend: product page
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-25 22:47:33 -07:00
Ahmet Alp Balkan
8a6be04035 productcatalog: longer product IDs
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-25 22:47:21 -07:00
Ahmet Alp Balkan
6268802ab5 frontend: homepage template showing products
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-25 21:55:09 -07:00
Ahmet Alp Balkan
4ccf44582f frontend/productservice: add product inventory
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-25 21:51:48 -07:00
Ace Nassri
f6ab191e2f Add logs 2018-06-25 15:47:39 -07:00
Ace Nassri
296841756d Add caching 2018-06-25 13:16:40 -07:00
Ahmet Alp Balkan
7063092393 frontend: more organization
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-25 11:18:08 -07:00
Simon Zeltser
ef92ddc351 Merge remote-tracking branch 'origin' into createCartService 2018-06-25 09:49:39 -07:00
Simon Zeltser
c3c76effea Fixing cache implementation 2018-06-25 09:44:56 -07:00
Ahmet Alp Balkan
3cbda5fc65 frontend: add home template
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-24 23:37:28 -07:00
Ahmet Alp Balkan
11ba676828 frontend: connect to productcatalog, currencysvc
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-24 23:37:28 -07:00
Ahmet Alp Balkan
f734e96733 frontend: initial prototype
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-24 23:37:28 -07:00
Simon Zeltser
3262ff82b0 Updating docker file to not include ports. Added scripts folder and script to run docker with env vars passed via command line. Also now the build and packaging is happening in container 2018-06-22 17:17:34 -07:00
Ahmet Alp Balkan
60efbc0f9e integrate currencyservice to k8s deployment
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-22 16:11:21 -07:00
Ace Nassri
97a36a6374 Fix math bug 2018-06-22 15:44:50 -07:00
Ace Nassri
1fa7b44c83 Fix bugs 2018-06-22 14:51:01 -07:00
Ace Nassri
9620c9bb1c Actually add protos 2018-06-22 14:35:37 -07:00
Ace Nassri
057d8ae35a Switch to genproto.sh 2018-06-22 14:14:43 -07:00
Ace Nassri
ab5fb7bde4 Fix nit 2018-06-22 13:54:40 -07:00
Ace Nassri
28a6fbb8f1 Initial commit 2018-06-22 13:43:39 -07:00
Ahmet Alp Balkan
a1b141d5b3 git rm binary
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-22 12:15:40 -07:00
Ahmet Alp Balkan
ea974982bd rm redundant leftover comment
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-22 11:52:13 -07:00
Ahmet Alp Balkan
31adf1400c test-cli: add smoke test for cartservice
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-22 11:50:36 -07:00
Ahmet Alp Balkan
73a662cf83 add prototype of redis k8s deployment
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-22 11:43:55 -07:00
Ahmet Alp Balkan
2d5dcfb3f6 currencyservice: fix test, add test for fractional result
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-22 11:43:41 -07:00
Ahmet Alp Balkan
3ae9448346 k8s: add resource limits to deployments
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-22 09:35:30 -07:00