Skip to content

Commit

Permalink
Sample App: Code Clean up (#5948)
Browse files Browse the repository at this point in the history
* Fix the content in the bad word filter knative function code

* Remove the unused import

* Adding the action for the button in the front end, so that the new review comment can be delivered to the review service.

* enable cors

* Install cors

* fix: configure node.js so that it won't be restricted by CORS policy

* fix: add hardcoded the address for the review service

* feat: the yaml files to run the front end in the k8s cluster

* fix: fix the wrong command in the docker file

* fix: change the naming convention

* fix: update knative slack sink to use the value from secret

* fix: change the name for the front end application package

* fix: update the event type for the outputs of the ML workflows

* fix: create the sequence and trigger for the ML workflow

* fix: change the input key to reviewText

* fix: change the event type for the input cloudevent

* fix: set up the trigger that will filter out the bad comment and send them to the event display

* feat: add the loading state for the front end

* feat: expose the postgresql service as headless service, so we can use the statefulset's name as the host url

* fix: format fix, and also make sure the sentiment analysis result is all lower case

* feat: update to use websocket for the comment area

* feat: add Kuack to the bookstore as advised by UX WG

* feat: add kuack to the bookstore

* feat: add the new timing format and also set up the status badge

* feat: make sure all the ML output are lower case

* feat: styling change

* feat: add the database insertion logic

* fix: update to use kafka broker

* feat: add the quickstart setup script

* fix: use deployment instead of knative service

* fix: Send the reply as cloud event back to broker

* fix: Go back to use MT broker

* fix: Restructure the code

* fix: Restructure the code

* Save progress: TODO: will confirm whether use the pre-built images or build the images locally

* fix: change the naming of the files

* fix: cut the pulling rate of the websocket

* fix: front end clean up and change the error message

* fix: change the port to 8080

* fix: fix the setup script

* fix: update the front end port to use 80 as the nodeserver, as trigger default to use 80, instead of 8080.

* fix: trigger default to use 80, and cannot use customized port 8080.

* fix: renaming and use the pre-built image

* fix: update the naming and add comments to the yaml

* feat: move the code to solution folder

* feat: add the start folder

* fix: the deployment file is not in the /start folder

* fix: shorten the bad word filter name

* fix: shorten the bad word filter name

* fix: delete the deployment files for ML workflows

* fix: add the port 8080

* fix: use Service instead of deployment when setting up temp trigger

* fix: add the missing deployment yaml for /start

* fix: add the shortcut script in the /start folder

* fix: change the favicon to kuack to improve the reader's experience
  • Loading branch information
Leo6Leo authored May 29, 2024
1 parent 30e769c commit 638cbfb
Show file tree
Hide file tree
Showing 128 changed files with 11,735 additions and 477 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ hack/__pycache__
!/blog/overrides/partials/source-file.html
!/blog/overrides/partials/content.html
/blog/docs/stylesheets/
/node_modules/
node_modules
venv/

# TODO clean up images copied between blog/ and docs/
Expand All @@ -36,4 +36,3 @@ maven-wrapper.jar

# Ignore Python virtual environments
.venv
/code-samples/eventing/bookstore-sample-app/db/bookstore-eda/node_modules/*

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions code-samples/eventing/bookstore-sample-app/db/sample.sql

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 638cbfb

Please sign in to comment.