Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit ff57965

Browse files
authored
Merge pull request #149 from CCI-Tools/forman-xxx-xcube_integr_3
Adapted to changed cate-hub API
2 parents 6c9e795 + 0a7a7e2 commit ff57965

File tree

7 files changed

+14
-10
lines changed

7 files changed

+14
-10
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
* We now obtain Cate Hub's status information from a dedicated GitHub
1212
repository [cate-status](https://github.com/CCI-Tools/cate-status).
1313

14+
* Adapted to changed cate-hub API. (An API response no longer has
15+
`status` and `result` properties, instead a response _is_ the result
16+
and the response status is represented by the HTTP response code.)
17+
18+
1419
### Changes 2.2.3
1520

1621
* Fixed a problem that prevented using Matomo Analytics service.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM node:stretch-slim as build-deps
22

33
LABEL maintainer="helge.dzierzon@brockmann-consult.de"
44
LABEL name="Cate App"
5-
LABEL version="2.3.0-dev.1"
5+
LABEL version="2.3.0-dev.2"
66

77
RUN apt-get -y update && apt-get install -y git apt-utils wget vim
88

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 2.3.0-dev.1-{build}
1+
version: 2.3.0-dev.2-{build}
22
image: Ubuntu
33
stack: node 12
44
install:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cate-app",
3-
"version": "2.3.0-dev.1",
3+
"version": "2.3.0-dev.2",
44
"private": true,
55
"dependencies": {
66
"@blueprintjs/core": "^3.30.1",

src/renderer/webapi/apis/ServiceProvisionAPI.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ interface CountResult {
3434
running_pods: number;
3535
}
3636

37+
/**
38+
* Represents the cate-hub API.
39+
*/
3740
export class ServiceProvisionAPI {
3841

3942
/**
@@ -81,11 +84,7 @@ export class ServiceProvisionAPI {
8184
if (!response.ok) {
8285
throw HttpError.fromResponse(response);
8386
}
84-
const jsonObject = await response.json();
85-
if (jsonObject.status !== 'ok') {
86-
throw new Error(jsonObject.message);
87-
}
88-
return jsonObject.result as T;
87+
return response.json();
8988
}
9089
}
9190

src/serviceWorker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// "./service-worker.js" file changes). Therefore we use a version number here,
1515
// so we can force updates.
1616
//
17-
const CATE_PWA_VERSION = "2.3.0-dev.1";
17+
const CATE_PWA_VERSION = "2.3.0-dev.2";
1818

1919
console.debug(`Cate PWA version ${CATE_PWA_VERSION}`);
2020

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// 1. with the version field in "../package.json".
33
// 2. with CATE_PWA_VERSION in "./serviceWorker.ts"
44
//
5-
export const CATE_APP_VERSION = "2.3.0-dev.1";
5+
export const CATE_APP_VERSION = "2.3.0-dev.2";

0 commit comments

Comments
 (0)