From fd6cb2e18d665a3ef48af579c46857e53b422031 Mon Sep 17 00:00:00 2001 From: Anupam Kumar Date: Sat, 23 Mar 2024 01:14:30 +0530 Subject: [PATCH] v2.0.1 Signed-off-by: Anupam Kumar --- .github/workflows/integration-test.yml | 2 +- Makefile | 4 ++-- README.md | 4 ++-- appinfo/info.xml | 4 ++-- changelog.md | 7 +++++++ example.env | 2 +- pyproject.toml | 2 +- 7 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index e7a0ffe..d60065f 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -154,7 +154,7 @@ jobs: - name: Register backend run: | ./occ app_api:daemon:register --net host manual_install "Manual Install" manual-install http localhost http://localhost:8080 - ./occ app_api:app:register context_chat_backend manual_install --json-info "{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"2.0.0\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" --force-scopes --wait-finish + ./occ app_api:app:register context_chat_backend manual_install --json-info "{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"2.0.1\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" --force-scopes --wait-finish - name: Scan files run: | diff --git a/Makefile b/Makefile index c7b88c4..f81a09a 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ help: #.PHONY: build-push #build-push: # docker login ghcr.io -# docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/nextcloud/context_chat_backend:2.0.0 --tag ghcr.io/nextcloud/context_chat_backend:latest . +# docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/nextcloud/context_chat_backend:2.0.1 --tag ghcr.io/nextcloud/context_chat_backend:latest . .PHONY: deploy deploy: @@ -40,5 +40,5 @@ run: register: docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister context_chat_backend --silent || true docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register context_chat_backend manual_install --json-info \ - "{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"2.0.0\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" \ + "{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"2.0.1\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" \ --force-scopes --wait-finish diff --git a/README.md b/README.md index a56ba8e..4d582b1 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ If nextcloud is inside a container, `--add-host` option would be required by you **2. Register the app using the deploy daemon (be mindful of the port number and the app's version):** ``` occ app_api:app:register context_chat_backend manual_install --json-info \ -"{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"2.0.0\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" \ +"{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"2.0.1\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" \ --force-scopes --wait-finish ``` The command to unregister is given below (force is used to also remove apps whose container has been removed) @@ -242,7 +242,7 @@ sudo -u www-data php occ app_api:app:register \ --json-info "{\"appid\":\"context_chat_backend\",\ \"name\":\"Context Chat Backend\",\ \"daemon_config_name\":\"manual_install\",\ - \"version\":\"2.0.0\",\ + \"version\":\"2.0.1\",\ \"secret\":\"12345\",\ \"port\":10034,\ \"scopes\":[],\ diff --git a/appinfo/info.xml b/appinfo/info.xml index d3b6329..cbd1dce 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -14,7 +14,7 @@ Three mandatory apps are required for this app to work (can be installed from th This app then should be installed from the "External Apps" page. ]]> - 2.0.0 + 2.0.1 agpl Anupam Kumar Context Chat @@ -29,7 +29,7 @@ This app then should be installed from the "External Apps" page. ghcr.io nextcloud/context_chat_backend - 2.0.0 + 2.0.1 diff --git a/changelog.md b/changelog.md index dd7887c..d8d6883 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 2.0.1 - 2024-03-23 +### Fixed +- user_id sanitisation for vectordb collection names +- symlink config.yaml in the persistent dir +- use requirements.cpu.txt in CI due to space constraints + + ## 2.0.0 - 2024-03-21 ### Changed - use ubuntu-22.04 to use gh runners diff --git a/example.env b/example.env index 19a94fc..20b803f 100644 --- a/example.env +++ b/example.env @@ -14,7 +14,7 @@ AA_VERSION=2.0.3 APP_SECRET=12345 APP_ID=context_chat_backend APP_DISPLAY_NAME=Context Chat Backend -APP_VERSION=2.0.0 +APP_VERSION=2.0.1 APP_PROTOCOL=http APP_HOST=0.0.0.0 APP_PORT=10034 diff --git a/pyproject.toml b/pyproject.toml index 2fba7f5..efd00f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "context_chat_backend" -version = "2.0.0" +version = "2.0.1" requires-python = ">=3.11" authors = [ { name = "Anupam Kumar", email = "kyteinsky@gmail.com" }