Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GoogleCloudPlatform/microservices-demo Loading
base: main
Choose a base ref
...
head repository: woop/microservices-demo Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 28 files changed
  • 1 contributor

Commits on Aug 10, 2023

  1. Fix code to support ARM on M1/M2

    woop committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    62b5938 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2023

  1. feat(kustomization.yaml): add postgres.yaml to the list of resources …

    …to be deployed in Kubernetes
    
    feat(postgres.yaml): add PostgreSQL configuration for deployment in Kubernetes
    feat(productcatalogservice.yaml): add environment variables for PostgreSQL connection details
    refactor(skaffold.yaml): comment out loadgenerator configuration
    feat(healthcheck): add healthcheck code to connect to productcatalogservice and list products
    feat(loadproductdata): add Dockerfile and go.mod for loadproductdata service
    
    feat(loadproductdata): add go.sum file with dependencies for the loadproductdata module
    feat(loadproductdata): add main.go file to the loadproductdata module
    feat(loadproductdata): add products.json file to the loadproductdata module
    feat(productcatalogservice): add dependency on github.com/lib/pq v1.10.9 to the go.mod file
    fix(productcatalogservice): update ListProducts method to fetch products from the database instead of parsing a catalog file
    fix(productcatalogservice): update GetProduct method to fetch product from the database based on ID
    fix(productcatalogservice): update SearchProducts method to search for products in the database based on query string
    
    fix(server.go): remove unused imports and variables to improve code cleanliness
    feat(server.go): add support for PostgreSQL database to store product data
    feat(server.go): load initial data from JSON file into the database on server startup
    feat(server.go): create products table in the database if it doesn't exist
    feat(server.go): insert product data into the products table on server startup
    feat(server.go): add support for configurable product catalog file path
    feat(server.go): pass the database connection to the productCatalog struct to enable database operations
    feat(server.go): implement createDatabase function to create a PostgreSQL database if it doesn't exist
    woop committed Aug 13, 2023
    Configuration menu
    Copy the full SHA
    62461f1 View commit details
    Browse the repository at this point in the history
  2. chore(product_catalog.go): remove license header to comply with proje…

    …ct guidelines
    
    refactor(product_catalog.go): simplify code by removing unnecessary comments and unused code
    refactor(product_catalog.go): improve variable names for better readability
    refactor(product_catalog.go): simplify code by removing unnecessary variable assignments
    refactor(product_catalog.go): simplify code by removing unnecessary error handling
    refactor(product_catalog.go): simplify code by removing unnecessary type conversions
    refactor(product_catalog.go): simplify code by removing unnecessary struct initialization
    refactor(product_catalog.go): simplify code by removing unnecessary imports
    woop committed Aug 13, 2023
    Configuration menu
    Copy the full SHA
    a1b66c1 View commit details
    Browse the repository at this point in the history
Loading