diff --git a/.github/workflows/synkronus-docker.yml b/.github/workflows/synkronus-docker.yml index f23bdfa03..d46cdd9a7 100644 --- a/.github/workflows/synkronus-docker.yml +++ b/.github/workflows/synkronus-docker.yml @@ -26,8 +26,10 @@ on: env: REGISTRY: ghcr.io - # OCI/GHCR image names must be lowercase; repository_owner can be mixed-case. - IMAGE_NAME: ${{ format('{0}/synkronus', lower(github.repository_owner)) }} + # OCI/GHCR image names must be lowercase. GitHub Actions expressions have no + # `lower()` function, so we hardcode the owner segment rather than deriving + # it from ${{ github.repository_owner }} (which is mixed-case "OpenDataEnsemble"). + IMAGE_NAME: opendataensemble/synkronus # Run JS-based actions on Node 24 until they ship Node 24-native runners (see GitHub changelog). FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true diff --git a/synkronus-portal/src/services/api.ts b/synkronus-portal/src/services/api.ts index bd051d1e0..2e1d278f7 100644 --- a/synkronus-portal/src/services/api.ts +++ b/synkronus-portal/src/services/api.ts @@ -175,7 +175,7 @@ export const api = { async getVersion(): Promise { try { - const res = await defaultApi.getVersion(); + const res = await defaultApi.getVersion({ xOdeVersion: ODE_VERSION }); return res.data as VersionInfo; } catch (error) { throw toApiError(error, { redirectOnUnauthorized: false }); @@ -380,21 +380,24 @@ export const api = { async downloadBlob(endpoint: string): Promise { try { if (endpoint === '/dataexport/parquet') { - const res = await dataExportApi.getParquetExportZip({ - responseType: 'blob', - }); + const res = await dataExportApi.getParquetExportZip( + { xOdeVersion: ODE_VERSION }, + { responseType: 'blob' }, + ); return res.data as unknown as Blob; } if (endpoint === '/dataexport/raw-json') { - const res = await dataExportApi.getRawJsonExportZip({ - responseType: 'blob', - }); + const res = await dataExportApi.getRawJsonExportZip( + { xOdeVersion: ODE_VERSION }, + { responseType: 'blob' }, + ); return res.data as unknown as Blob; } if (endpoint === '/attachments/export-zip') { - const res = await attachmentsApi.getAttachmentsExportZip({ - responseType: 'blob', - }); + const res = await attachmentsApi.getAttachmentsExportZip( + { xOdeVersion: ODE_VERSION }, + { responseType: 'blob' }, + ); return res.data as unknown as Blob; } } catch (error) {