From 68b472dac1e70dff421cc4da9fab8ec67a056d16 Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Mon, 23 Sep 2024 14:28:50 +0200 Subject: [PATCH 1/3] fix: provide fallback api version [LIBS-683] --- adapter/src/components/ServerVersionProvider.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adapter/src/components/ServerVersionProvider.js b/adapter/src/components/ServerVersionProvider.js index 4429f4c5..e8229004 100644 --- a/adapter/src/components/ServerVersionProvider.js +++ b/adapter/src/components/ServerVersionProvider.js @@ -113,7 +113,9 @@ export const ServerVersionProvider = ({ setSystemInfoState({ loading: false, error: undefined, - systemInfo: { version: loginConfig.apiVersion }, + systemInfo: { + version: loginConfig.apiVersion ?? '2.41', + }, }) }) .catch((e) => { From 4e4b72c01826d655c5de3e70a7ac2f9b4853ac78 Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Mon, 23 Sep 2024 14:32:40 +0200 Subject: [PATCH 2/3] fix: update upload-artifiact for CI --- .github/workflows/dhis2-verify-lib.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dhis2-verify-lib.yml b/.github/workflows/dhis2-verify-lib.yml index e7f8a08b..a21f3eaf 100644 --- a/.github/workflows/dhis2-verify-lib.yml +++ b/.github/workflows/dhis2-verify-lib.yml @@ -29,7 +29,7 @@ jobs: - name: Build run: yarn build - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: lib-build path: | From 6bcc1644b49ac30738a6d3628f4e168721f9e04a Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Mon, 23 Sep 2024 14:53:10 +0200 Subject: [PATCH 3/3] fix: update download artifact --- .github/workflows/dhis2-verify-lib.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dhis2-verify-lib.yml b/.github/workflows/dhis2-verify-lib.yml index a21f3eaf..5cd4020e 100644 --- a/.github/workflows/dhis2-verify-lib.yml +++ b/.github/workflows/dhis2-verify-lib.yml @@ -61,7 +61,7 @@ jobs: with: node-version: 14.x - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4 with: name: lib-build @@ -83,7 +83,7 @@ jobs: with: node-version: 14.x - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4 with: name: lib-build