Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/synkronus-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
23 changes: 13 additions & 10 deletions synkronus-portal/src/services/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const api = {

async getVersion(): Promise<VersionInfo> {
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 });
Expand Down Expand Up @@ -380,21 +380,24 @@ export const api = {
async downloadBlob(endpoint: string): Promise<Blob> {
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) {
Expand Down
Loading