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

Add progress infos to TaskInfo #32

Merged
merged 2 commits into from
Aug 21, 2014
Merged

Add progress infos to TaskInfo #32

merged 2 commits into from
Aug 21, 2014

Conversation

phacops
Copy link
Contributor

@phacops phacops commented Aug 19, 2014

When querying for task's infos through the REST api, we get back a percent and msg fields when progress has been set.

The TaskInfo struct didn't reflect this, so I added them. The only issue with this is when there's no progress set, percent will be 0 and msg an empty string by default instead of not being included in the response like in the REST api.

Edit: fixed the issue about optional percent and msg fields with phacops@f437c5a.

@Stephenitis
Copy link

@treeder

treeder added a commit that referenced this pull request Aug 21, 2014
@treeder treeder merged commit 260fbb1 into iron-io:master Aug 21, 2014
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.

3 participants