Skip to content

Commit 9db640b

Browse files
authored
Merge pull request #70 from kbase/develop
Develop -> Master (0.3.1 release)
2 parents c01c56d + c0959f7 commit 9db640b

File tree

3 files changed

+115
-3
lines changed

3 files changed

+115
-3
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
./gradlew test
4040
4141
- name: Upload coverage to Codecov
42-
uses: codecov/codecov-action@v3
42+
uses: codecov/codecov-action@v5
4343
with:
4444
token: ${{ secrets.CODECOV_TOKEN }}
4545
fail_ci_if_error: true

RELEASE_NOTES.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
Repo for code shared between Java services.
66

7+
## VERSION: 0.3.1 (Release 4/21/25)
8+
9+
* Restored the JobState class, which was removed in version 0.1.0 is 2019. It was no longer
10+
used in this repo, but is still used in `kb_sdk` async Java clients.
11+
712
## VERSION: 0.3.0 (Release 4/24/24)
813

914
* The GetMongoDB class has been removed.
@@ -24,8 +29,8 @@ Repo for code shared between Java services.
2429

2530
## VERSION: 0.1.0 (Release 11/12/19)
2631

27-
* JsonServerServlet method dispatch to the Narrative Job Service (via *_async and *_check) methods
28-
has been removed.
32+
* JsonServerServlet method dispatch to the Narrative Job Service (via `*_async` and `*_check`)
33+
methods has been removed.
2934
* This includes removing the us.kbase.common.service.JobState class.
3035
* JsonServerServlet automatic provenance generation has been removed.
3136
* Java required version is now 1.8.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
package us.kbase.common.service;
2+
3+
import java.util.HashMap;
4+
import java.util.List;
5+
import java.util.Map;
6+
import javax.annotation.Generated;
7+
import com.fasterxml.jackson.annotation.JsonAnyGetter;
8+
import com.fasterxml.jackson.annotation.JsonAnySetter;
9+
import com.fasterxml.jackson.annotation.JsonInclude;
10+
import com.fasterxml.jackson.annotation.JsonProperty;
11+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
12+
13+
14+
// NOTE: This class is not used in this repo, but is required for kb_sdk[_plus] Java async clients.
15+
16+
/**
17+
* <p>Original spec-file type: JobState</p>
18+
* <pre>
19+
* finished - indicates whether job is done (including error cases) or not,
20+
* if the value is true then either of 'returned_data' or 'detailed_error'
21+
* should be defined;
22+
* ujs_url - url of UserAndJobState service used by job service
23+
* status - tuple returned by UserAndJobState.get_job_status method
24+
* result - keeps exact copy of what original server method puts
25+
* in result block of JSON RPC response;
26+
* error - keeps exact copy of what original server method puts
27+
* in error block of JSON RPC response.
28+
* </pre>
29+
*
30+
*/
31+
@JsonInclude(JsonInclude.Include.NON_NULL)
32+
@Generated("com.googlecode.jsonschema2pojo")
33+
@JsonPropertyOrder({
34+
"finished",
35+
"ujs_url",
36+
"status",
37+
"result",
38+
"error"
39+
})
40+
public class JobState<T> {
41+
42+
@JsonProperty("finished")
43+
private Long finished;
44+
@JsonProperty("ujs_url")
45+
private String ujsUrl;
46+
@JsonProperty("status")
47+
private List<Object> status;
48+
@JsonProperty("result")
49+
private T result;
50+
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
51+
52+
@JsonProperty("finished")
53+
public Long getFinished() {
54+
return finished;
55+
}
56+
57+
@JsonProperty("finished")
58+
public void setFinished(Long finished) {
59+
this.finished = finished;
60+
}
61+
62+
@JsonProperty("ujs_url")
63+
public String getUjsUrl() {
64+
return ujsUrl;
65+
}
66+
67+
@JsonProperty("ujs_url")
68+
public void setUjsUrl(String ujsUrl) {
69+
this.ujsUrl = ujsUrl;
70+
}
71+
72+
@JsonProperty("status")
73+
public List<Object> getStatus() {
74+
return status;
75+
}
76+
77+
@JsonProperty("status")
78+
public void setStatus(List<Object> status) {
79+
this.status = status;
80+
}
81+
82+
@JsonProperty("result")
83+
public T getResult() {
84+
return result;
85+
}
86+
87+
@JsonProperty("result")
88+
public void setResult(T result) {
89+
this.result = result;
90+
}
91+
92+
@JsonAnyGetter
93+
public Map<String, Object> getAdditionalProperties() {
94+
return this.additionalProperties;
95+
}
96+
97+
@JsonAnySetter
98+
public void setAdditionalProperties(String name, Object value) {
99+
this.additionalProperties.put(name, value);
100+
}
101+
102+
@Override
103+
public String toString() {
104+
return ((((((((((("JobState"+" [finished=")+ finished)+", ujsUrl=")+ ujsUrl)+", status=")+ status)+", result=")+ result)+", additionalProperties=")+ additionalProperties)+"]");
105+
}
106+
}
107+

0 commit comments

Comments
 (0)