Skip to content
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

Expose Response on GetTaskResponse #3966

Merged
merged 3 commits into from
Aug 7, 2019
Merged

Expose Response on GetTaskResponse #3966

merged 3 commits into from
Aug 7, 2019

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Jul 22, 2019

This commit exposes Response on GetTaskResponse. Response is the response object for the action performed by the Task, so will vary by action. For this reason, expose Response as an internal LazyDocument, with a method to retrieve a TResponse from the deserialized LazyDocument bytes.

Closes #3963

This commit exposes Response on GetTaskResponse. Response is the response object for the action performed by the Task, so will vary by action. For this reason, expose Response as an internal LazyDocument, with a method to retrieve a TResponse from the deserialized LazyDocument bytes.

Closes #3963
Copy link
Contributor

@codebrain codebrain left a comment

Choose a reason for hiding this comment

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

LGTM aside from documentation

This commit updates the GetResponse<T>() impl on GetTaskResponse to use the RequestResponseDeserializer when deserializing the LazyDocument. This is exposed as an internal method only.
Remove LazyDocument ctor overloads that are superfluous.
@russcam russcam merged commit ba5b1b1 into master Aug 7, 2019
russcam added a commit that referenced this pull request Aug 7, 2019
* Expose Response on GetTaskResponse

This commit exposes Response on GetTaskResponse. Response is the response object for the action performed by the Task, so will vary by action. For this reason, expose Response as an internal LazyDocument, with a method to retrieve a TResponse from the deserialized LazyDocument bytes.

* Deserialize response with RequestResponseSerializer

This commit updates the GetResponse<T>() impl on GetTaskResponse to use the RequestResponseDeserializer when deserializing the LazyDocument. This is exposed as an internal method only.
Remove LazyDocument ctor overloads that are superfluous.

Closes #3963

(cherry picked from commit ba5b1b1)
@russcam
Copy link
Contributor Author

russcam commented Aug 7, 2019

ported to 7.x in cc5efc4

@russcam russcam deleted the feature/3963 branch August 7, 2019 21:07
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.

GetTaskResponse does not expose Failures for reindex task
3 participants