Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Unusuall response from rtm.tasks.getList when using filter
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jabanaki Software  
View profile  
 More options Jul 5 2011, 8:26 am
From: Jabanaki Software <jaban...@gmail.com>
Date: Tue, 5 Jul 2011 05:26:38 -0700 (PDT)
Local: Tues, Jul 5 2011 8:26 am
Subject: Unusuall response from rtm.tasks.getList when using filter

I am getting an unusually response when using the rtm.tasks.getList method
with a filter. Using the same filter in the search field at
rememberthemilk.com works fine, but from the API it only returns a "rev"
attribute.

method = rtm.tasks.getList
filter = status:incomplete AND (dueBefore:today OR due:today)

response
{"stat":"ok","tasks":{"rev":"xflbjlc4y680kc0sgwo448s4s0008o"}}

All of the expected tasks are due today, (i.e. none would match the
dueBefore:today part of the filter)

However the weird thing is, after changing one of the tasks to have a have
an earlier due date (to force the dueBefore:today part of the filter match
something) the query worked as expected and returned the list of tasks.

{"stat":"ok","tasks":{"list":[{"id":" ...etc

Even weirder is that after changing the updated task back to being due today
(i.e. all tasks are now due today), the query now works and I am unable
reproduce the problem.

Steve
jabanaki.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kristian Domagala  
View profile  
 More options Jul 14 2011, 1:17 am
From: Kristian Domagala <krist...@rememberthemilk.com>
Date: Thu, 14 Jul 2011 15:17:47 +1000
Local: Thurs, Jul 14 2011 1:17 am
Subject: Re: Unusuall response from rtm.tasks.getList when using filter

Hi Steve,

A response will typically be empty if the filter doesn't match anything (which doesn't appear to be the case, given that you tried the same filter on the web interface), or if the last_sync parameter is set and no matching tasks have changed since that timestamp. Can you confirm whether or not you are setting the last_sync parameter?

The rev value represents a revision "number" that is updated whenever data that could influence the tasks.getList results is changed. It can be used to determine whether anything has changed on the server between requests. I would expect the value to be set in the second result that you received - is it possible to check if that's the case?

Cheers,
Kristian.

On 05/07/2011, at 10:26 PM, Jabanaki Software wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jabanaki Software  
View profile  
 More options Jul 16 2011, 11:17 am
From: Jabanaki Software <jaban...@gmail.com>
Date: Sat, 16 Jul 2011 08:17:26 -0700 (PDT)
Local: Sat, Jul 16 2011 11:17 am
Subject: Re: Unusuall response from rtm.tasks.getList when using filter

I'm not passing the last_sync parameter, my app is getting the full list of
tasks matching the query so I exclude the last_sync from the request.

I just checked the response I'm getting now and the "rev" attribute value is
included in the full response.

{"stat":"ok","tasks":{"rev":"1b0kij0y12kh8jwl9floja79x68ch7x","list":[{"id" :
...

I do not recall seeing it before though, the example my initial post was cut
and paste directly from the response, and didn't include the "rev" - or at
least it wasn't it wasn't before the "list" element as I truncated the
response.

I've not been able to reproduce the original issue.

Steve.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jabanaki Software  
View profile  
 More options Aug 2 2011, 1:00 pm
From: Jabanaki Software <jaban...@gmail.com>
Date: Tue, 2 Aug 2011 10:00:14 -0700 (PDT)
Local: Tues, Aug 2 2011 1:00 pm
Subject: Re: Unusuall response from rtm.tasks.getList when using filter

Just had the another, possible related with the same API query. I
experienced it while using my app so wasn't able to capture the details of
the API responses.

Using the same api call and filter adn before

method = rtm.tasks.getList
filter = status:incomplete AND (dueBefore:today OR due:today)

The results were showing two tasks, both of which had a due date prior to
today. I ran the query multiple times, every time only getting the same two
results. I then updated one of the tasks to change the due date to a future
date, and then re-ran the same getList query and this time I got more
results, three additional tasks with today's due date - these should have
been in the original query results, but were not.

I'm wondering if there is a problem where the query is only matching the
first part of the (dueBefore:today OR due:today) under some circumstances -
or is there some result caching on the RTM api server, that only gets
invalidated once a task is updated?

This seems consistent with the initial problem described above. In that case
I recall that there where no tasks matching the dueBefore:today which is
probably why the result was just an empty set of tasks, and the due:today
tasks only showed after a task was edited.

I hope this helps diagnose the underlying issue.

Steve.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »