the gist says header ( AG-BLAH...)<div><br></div><div>so, if it&#39;s param name...., a setter for the theader name is missing ;-)</div><div><br></div><div>-Matthias<span></span><br><br>On Wednesday, January 16, 2013, Kris Borchers  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On Jan 16, 2013, at 11:17 AM, Matthias Wessendorf &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;matzew@apache.org&#39;)">matzew@apache.org</a>&gt; wrote:<br>
<br>
&gt; Kris,<br>
&gt;<br>
&gt; our server uses these param names, as default, for the actual query<br>
&gt; string, on the URL<br>
&gt; *limit<br>
&gt; *offset<br>
&gt; *where<br>
&gt;<br>
&gt; looking at your gist (<a href="https://gist.github.com/4531575" target="_blank">https://gist.github.com/4531575</a>), I don&#39;t see a<br>
&gt; config to override the actual value of the above param names (e.g. to<br>
&gt; use page, perPage etc).<br>
&gt;<br>
&gt; The &#39;&#39;offset&quot; argument is more to define the actual header information<br>
&gt; (the name, where to look on the response), right ?<br>
<br>
Yes, exactly. The &quot;offset&quot; arg is where you could rename it as &quot;page&quot; and the &quot;offsetVal&quot; is where you give it a default value.<br>
<br>
&gt;<br>
&gt; -M<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jan 16, 2013 at 4:24 PM, Kris Borchers &lt;<a>kris@redhat.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Jan 16, 2013, at 8:57 AM, Matthias Wessendorf &lt;<a>matzew@apache.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Follow-up question,<br>
&gt;&gt;<br>
&gt;&gt; in the previous gist, we have:<br>
&gt;&gt;<br>
&gt;&gt; var pagedPipe = AeroGear.Pipeline({<br>
&gt;&gt;    name: &quot;cars&quot;,<br>
&gt;&gt;    settings: {<br>
&gt;&gt;        paged: &quot;headers&quot;<br>
&gt;&gt;    }<br>
&gt;&gt; }).pipes.cars;<br>
&gt;&gt;<br>
&gt;&gt; so.. here you would basically &quot;bloat&quot; the settings with values like: &quot;next&quot;, &quot;first&quot;, &quot;paged&quot;, &quot;limit&quot;, &quot;offset&quot; etc - right ?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Actually, no. I&#39;m thinking there would be a config in settings in addition to the paged setting. I want to keep that out of the config so it&#39;s easier to set that to false without the need to redo the whole config. The page config will actually have a number of items to keep the impl flexible. So there will be both a setting for what the &quot;next&quot; header or content metadata var is called and same for the others.<br>

&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I am currently thinking if we should do (at least on the iOS side of things) the same... that would mean... there is no longer an AGFilterConfig thing.....<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; -Matthias<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Jan 16, 2013 at 3:32 PM, Matthias Wessendorf &lt;<a>matzew@apache.org</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; on the IRC I asked this:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; MW: <a href="https://gist.github.com/4539188" target="_blank">https://gist.github.com/4539188</a> - when creating a pipe, with the &#39;paged&#39; settings - I could apply the offset/limit there too, or &quot;just&quot; via updatePageConfig() invocation ?<br>

&gt;&gt;&gt;<br>
&gt;&gt;&gt; KB: the point of that gist was to sort out the differences in read() between the libs so i left it out.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; MW: thanks<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; -M<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Wed, Jan 16, 2013 at 3:21 PM, Matthias Wessendorf &lt;<a>matzew@apache.org</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Wed, Jan 16, 2013 at 3:01 PM, Kris Borchers &lt;<a>kris@redhat.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; On Jan 16, 2013, at 7:58 AM, Bruno Oliveira &lt;<a>bruno@abstractj.org</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; If the data doesn&#39;t exist HTTP 204 is a good fit. Just don&#39;t understand why we need to interrupt the app workflow, because the data doesn&#39;t exist.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I would prefer that an exception is thrown client side before a request is ever sent to the server. That way we save the http request which is important on mobile.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Ah! yeah - good point -&gt; since the &quot;paging API&quot; knows there is no &quot;next&quot; (for instance)<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; That being said, then the issue becomes what if that page does exist but we don&#39;t allow the request because the data was updated since our last read? Then we wouldn&#39;t know without another read happening.<br>

&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; yeah - here could the 2.x targeted feature of &#39;sync&#39; come in...<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Hmmm, interested in other opinions since relying on a 204 or any status from the server couples the client to the server impl but if we don&#39;t allow the request, that could also cause issues.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; true :)<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt;&gt; &quot;The measure of a man is what he does with power&quot; - Plato<br>
&gt;&gt;&gt;&gt;&gt; -<br>
&gt;&gt;&gt;&gt;&gt; @abstractj<br>
&gt;&gt;&gt;&gt;&gt; -<br>
&gt;&gt;&gt;&gt;&gt; Volenti Nihil Difficile<br>
</blockquote></div><br><br>-- <br>Sent from Gmail Mobile<br>