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 get_task_status method to Algolia::Index class. #198

Merged
merged 3 commits into from
Mar 17, 2017

Conversation

srodman7689
Copy link

After looking through the source of this library I realized that there wasn't a way to just check the status of a task instead of waiting for a task to finish. So I decided to create a pull request in the hopes that you guys would merge it and add this functionality. I could really use it.

…can get the status of a task without having to wait for it to finish.
@coveralls
Copy link

coveralls commented Mar 16, 2017

Coverage Status

Coverage decreased (-60.5%) to 32.764% when pulling 19f1733 on srodman7689:master into afe1c09 on algolia:master.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-60.5%) to 32.764% when pulling 19f1733 on srodman7689:master into afe1c09 on algolia:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-60.5%) to 32.764% when pulling 19f1733 on srodman7689:master into afe1c09 on algolia:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-60.5%) to 32.764% when pulling 19f1733 on srodman7689:master into afe1c09 on algolia:master.

@srodman7689
Copy link
Author

I have created an issue in case you guys don't want to go this way with adding the functionality to get a tasks status here #199

@redox
Copy link

redox commented Mar 17, 2017

After looking through the source of this library I realized that there wasn't a way to just check the status of a task instead of waiting for a task to finish. So I decided to create a pull request in the hopes that you guys would merge it and add this functionality. I could really use it.

Awesome @srodman7689 👍 Thank you so much for contributing!

@@ -693,7 +693,7 @@ def wait_global_key_missing(key)

it 'Check attributes get_task_status' do
task = @index.add_object!({ :name => "John Doe", :email => "john@doe.org" }, "1")
status = @index.get_task_status(task["taskID"])
status = @index.get_task_status(task["objectID"])
Copy link

Choose a reason for hiding this comment

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

This was actually correct, we what to get the status of the taskID not the objectID.

…Check attributes get_task_status test."

This reverts commit 19f1733.
@redox
Copy link

redox commented Mar 17, 2017

Travis will fail because of the encrypted API keys we're using. I've run it locally 👍

@redox redox merged commit 5062d7b into algolia:master Mar 17, 2017
@coveralls
Copy link

coveralls commented Mar 17, 2017

Coverage Status

Coverage decreased (-60.5%) to 32.764% when pulling d35ccb2 on srodman7689:master into afe1c09 on algolia:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-60.5%) to 32.764% when pulling d35ccb2 on srodman7689:master into afe1c09 on algolia:master.

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.

4 participants