Jira Legacy |
---|
server | System Jira |
---|
serverId | 01505d01-b853-3c2e-90f1-ee9b165564fc |
---|
key | MODKBEKBJ-255 |
---|
|
...
The status enum includes the following values :
Status Name | Description | Shema | Example |
---|
Not Started |
...
| before the first start of loading holdings |
|
Code Block |
---|
{
"status": {
"name": "Not Started",
},
"jsonapi": {
"version": "1.0"
}
} |
|
Started |
...
|
|
|
Code Block |
---|
{
"status": {
"name": "Started",
},
"attributes": {
"started": "1999-12-31 14:59:59"
},
"jsonapi": {
"version": "1.0"
}
} |
|
In Progress | the loading is in progress |
|
Code Block |
---|
{
"status": {
"name": "In Progress",
"detail" : "Populated to holdings"
},
"attributes": {
"started": "1999-12-31 14:59:59"
},
"jsonapi": {
"version": "1.0"
}
} |
Code Block |
---|
{
"status": {
"name": "In Progress",
"detail" : "Loading holdings"
},
"attributes": {
"started": "1999-12-31 14:59:59",
"totalCount": 1234
},
"jsonapi": {
"version": "1.0"
}
} |
|
Completed | loading is finished and holdings saved in a database |
|
Code Block |
---|
{
"status": {
"name": "Completed"
},
"attributes": {
"started": "1999-12-31 14:59:59",
"finished": "1999-12-31 16:30:47",
"totalCount": 1234
},
"jsonapi": {
"version": "1.0"
}
} |
|
Failed |
...
...
and saved as a class variable.
If the request returns an error from the RM API, it should be returned to the user???
...
|
|
Code Block |
---|
{
"status": {
"name": "Failed"
}
"errors": [{
"title": "Invalid APIKEY",
"detail": "Kb api credentials are invalid"
}],
"jsonapi": {
"version": "1.0"
}
} |
|
Info |
---|
2. Add retry mechanism in case something fails - at least 3 retries |
For the implementation of the retry mechanism, we can use the Circuit Breaker pattern existing for Vert.x - https://vertx.io/docs/vertx-circuit-breaker/java/
...