Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Allow filtering of active tasks by property #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rnewson
Copy link
Member

@rnewson rnewson commented Sep 11, 2015

COUCHDB-2807

@@ -122,6 +127,14 @@ handle_call({add_task, TaskProps}, {From, _}, Server) ->
[_] ->
{reply, {add_task_error, already_registered}, Server}
end;
handle_call({filter, Key, Value}, _, Server) ->
All = [
Copy link
Contributor

Choose a reason for hiding this comment

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

Use following to avoid doing the same thing in a tight loop

handle_call({filter, Key0, Value0}, _, Server) ->
Key = couch_util:to_list(Key0),
Value = couch_util:to_list(Value0),

@rnewson
Copy link
Member Author

rnewson commented Sep 12, 2015

hm, do we like this?

@kxepal
Copy link
Member

kxepal commented Sep 12, 2015

I do like idea, just didn't test yet. Btw, how it will correlate with COUCHDB-2405?

@davisp davisp deleted the 2807-filtered-tasks branch October 22, 2015 06:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants