-
Notifications
You must be signed in to change notification settings - Fork 10
feat: add deleteContextsAsync and getAsyncProcess endpoints (delta-1534) #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add deleteContextsAsync and getAsyncProcess endpoints (delta-1534) #69
Conversation
0198346
to
3b5e631
Compare
|
||
@Data | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class MatchAsyncProcessResultPTO implements AsyncProcessResultPTO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where do we use this object?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in deserialising of response
@GET | ||
@Path("/projects/{projectId}/match/{matchId}") | ||
@Deprecated | ||
MatchStatusPTO matchAsyncStatus(@PathParam("projectId") String projectId, @PathParam("matchId") String matchId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discussed with Mikhail how to get rid of this method and replace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
private String createdDate; | ||
private String modifiedDate; | ||
@JsonDeserialize(contentAs = MatchAsyncProcessResultPTO.class) | ||
private AsyncProcessResultPTO result; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to use Optional
for this and errorMessage
fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case if we use Optional
for other endpoints))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional is not used in our endpoints and whole sdk
public class AsyncProcessPTO implements ResponseData | ||
{ | ||
private String processUid; | ||
private AsyncProcessState state; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed these parameters to processState
and processType
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
assertTrue(request.getPath().contains("/projects/" + PROJECT_UID + "/match/" + MATCH_ID)); | ||
} | ||
assertTrue(request.getPath().contains("/projects/" + PROJECT_UID + "/processes/" + PROCESS_UID)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space
3b5e631
to
181aff8
Compare
JIRA Ticket