<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Recent Posts in POST data to callback URL does match API spec and is fresher while request to API doesn&#8217;t and is stale | Unfuddle Community</title>
    <link>http://unfuddle.com/community</link>
    <description>Unfuddle Community Forums</description>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:3:403:1290</guid>
      <title>POST data to callback URL does match API spec and is fresher while request to API doesn&#8217;t and is stale posted by Jim Puls @ Tue, 04 Nov 2008 19:37:59 UTC</title>
      <link>http://www.unfuddle.com/community/forums/3/topics/403</link>
      <description>From the documentation: &quot;The data that is posted to your Callback URL is an Unfuddle Changeset object.&quot;

It is, indeed:
&lt;changeset&gt;
  (several lines removed)
  &lt;author-date type=&quot;datetime&quot;&gt;2008-11-04T19:17:42Z&lt;/author-date&gt;
  &lt;committer-date type=&quot;datetime&quot;&gt;2008-11-04T19:17:42Z&lt;/committer-date&gt;
  &lt;created-at type=&quot;datetime&quot;&gt;2008-11-04T19:17:42+00:00&lt;/created-at&gt;
  &lt;revision&gt;2295&lt;/revision&gt;
&lt;/changeset&gt;

But if I call the RESTful API at /api/v1/repositories/[id]/changesets/latest.xml, the XML I get back doesn't match the data model:
&lt;changeset&gt;
  (several lines removed)
  &lt;revision&gt;2291&lt;/revision&gt;
  &lt;author-date&gt;2008-11-04T09:27:06-08:00&lt;/author-date&gt;
  &lt;committer-date&gt;2008-11-04T09:27:06-08:00&lt;/committer-date&gt;
  &lt;created-at&gt;2008-11-04T09:27:06-08:00&lt;/created-at&gt;
&lt;/changeset&gt;

Notably, the date fields don't include type=&quot;datetime&quot; and the changeset is actually several changesets old. The former problem necessitates an ugly hack where I have to check the type of the date fields before I can use them and the latter makes my script pretty useless.

Any ideas?</description>
      <pubDate>Tue, 04 Nov 2008 19:37:59 UTC</pubDate>
      <author>Jim Puls</author>
    </item>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:3:403:1307</guid>
      <title>POST data to callback URL does match API spec and is fresher while request to API doesn&#8217;t and is stale replied by Joshua Frappier @ Fri, 07 Nov 2008 13:45:35 UTC</title>
      <link>http://www.unfuddle.com/community/forums/3/topics/403</link>
      <description>Jim,

The types listed in the API documentation (i.e. type=&quot;datetime&quot;) are for programmer reference only and are not included in responses from the API.

Regarding your comment about the /recent changeset being a few changesets behind: Occasionally, if our servers are being particularly pounded with commits, it may take a little while for our background processes to catch up.  This means that all of your callbacks will be executed, in order, but there may be a delay between the the actual commit and the callback.  We are currently to massively parallelize our background process such that this delay will be negligible.</description>
      <pubDate>Fri, 07 Nov 2008 13:45:35 UTC</pubDate>
      <author>Joshua Frappier</author>
    </item>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:3:403:1323</guid>
      <title>POST data to callback URL does match API spec and is fresher while request to API doesn&#8217;t and is stale replied by Jim Puls @ Thu, 13 Nov 2008 19:45:54 UTC</title>
      <link>http://www.unfuddle.com/community/forums/3/topics/403</link>
      <description>What I'm saying is that the type attributes are not included in responses from the API but they are included in the changeset posted to the callback URL, which totally messes up the automatic parsing in ActiveResource. Can't they at least be consistent?</description>
      <pubDate>Thu, 13 Nov 2008 19:45:54 UTC</pubDate>
      <author>Jim Puls</author>
    </item>
  </channel>
</rss>

