-
Notifications
You must be signed in to change notification settings - Fork 29
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
ListTasks filter: query language rough draft #92
Conversation
This comment has a decent collection of query languages seen around the web: |
An alternative would be to drop the query language and provide individual fields in the ListTasks message: State state_filter = 6;
map<string,string> tag_filters = 7;
string created_after = 8;
string created_before = 9; Or something like that. I'm not sure how this translates to a |
Its not clear to me how either of these would be encoded in the URL for HTTP requests. Please provide some clarification in the spec. |
We should document the order that the tasks are expected to be returned from this endpoint. I suggest that ListTasks always returns the tasks in the order that they were created (descending order). This would depend on #90. |
I started working on a more complete definition of the schema started in #92 (comment)
But, I've hit a roadblock.
Honestly, I'm not in love with any of those options. |
We've also discussed recently that having control over sort order would be very useful, e.g. order tasks by creation time ascending or descending. |
UPDATE: |
We're experimenting with filtering in Funnel, because we needed to start writing code to see our way through this issue. This is the That's working well I'd say. I think we can easily add a filter for creation_time and wrap this up if people agree with the approach. As @adamstruck mentioned, a tag filter is serialized into URL params such as For simplicity, we require an exact match of key and value, i.e. you can't match on only the tag while ignoring the value, and vice versa. |
closed in favor of the cleaned up version in #104 |
Here's a rough draft of a ListTasks filter query language. This is not complete. I'm not even sure this is a good idea, mainly I'm providing a starting point for discussion.
Pros:
Cons: