Commit graph

20 commits

Author SHA1 Message Date
sebright
dc7effd601 adservice: find relevant ads by category (#61)
The ad service now returns ads matching the categories of the product that is
currently displayed.  Changes in this commit:

- List all products' categories in products.json.

- Pass the current product's categories from the frontend to the ad service when
  looking up ads.

- Store a statically initialized multimap from product category to ad in the ad
  service.

- Return all ads matching the given categories when handling an ads request.
  The ad service continues to return random ads when no categories are given or
  no ads match the categories.
2018-10-01 22:44:56 -07:00
Ace Nassri
6c37a96f3a Add health checks to Node.js services (#26)
* Move Node healthchecks to gRPC

* gitignore proto files

* Switch to standard health RPC

* Fix lint

* Update client.js

* Add protos back + update them

* node services: fix & run genproto.sh

this gets currencyservice to work but paymentservice is still crashing
in the docker container.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>

* Fix docker breaking

* update dockerfiles with released health probe

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-09-19 12:35:22 -07:00
Ahmet Alp Balkan
d0128060e4
Add LICENSE headers to source files
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-25 09:54:28 -07:00
morganmclean
bfb740c079 Fixed Debugger config for node services 2018-07-17 15:04:25 -07:00
morganmclean
99ce1f84c2 Instrumented everything but Python 2018-07-16 14:29:14 -07:00
morganmclean
88b29516fb Added node.js client tracing 2018-07-11 15:40:38 -07:00
morganmclean
59430d5854 Added node.js tracing 2018-07-11 15:19:17 -07:00
Ahmet Alp Balkan
ab045ae6e7 currencyservice: change port to 7000
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 13:45:03 -07:00
Ahmet Alp Balkan
4f631ce4f6 currencyservice: less logs
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-28 18:38:51 -07:00
Ahmet Alp Balkan
05cb7ecfb9 currencyservice: fix nanos overflow due to rounding
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 16:24:26 -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
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
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