From 21e9008f81ebfa49c70af620d9d5916cb764f921 Mon Sep 17 00:00:00 2001 From: oliver Date: Thu, 10 Oct 2024 14:21:58 +0200 Subject: [PATCH] 0.0.74 --- .github/workflows/gh_release.yml | 4 ++-- .../generic_loader/requirements-lucit_ubdcc_dcn.txt | 2 +- .../generic_loader/requirements-lucit_ubdcc_mgmt.txt | 2 +- .../requirements-lucit_ubdcc_restapi.txt | 2 +- dev/_todo.txt | 10 ++++++---- dev/docker/lucit-ubdcc-dcn-latest.sh | 2 +- dev/docker/lucit-ubdcc-dcn.sh | 2 +- dev/docker/lucit-ubdcc-mgmt-latest.sh | 2 +- dev/docker/lucit-ubdcc-mgmt.sh | 2 +- dev/docker/lucit-ubdcc-restapi-latest.sh | 2 +- dev/docker/lucit-ubdcc-restapi.sh | 2 +- dev/set_version_config.yml | 2 +- packages/lucit-ubdcc-dcn/pyproject.toml | 4 ++-- packages/lucit-ubdcc-dcn/requirements.txt | 2 +- packages/lucit-ubdcc-dcn/setup.py | 4 ++-- .../lucit-ubdcc-mgmt/lucit_ubdcc_mgmt/RestEndpoints.py | 4 ++++ packages/lucit-ubdcc-mgmt/pyproject.toml | 4 ++-- packages/lucit-ubdcc-mgmt/requirements.txt | 2 +- packages/lucit-ubdcc-mgmt/setup.py | 4 ++-- packages/lucit-ubdcc-restapi/pyproject.toml | 4 ++-- packages/lucit-ubdcc-restapi/requirements.txt | 2 +- packages/lucit-ubdcc-restapi/setup.py | 4 ++-- .../lucit_ubdcc_shared_modules/App.py | 2 +- packages/lucit-ubdcc-shared-modules/pyproject.toml | 2 +- packages/lucit-ubdcc-shared-modules/setup.py | 2 +- 25 files changed, 40 insertions(+), 34 deletions(-) diff --git a/.github/workflows/gh_release.yml b/.github/workflows/gh_release.yml index a882093..a607dbb 100644 --- a/.github/workflows/gh_release.yml +++ b/.github/workflows/gh_release.yml @@ -16,8 +16,8 @@ jobs: - name: Create GitHub Release uses: softprops/action-gh-release@v1 with: - tag_name: 0.0.73 - name: Release 0.0.73 + tag_name: 0.0.74 + name: Release 0.0.74 body: | Please read the [CHANGELOG](https://unicorn-binance-depthcache-cluster.docs.lucit.tech/changelog.html) for further information. draft: false diff --git a/container/generic_loader/requirements-lucit_ubdcc_dcn.txt b/container/generic_loader/requirements-lucit_ubdcc_dcn.txt index cf953a3..e1919a7 100644 --- a/container/generic_loader/requirements-lucit_ubdcc_dcn.txt +++ b/container/generic_loader/requirements-lucit_ubdcc_dcn.txt @@ -1,2 +1,2 @@ -lucit-ubdcc-dcn==0.0.73 +lucit-ubdcc-dcn==0.0.74 unicorn_binance_local_depth_cache>=2.1.1 \ No newline at end of file diff --git a/container/generic_loader/requirements-lucit_ubdcc_mgmt.txt b/container/generic_loader/requirements-lucit_ubdcc_mgmt.txt index d29e90b..bc6e10a 100644 --- a/container/generic_loader/requirements-lucit_ubdcc_mgmt.txt +++ b/container/generic_loader/requirements-lucit_ubdcc_mgmt.txt @@ -1 +1 @@ -lucit-ubdcc-mgmt==0.0.73 \ No newline at end of file +lucit-ubdcc-mgmt==0.0.74 \ No newline at end of file diff --git a/container/generic_loader/requirements-lucit_ubdcc_restapi.txt b/container/generic_loader/requirements-lucit_ubdcc_restapi.txt index 18980d8..7170097 100644 --- a/container/generic_loader/requirements-lucit_ubdcc_restapi.txt +++ b/container/generic_loader/requirements-lucit_ubdcc_restapi.txt @@ -1 +1 @@ -lucit-ubdcc-restapi==0.0.73 \ No newline at end of file +lucit-ubdcc-restapi==0.0.74 \ No newline at end of file diff --git a/dev/_todo.txt b/dev/_todo.txt index 63299f6..801a8b9 100644 --- a/dev/_todo.txt +++ b/dev/_todo.txt @@ -1,6 +1,8 @@ Todo: -1. Check if license is valid bevor starting a UBLDC instance -2. Replace JSON lib? -3. Controll if it is in all DB write operations self._set_update_timestamp() -4. Sync DNC last restart time +1. Replace JSON lib? +2. Controll if it is in all DB write operations self._set_update_timestamp() +3. Sync DNC last restart time + +Ideas: +- use websocket between client und restapi instead of rest \ No newline at end of file diff --git a/dev/docker/lucit-ubdcc-dcn-latest.sh b/dev/docker/lucit-ubdcc-dcn-latest.sh index 58d957a..b048542 100755 --- a/dev/docker/lucit-ubdcc-dcn-latest.sh +++ b/dev/docker/lucit-ubdcc-dcn-latest.sh @@ -2,7 +2,7 @@ set -e -VERSION="0.0.73-latest" +VERSION="0.0.74-latest" echo Deploying UBDCC DepthCacheCluster $VERSION to https://i018oau9.c1.de1.container-registry.ovh.net/harbor/projects/3/repositories diff --git a/dev/docker/lucit-ubdcc-dcn.sh b/dev/docker/lucit-ubdcc-dcn.sh index 24b7cff..96c9bc0 100755 --- a/dev/docker/lucit-ubdcc-dcn.sh +++ b/dev/docker/lucit-ubdcc-dcn.sh @@ -2,7 +2,7 @@ set -e -VERSION="0.0.73" +VERSION="0.0.74" echo Deploying UBDCC DepthCacheCluster $VERSION to https://i018oau9.c1.de1.container-registry.ovh.net/harbor/projects/3/repositories diff --git a/dev/docker/lucit-ubdcc-mgmt-latest.sh b/dev/docker/lucit-ubdcc-mgmt-latest.sh index 9cea2ef..01068f0 100755 --- a/dev/docker/lucit-ubdcc-mgmt-latest.sh +++ b/dev/docker/lucit-ubdcc-mgmt-latest.sh @@ -2,7 +2,7 @@ set -e -VERSION="0.0.73-latest" +VERSION="0.0.74-latest" echo Deploying UBDCC Mgmt $VERSION to https://i018oau9.c1.de1.container-registry.ovh.net/harbor/projects/3/repositories diff --git a/dev/docker/lucit-ubdcc-mgmt.sh b/dev/docker/lucit-ubdcc-mgmt.sh index 32a2c45..171c749 100755 --- a/dev/docker/lucit-ubdcc-mgmt.sh +++ b/dev/docker/lucit-ubdcc-mgmt.sh @@ -2,7 +2,7 @@ set -e -VERSION="0.0.73" +VERSION="0.0.74" echo Deploying UBDCC Mgmt $VERSION to https://i018oau9.c1.de1.container-registry.ovh.net/harbor/projects/3/repositories diff --git a/dev/docker/lucit-ubdcc-restapi-latest.sh b/dev/docker/lucit-ubdcc-restapi-latest.sh index 7b071fb..b749cd6 100755 --- a/dev/docker/lucit-ubdcc-restapi-latest.sh +++ b/dev/docker/lucit-ubdcc-restapi-latest.sh @@ -2,7 +2,7 @@ set -e -VERSION="0.0.73-latest" +VERSION="0.0.74-latest" echo Deploying UBDCC RESTAPI $VERSION to https://i018oau9.c1.de1.container-registry.ovh.net/harbor/projects/3/repositories diff --git a/dev/docker/lucit-ubdcc-restapi.sh b/dev/docker/lucit-ubdcc-restapi.sh index a2db365..a9603ce 100755 --- a/dev/docker/lucit-ubdcc-restapi.sh +++ b/dev/docker/lucit-ubdcc-restapi.sh @@ -2,7 +2,7 @@ set -e -VERSION="0.0.73" +VERSION="0.0.74" echo Deploying UBDCC RESTAPI $VERSION to https://i018oau9.c1.de1.container-registry.ovh.net/harbor/projects/3/repositories diff --git a/dev/set_version_config.yml b/dev/set_version_config.yml index 0800050..7d7d7fa 100644 --- a/dev/set_version_config.yml +++ b/dev/set_version_config.yml @@ -23,4 +23,4 @@ files: - packages/lucit-ubdcc-shared-modules/lucit_ubdcc_shared_modules/App.py - packages/lucit-ubdcc-shared-modules/pyproject.toml - packages/lucit-ubdcc-shared-modules/setup.py -version: 0.0.73 +version: 0.0.74 diff --git a/packages/lucit-ubdcc-dcn/pyproject.toml b/packages/lucit-ubdcc-dcn/pyproject.toml index b574dfa..7be94af 100644 --- a/packages/lucit-ubdcc-dcn/pyproject.toml +++ b/packages/lucit-ubdcc-dcn/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "lucit-ubdcc-dcn" -version = "0.0.73" +version = "0.0.74" description = "LUCIT UBDCC DepthCacheNode" authors = ["LUCIT Systems and Development "] license = "LSOSL - LUCIT Synergetic Open Source License" @@ -25,7 +25,7 @@ repository = "https://github.com/LUCIT-Systems-and-Development/unicorn-binance-d [tool.poetry.dependencies] python = ">=3.12.0" lucit-licensing-python = ">=1.8.2" -lucit-ubdcc-shared-modules = "==0.0.73" +lucit-ubdcc-shared-modules = "==0.0.74" [tool.poetry.dev-dependencies] diff --git a/packages/lucit-ubdcc-dcn/requirements.txt b/packages/lucit-ubdcc-dcn/requirements.txt index 30e77bb..8963dec 100644 --- a/packages/lucit-ubdcc-dcn/requirements.txt +++ b/packages/lucit-ubdcc-dcn/requirements.txt @@ -1,2 +1,2 @@ -lucit-ubdcc-shared-modules==0.0.73 +lucit-ubdcc-shared-modules==0.0.74 unicorn_binance_local_depth_cache>=2.1.1 diff --git a/packages/lucit-ubdcc-dcn/setup.py b/packages/lucit-ubdcc-dcn/setup.py index e3795e8..a68b8a7 100644 --- a/packages/lucit-ubdcc-dcn/setup.py +++ b/packages/lucit-ubdcc-dcn/setup.py @@ -31,7 +31,7 @@ setup( name=name, - version="0.0.73", + version="0.0.74", author="LUCIT Systems and Development", author_email='info@lucit.tech', url="https://github.com/LUCIT-Systems-and-Development/unicorn-binance-depthcache-cluster", @@ -39,7 +39,7 @@ long_description=long_description, long_description_content_type="text/markdown", license='LSOSL - LUCIT Synergetic Open Source License', - install_requires=['lucit-licensing-python>=1.8.2', 'lucit-ubdcc-shared-modules==0.0.73'], + install_requires=['lucit-licensing-python>=1.8.2', 'lucit-ubdcc-shared-modules==0.0.74'], keywords='', project_urls={ 'Howto': 'https://www.lucit.tech/unicorn-binance-depthcache-cluster.html#howto', diff --git a/packages/lucit-ubdcc-mgmt/lucit_ubdcc_mgmt/RestEndpoints.py b/packages/lucit-ubdcc-mgmt/lucit_ubdcc_mgmt/RestEndpoints.py index 49e63b6..cc6b737 100644 --- a/packages/lucit-ubdcc-mgmt/lucit_ubdcc_mgmt/RestEndpoints.py +++ b/packages/lucit-ubdcc-mgmt/lucit_ubdcc_mgmt/RestEndpoints.py @@ -96,6 +96,10 @@ async def create_depthcache(self, request: Request): update_interval = None else: update_interval = int(update_interval) + if refresh_interval is None or update_interval == "None": + refresh_interval = None + else: + refresh_interval = int(refresh_interval) if exchange is None or market is None: return self.get_error_response(event=event, error_id="#1016", message="Missing required parameter: exchange, market") diff --git a/packages/lucit-ubdcc-mgmt/pyproject.toml b/packages/lucit-ubdcc-mgmt/pyproject.toml index ab543e3..b38ed4f 100644 --- a/packages/lucit-ubdcc-mgmt/pyproject.toml +++ b/packages/lucit-ubdcc-mgmt/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "lucit-ubdcc-mgmt" -version = "0.0.73" +version = "0.0.74" description = "LUCIT UBDCC Mgmt Service" authors = ["LUCIT Systems and Development "] license = "LSOSL - LUCIT Synergetic Open Source License" @@ -25,7 +25,7 @@ repository = "https://github.com/LUCIT-Systems-and-Development/unicorn-binance-d [tool.poetry.dependencies] python = ">=3.12.0" lucit-licensing-python = ">=1.8.2" -lucit-ubdcc-shared-modules = "==0.0.73" +lucit-ubdcc-shared-modules = "==0.0.74" [tool.poetry.dev-dependencies] diff --git a/packages/lucit-ubdcc-mgmt/requirements.txt b/packages/lucit-ubdcc-mgmt/requirements.txt index ab71e4c..34aa10e 100644 --- a/packages/lucit-ubdcc-mgmt/requirements.txt +++ b/packages/lucit-ubdcc-mgmt/requirements.txt @@ -1 +1 @@ -lucit-ubdcc-shared-modules==0.0.73 \ No newline at end of file +lucit-ubdcc-shared-modules==0.0.74 \ No newline at end of file diff --git a/packages/lucit-ubdcc-mgmt/setup.py b/packages/lucit-ubdcc-mgmt/setup.py index 922ca19..052995e 100644 --- a/packages/lucit-ubdcc-mgmt/setup.py +++ b/packages/lucit-ubdcc-mgmt/setup.py @@ -31,7 +31,7 @@ setup( name=name, - version="0.0.73", + version="0.0.74", author="LUCIT Systems and Development", author_email='info@lucit.tech', url="https://github.com/LUCIT-Systems-and-Development/unicorn-binance-depthcache-cluster", @@ -39,7 +39,7 @@ long_description=long_description, long_description_content_type="text/markdown", license='LSOSL - LUCIT Synergetic Open Source License', - install_requires=['lucit-licensing-python>=1.8.2', 'lucit-ubdcc-shared-modules==0.0.73'], + install_requires=['lucit-licensing-python>=1.8.2', 'lucit-ubdcc-shared-modules==0.0.74'], keywords='', project_urls={ 'Howto': 'https://www.lucit.tech/unicorn-binance-depthcache-cluster.html#howto', diff --git a/packages/lucit-ubdcc-restapi/pyproject.toml b/packages/lucit-ubdcc-restapi/pyproject.toml index 94e9143..bd96010 100644 --- a/packages/lucit-ubdcc-restapi/pyproject.toml +++ b/packages/lucit-ubdcc-restapi/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "lucit-ubdcc-restapi" -version = "0.0.73" +version = "0.0.74" description = "LUCIT UBDCC REST API" authors = ["LUCIT Systems and Development "] license = "LSOSL - LUCIT Synergetic Open Source License" @@ -25,7 +25,7 @@ repository = "https://github.com/LUCIT-Systems-and-Development/unicorn-binance-d [tool.poetry.dependencies] python = ">=3.12.0" lucit-licensing-python = ">=1.8.2" -lucit-ubdcc-shared-modules = "==0.0.73" +lucit-ubdcc-shared-modules = "==0.0.74" [tool.poetry.dev-dependencies] diff --git a/packages/lucit-ubdcc-restapi/requirements.txt b/packages/lucit-ubdcc-restapi/requirements.txt index ab71e4c..34aa10e 100644 --- a/packages/lucit-ubdcc-restapi/requirements.txt +++ b/packages/lucit-ubdcc-restapi/requirements.txt @@ -1 +1 @@ -lucit-ubdcc-shared-modules==0.0.73 \ No newline at end of file +lucit-ubdcc-shared-modules==0.0.74 \ No newline at end of file diff --git a/packages/lucit-ubdcc-restapi/setup.py b/packages/lucit-ubdcc-restapi/setup.py index 7650e16..e358457 100644 --- a/packages/lucit-ubdcc-restapi/setup.py +++ b/packages/lucit-ubdcc-restapi/setup.py @@ -31,7 +31,7 @@ setup( name=name, - version="0.0.73", + version="0.0.74", author="LUCIT Systems and Development", author_email='info@lucit.tech', url="https://github.com/LUCIT-Systems-and-Development/unicorn-binance-depthcache-cluster", @@ -39,7 +39,7 @@ long_description=long_description, long_description_content_type="text/markdown", license='LSOSL - LUCIT Synergetic Open Source License', - install_requires=['lucit-licensing-python>=1.8.2', 'lucit-ubdcc-shared-modules==0.0.73'], + install_requires=['lucit-licensing-python>=1.8.2', 'lucit-ubdcc-shared-modules==0.0.74'], keywords='', project_urls={ 'Howto': 'https://www.lucit.tech/unicorn-binance-depthcache-cluster.html#howto', diff --git a/packages/lucit-ubdcc-shared-modules/lucit_ubdcc_shared_modules/App.py b/packages/lucit-ubdcc-shared-modules/lucit_ubdcc_shared_modules/App.py index 778f9a6..448dbbc 100644 --- a/packages/lucit-ubdcc-shared-modules/lucit_ubdcc_shared_modules/App.py +++ b/packages/lucit-ubdcc-shared-modules/lucit_ubdcc_shared_modules/App.py @@ -43,7 +43,7 @@ REST_SERVER_PORT_DEV_DCN: int = 42082 REST_SERVER_PORT_DEV_MGMT: int = 42080 REST_SERVER_PORT_DEV_RESTAPI: int = 42081 -VERSION: str = "0.0.73" +VERSION: str = "0.0.74" class App: diff --git a/packages/lucit-ubdcc-shared-modules/pyproject.toml b/packages/lucit-ubdcc-shared-modules/pyproject.toml index 690f96c..ee57d4e 100644 --- a/packages/lucit-ubdcc-shared-modules/pyproject.toml +++ b/packages/lucit-ubdcc-shared-modules/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "lucit-ubdcc-shared-modules" -version = "0.0.73" +version = "0.0.74" description = "LUCIT UBDCC Shared Modules" authors = ["LUCIT Systems and Development "] license = "LSOSL - LUCIT Synergetic Open Source License" diff --git a/packages/lucit-ubdcc-shared-modules/setup.py b/packages/lucit-ubdcc-shared-modules/setup.py index ca4ec35..b253895 100644 --- a/packages/lucit-ubdcc-shared-modules/setup.py +++ b/packages/lucit-ubdcc-shared-modules/setup.py @@ -31,7 +31,7 @@ setup( name=name, - version="0.0.73", + version="0.0.74", author="LUCIT Systems and Development", author_email='info@lucit.tech', url="https://github.com/LUCIT-Systems-and-Development/unicorn-binance-depthcache-cluster",