Commit Graph

7 Commits

Author SHA1 Message Date
dependabot[bot] 2c06a36aec
Bump cookie and express (#6137)
Bumps [cookie](https://github.com/jshttp/cookie) to 0.7.1 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together.


Updates `cookie` from 0.6.0 to 0.7.1
- [Release notes](https://github.com/jshttp/cookie/releases)
- [Commits](https://github.com/jshttp/cookie/compare/v0.6.0...v0.7.1)

Updates `express` from 4.20.0 to 4.21.1
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.1/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.20.0...4.21.1)

---
updated-dependencies:
- dependency-name: cookie
  dependency-type: indirect
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-16 07:02:22 +00:00
Lucas Holmquist b015955154
fix: update express to the latest(4.20.0). (#6115)
fixes https://issues.redhat.com/browse/SRVCOM-3317 . serve-static vulnerability
2024-09-11 14:44:01 +00:00
Leo Li 3ec03e03e0
fix: Update the image to use the one from official knative release build (#6054) 2024-07-16 17:37:29 +00:00
dependabot[bot] e18aaa6410
Bump ws (#6024)
Bumps [ws](https://github.com/websockets/ws) from 7.5.9 to 7.5.10.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.9...7.5.10)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-01 06:59:44 +00:00
Leo Li 1ec7a2b880
Sample App code finalization (#6011)
* fix: update the code according to pierdipi's suggestions

* feat: improve the user experience for the setup script

* feat: improve the user experience for the solution script

* fix: remove unnecessary images

* fix: remove the image registry information in the ML services

* fix: remove the sample webhook URL

* feat: modify the config map to manually disable the scale-to-zero feature

* fix: adding the waiting in the solution setup script

* fix: adding the waiting in the solution setup script for pipe
2024-06-27 07:10:10 +00:00
Leo Li 54207bebd6
Sample App Tutorial Page Compilation (#6007)
* feat: add the first three pages of the sample app tutorial

* Apply suggestions from code review

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

* fix: fix the review comments in pg0 and pg1

* feat: add blog post 2

* feat: adding the images for page 2

* add: add more pages

* add: adding the rest of the pages

* add: modify the nav

* add: finishing polishing

* fix: update the iframe embedded video link

* fix: fix the video embedding dimension and the access

* fix: link minor error fix

* fix: hide the setup script section

* Apply suggestions from code review

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Update docs/bookstore/page-0/page-0-intro.md

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Update docs/bookstore/page-0.5/pg0.5-env-setup.md

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* fix: fix christoph's comment

* fix: Remove all the extra new lines

* fix: update kubernetes to Kubernetes

* Apply suggestions from code review

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* fix: fix the wrong indentation in the yaml files

* Update docs/bookstore/page-2/pg2-sentiment-svc.md

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* fix: fix review comments

* fix: change the console output to text - pg0.5

* fix: replace the console output pic with plaintextg for pg1

* fix: replace the console output pic with plaintext for pg 2&3

* fix: replace the console output pic with plaintext for pg 4

* fix: replace the console output pic with plaintext for pg 5

* fix: replace the console output pic with plaintext for pg 6

* fix: replace the console output pic with plaintext for pg 7

* fix: fix christoph's comments

* Apply suggestions from code review

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* fix: applying christoph's comments fix

* fix: fix christoph's nit comments + open the link in new tab

* fix: make sure all the command have the same root which is /start

* fix: make all the links open in the new tab

* fix: fix small errors

* fix: remove default namespace

* Update docs/bookstore/page-1/pg1-review-svc-1.md

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Apply suggestions from code review

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* fix: update the wording to follow the Knative's branding guideline

* fix: update the wording to follow the Knative's branding guideline

* fix: update the naming of the pages

* fix: fixing the wrong link in the tutorial.md page

* Apply the patch from Christoph

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Apply suggestions from code review

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Update docs/bookstore/page-1/send-review-comment-to-broker.md

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

---------

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Co-authored-by: Christoph Stäbler <cstabler@redhat.com>
2024-06-26 07:42:43 +00:00
Leo Li 638cbfbd20
Sample App: Code Clean up (#5948)
* 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
2024-05-29 13:48:17 +00:00