Commit Graph

358 Commits

Author SHA1 Message Date
Vincent Batts ddc67a84fa
demo time
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2020-10-15 21:14:19 -04:00
TPS a301040778
[ImgBot] Optimize images (#379)
*Total -- 9,700.78kb -> 7,363.19kb (24.1%)

/docs/img/online-boutique-frontend-1.png -- 5,226.25kb -> 3,464.34kb (33.71%)
/docs/img/online-boutique-frontend-2.png -- 845.23kb -> 570.46kb (32.51%)
/docs/img/architecture-diagram.png -- 70.77kb -> 52.80kb (25.39%)
/src/frontend/static/images/HeroBannerImage.png -- 820.54kb -> 653.61kb (20.34%)
/src/frontend/static/icons/Hipster_DownArrow.svg -- 0.27kb -> 0.22kb (17.86%)
/src/frontend/static/icons/Hipster_HelpIcon.svg -- 0.45kb -> 0.39kb (13.64%)
/src/frontend/static/icons/Hipster_SearchIcon.svg -- 0.36kb -> 0.31kb (13.44%)
/src/frontend/static/images/VRHeadsets.png -- 408.29kb -> 356.61kb (12.66%)
/src/frontend/static/icons/Hipster_ProfileIcon.svg -- 0.51kb -> 0.44kb (12.16%)
/src/frontend/static/icons/Hipster_CheckOutIcon.svg -- 0.51kb -> 0.45kb (12%)
/src/frontend/static/icons/Hipster_PinterestIcon.svg -- 0.59kb -> 0.53kb (10.47%)
/src/frontend/static/icons/Hipster_GooglePlayIcon.svg -- 6.05kb -> 5.42kb (10.42%)
/src/frontend/static/icons/Hipster_TwitterIcon.svg -- 0.51kb -> 0.46kb (9.63%)
/src/frontend/static/icons/Hipster_CartIcon.svg -- 0.67kb -> 0.60kb (9.24%)
/src/frontend/static/icons/Hipster_CurrencyIcon.svg -- 0.68kb -> 0.62kb (9.09%)
/src/frontend/static/img/products/film-camera.jpg -- 145.81kb -> 133.48kb (8.46%)
/src/frontend/static/icons/Hipster_NavLogo.svg -- 2.66kb -> 2.46kb (7.77%)
/src/frontend/static/icons/Hipster_FacebookIcon.svg -- 0.79kb -> 0.73kb (7.75%)
/src/frontend/static/icons/Hipster_YoutubeIcon.svg -- 0.88kb -> 0.82kb (7.51%)
/src/frontend/static/icons/Hipster_InstagramIcon.svg -- 1.06kb -> 0.99kb (6.26%)
/src/frontend/static/img/products/terrarium.jpg -- 55.75kb -> 52.27kb (6.24%)
/src/frontend/static/img/products/air-plant.jpg -- 94.18kb -> 88.69kb (5.83%)
/src/frontend/static/img/products/camera-lens.jpg -- 155.02kb -> 147.69kb (4.73%)
/src/frontend/static/img/products/city-bike.jpg -- 145.42kb -> 140.56kb (3.34%)
/src/frontend/static/images/AdvertBannerImage.png -- 526.28kb -> 510.26kb (3.04%)
/src/frontend/static/img/products/record-player.jpg -- 137.53kb -> 133.64kb (2.83%)
/src/frontend/static/icons/Hipster_HeroLogo.svg -- 15.91kb -> 15.53kb (2.39%)
/src/frontend/static/icons/Hipster_HeroLogoCyan.svg -- 15.92kb -> 15.54kb (2.39%)
/src/frontend/static/img/products/barista-kit.jpg -- 211.11kb -> 206.06kb (2.39%)
/src/frontend/static/img/products/typewriter.jpg -- 82.90kb -> 81.11kb (2.16%)
/src/frontend/static/icons/Hipster_HotProducts.svg -- 8.79kb -> 8.60kb (2.07%)
/src/frontend/static/icons/Hipster_KitchenwareOffer.svg -- 20.21kb -> 19.97kb (1.22%)
/src/frontend/static/icons/Hipster_Advert2.svg -- 19.24kb -> 19.02kb (1.12%)
/src/frontend/static/icons/Hipster_OtherProducts.svg -- 25.76kb -> 25.50kb (1.02%)
/src/frontend/static/images/Advert2BannerImage.png -- 653.90kb -> 653.01kb (0.14%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-10-14 14:04:53 -07:00
Ahmet Alp Balkan a9e95bc05c
Move to go modules (#410)
Simplifies and modernizes the go build process.
Old vs new build times (without cache):

- frontend: 185s vs 33s.
- productcatalog: 190s vs 30s.
- shippingservice: 200s vs 36s.
- checkoutservice: 129s vs 27s.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2020-10-13 13:05:53 -07:00
keziasulami 65b5da1a9b
Fix multiply item price by quantity (#378) 2020-10-13 12:25:06 -07:00
adrienaflalo 491576dfa0
Updated loadgenerator to support locust 1.0.2 (#357)
* updated loadgenerator to support locust 1.0.2

* removed rate parameter
2020-10-12 13:33:58 -07:00
dependabot[bot] 27bbcfd089
Bump lodash from 4.17.14 to 4.17.19 in /src/currencyservice (#370) 2020-10-05 23:47:09 +00:00
dependabot[bot] 9bdf169845
Bump lodash from 4.17.14 to 4.17.19 in /src/paymentservice (#371) 2020-10-05 23:46:55 +00:00
Janos Lenart 0d635b9a0e
cartservice: add libssl to allow connecting to external redis instances (#388)
This allows setting REDIS_ADDR to say a Google memorystore instance

Fixes #363
2020-08-26 10:59:02 -07:00
Ömer 8ed8970136
Loadgenerator :: Dockerfile :: Fix, --prefix support issue (#387) 2020-08-26 09:31:39 -07:00
Daniel Sanche c4d86703c5
Add licenses (#367) 2020-07-15 11:56:37 -07:00
dependabot[bot] fccaff8885
Bump httplib2 from 0.12.1 to 0.18.0 in /src/emailservice (#349)
Bumps [httplib2](https://github.com/httplib2/httplib2) from 0.12.1 to 0.18.0.
- [Release notes](https://github.com/httplib2/httplib2/releases)
- [Changelog](https://github.com/httplib2/httplib2/blob/master/CHANGELOG)
- [Commits](https://github.com/httplib2/httplib2/compare/v0.12.1...v0.18.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-18 10:47:44 -07:00
Ben Wells 87505f1a42
Handle error template errors (#332) 2020-06-17 17:01:02 -07:00
dependabot[bot] 82412aced6
Bump httplib2 from 0.12.0 to 0.18.0 in /src/recommendationservice (#348)
Bumps [httplib2](https://github.com/httplib2/httplib2) from 0.12.0 to 0.18.0.
- [Release notes](https://github.com/httplib2/httplib2/releases)
- [Changelog](https://github.com/httplib2/httplib2/blob/master/CHANGELOG)
- [Commits](https://github.com/httplib2/httplib2/compare/v0.12.0...v0.18.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-17 16:59:49 -07:00
Megan O'Keefe 05758f56b8
Hide currency conversion after checkout (#343) 2020-05-06 09:22:02 -04:00
Megan O'Keefe 52fdde2e7f
CSS fix for Azure platform flag (#330)
* CSS fix for Azure platform flag

* update default flag
2020-04-24 12:27:40 -04:00
Megan O'Keefe 814088f788
Rebrand Hipstershop as OnlineBoutique (#328)
* update productcatalog, frontend, readme

* revert productcatalog

* restore currency logic and ad display

* footer cleanup

* Resize header image

* screenshots

* Center align header image in readme

* Show platform flag on every page

* style fixes

* fix currency in UI, remove extra USD

* cart bug, fixing

* attempt to fix breaking build

* fix cart size in handler

* replace images

* # items in cart is total quantity

* Add link to 0.1.4 manifests in readme
2020-04-23 14:12:30 -07:00
dependabot[bot] 5aa38ad5d6
Bump https-proxy-agent from 2.2.2 to 2.2.4 in /src/currencyservice (#326)
Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 2.2.2 to 2.2.4.
- [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases)
- [Commits](https://github.com/TooTallNate/node-https-proxy-agent/compare/2.2.2...2.2.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-04-16 17:47:13 -07:00
dependabot[bot] 42651b5d6e
Bump https-proxy-agent from 2.2.2 to 2.2.4 in /src/paymentservice (#325)
Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 2.2.2 to 2.2.4.
- [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases)
- [Commits](https://github.com/TooTallNate/node-https-proxy-agent/compare/2.2.2...2.2.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-04-16 17:46:37 -07:00
Daniel Sanche 173ac3f071
move cartservice tests (#322) 2020-04-14 10:31:36 -07:00
Mmadu Manasseh 4d8848bc5e
Updated deps for exporter/jaeger (#282) 2020-04-13 15:23:46 -07:00
Daniel Sanche 1cf78ea7d8
Fix local clusters (#318) 2020-04-08 20:29:21 -07:00
dependabot[bot] f1a8e88f9b
Bump pyyaml from 3.13 to 5.1 in /src/recommendationservice (#317) 2020-04-08 17:11:55 -07:00
dependabot[bot] 21c7455f73
Bump urllib3 from 1.24.1 to 1.24.2 in /src/recommendationservice (#315) 2020-04-08 15:37:53 -07:00
dependabot[bot] 12f06ab19d
Bump urllib3 from 1.24.1 to 1.24.2 in /src/emailservice (#314) 2020-04-08 15:36:07 -07:00
dependabot[bot] 35edb74678
Bump urllib3 from 1.24.1 to 1.24.2 in /src/loadgenerator (#313) 2020-04-08 15:33:52 -07:00
dependabot[bot] f948037ac6
Bump extend from 3.0.1 to 3.0.2 in /src/currencyservice (#312) 2020-04-08 15:29:04 -07:00
Jorge González González 997b5e8807
Change 'wait' to use 'between' as recommended by locustio (#298) 2020-03-28 18:38:03 -07:00
Jonas-Taha El Sesiy 23ad0169c2
Migrate to Gradle 6 (#281)
Update build.gradle to use plugin DSL instead of outdated buildscript
Update gradle wrapper to 6.3
Update jackson, opencensus, grpc & other dependencies to recent versions
Fix code warnings
Properly format source files using goJF task
Add default port to AdService
2020-03-28 00:16:31 -07:00
Daniel Sanche e65565987e
Update container build instructions (#296) 2020-03-26 14:32:37 -07:00
Megan O'Keefe 90f9287f3a
Adds option to disable Stackdriver Export (#293) 2020-02-20 15:26:44 -05:00
Morgan McLean 595bd21d38
Set environment variable to enable Profiler (#239) 2020-02-14 16:49:24 -08:00
Megan O'Keefe 9133fdc043
EmptyCart bug fix (#289) 2020-02-06 15:36:26 -08:00
Daniel Sanche 53f2528094 Fix double shebang in loadgen.sh (#284) 2020-01-16 15:48:57 -08:00
Megan O'Keefe 04b2084779
[WIP] Fixes emailservice CrashLoop when Workload Identity is enabled (#280)
* Adds explicit PROJECT_ID for stackdriver exporter

* save work

* cleanup
2019-12-17 13:41:59 -05:00
Megan O'Keefe 8cfb88bf2f
Standardizes loadgen behavior for Istio mTLS=STRICT (#279)
* Adds liveness probe annotation, moves loadgen initcontainer into main

* cleanup

* cleanup

* updated wrong manifests

* respond to comments
2019-12-16 09:30:23 -05:00
Ben Wells a95997be94 Remove deps files from node paymentservice (#252) 2019-10-16 13:45:55 -07:00
Joseph Sirianni 24ca9eecef use python 3.7, as python:3-slim is now using python 3.8. (#254) 2019-10-16 10:11:05 -07:00
djmailhot 2177813c44 cartservice: Create genproto.sh (#249)
* Add src/cartservice/genproto.sh

* Add grpc generation to cartservice/genproto.sh

* Remove grpc from cartservice/genproto.sh due to errors
2019-09-29 15:40:48 +03:00
Daniel Sanche 4681320f80 got rid of errors in Stackdriver Logging (#245) 2019-09-20 15:11:49 -04:00
Megan O'Keefe 156dfcec8a
[cartservice] Increases health check timeout (#240)
* Increases cartservice health check rpc timeout

* remove stopwatch from health check

* cleanup

* Cleanup
2019-08-19 14:28:03 -04:00
Evans Wang 13b73067c4 Typo in the months drop down (#237) 2019-07-16 14:00:33 -07:00
Megan O'Keefe bb41c7fe02
Updates stackdriver agents for node.js services (#236) 2019-07-11 11:47:31 -04:00
Megan O'Keefe 754d22a08f
Updates go services to google-cloud-go 0.40.0 (#234)
* Updates go services to google cloud go 0.40.0

* Revert kubernetes manifests, remove custom images

* Remove binary file, replace nil error with unimplemented

* Shippingservice needed status import

* Remove shippingservice binary
2019-07-09 16:57:50 -04:00
iasinDev f575b76f33 Fix https://github.com/GoogleCloudPlatform/microservices-demo/issues/222 (#224) 2019-07-01 14:49:31 -07:00
Yoshi Yamaguchi 1c057fcbd8 aligning function name and log message to the official product name (#229)
* log: change log format to JSON payload for better log in Stackdriver

change the log format in Go written service from text payload to
JSON payload using 3rd party logging library (logrus).

https://cloud.google.com/logging/docs/structured-logging
33a1e118e1/json_formatter.go (L40-L49)

Effected services are frontend, productcatalogservice, checkoutservice,
and shippinservice.

Also change target container registry and locust scenario for testing.

* revert kubernetes manifests to point to the original container registry URLs

* revert skaffold.yaml to point to the original registry

* loadgenerator: revert locust settings

* align all function names and messages to the official product name "Stackdriver"
2019-06-13 00:46:33 -07:00
Dinesh Nagar ce03eb3c36 removed left-pad module (#218) 2019-05-22 10:16:09 +02:00
Abhilash Gnan 55f5061532 Use env in service manifests for PORT (#212)
* fix shipping service ports

* fix product catalog servicde ports

* fix paymentservice ports

* fix currenservice ports

* fix checkoutservice ports

* fix emailservice ports

* fix frontend app ports

* fix recommendationservice ports

* fix indentation in service yaml files
2019-05-08 19:39:14 -07:00
Kalyana Chadalavada 876d4f966f Add Stackdriver Profiler Java agent to adservice (#210)
* Add Stackdriver Profiler Java agent to adservice.

* Add Stackdriver Profiler Java agent to adservice.
2019-05-08 19:31:33 -07:00
Kalyana Chadalavada 86fb1662a3 Add Stackdriver Profiler Python agent (#176)
* Add Stackdriver Profiler Python agent to EmailService and
RecommendationService

* Update recommendation_server.py

* Moved Profiler init to a function

* Moved Profiler init to a function

* Delete key.json

* Delete key.json

* Delete key.json
2019-05-03 10:29:34 -07:00
Chris Proto f276995585 Follow OWASP best practices on CC presentation on checkout form (#207)
* Follow OWASP best practices on CC presentation on checkout form

See OWASP recommendations here:
<https://www.owasp.org/index.php/Handling_E-Commerce_Payments#Displaying_portions_of_the_credit_card>

* Use `input type=password`
* Set `autocomplete="off"`

* Change credit_card_number input type back to "text"
2019-04-30 09:46:50 -07:00