Skip to content

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

Conversation

MihailTymoshenko
Copy link
Contributor

@MihailTymoshenko MihailTymoshenko force-pushed the delta-1534-add-delete-contexts-and-get-async-process-endpoints branch 5 times, most recently from 0198346 to 3b5e631 Compare November 25, 2021 11:02

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MatchAsyncProcessResultPTO implements AsyncProcessResultPTO

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?

Copy link
Contributor Author

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);

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.

Copy link
Contributor Author

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;

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

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))

Copy link
Contributor Author

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;

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

Copy link
Contributor Author

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));
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra space

@MihailTymoshenko MihailTymoshenko force-pushed the delta-1534-add-delete-contexts-and-get-async-process-endpoints branch from 3b5e631 to 181aff8 Compare December 1, 2021 08:13
@MihailTymoshenko MihailTymoshenko merged commit 3f67072 into master Dec 2, 2021
@MihailTymoshenko MihailTymoshenko deleted the delta-1534-add-delete-contexts-and-get-async-process-endpoints branch December 2, 2021 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants