[aerogear-dev] Paging Tests

Daniel Bevenius daniel.bevenius at gmail.com
Tue Apr 2 08:29:58 EDT 2013


Ah, I spoke to soon about always getting a next link. The 'next' link is
not present if there is no more data to be found, but if there is no data
at all, there is a bug with the web linking implementation where the Link
header is populated. I'll look into this when I work on [1] that you
created. Sorry about the confusion.

[1] https://issues.jboss.org/browse/AEROGEAR-1068


On 1 April 2013 13:33, Kris Borchers <kris at redhat.com> wrote:

> Thanks for taking a look Dan!
>
> On Apr 1, 2013, at 1:55 AM, Daniel Bevenius <daniel.bevenius at gmail.com>
> wrote:
>
> Hey Kris,
>
> Just checked it now and ran the JS integration tests[1] and it's working.
> Perhaps the instance was "sleeping" due to inactivity and was starting up
> when you made the calls. Can you try again and verify that it is working
> now?
>
>
> It is working now so you are correct it must have been "sleeping". Thanks!
>
>
> About the next link, you will always get a next link with the current
> impl. Previously we did not send a next link if there was no more data to
> be retrieved, but I think you brought up the case where new data might be
> added after the client's latest call. Without the next link the client will
> not have knowledge of the next page link. Instead, the result of call to
> the next page when no data exists will return an empty array.
> Bug or no bug, let me know what you would like to see here and we'll make
> it so :)
>
>
> Hmmm. I think I do remember that conversation but don't remember being in
> favor of a next link when there was no data (but I could definitely be
> wrong :-P). It just makes it really hard to create an effective UI when you
> have broken (or empty result set) links.
>
>
> [1]
> http://aerogear.github.com/aerogear-js-integration/unit/pipeline/paging.html
>
>
> Den måndagen den 1:e april 2013 skrev Kris Borchers:
>
>> Hey all,
>>
>> Anyone know why I get a 404 from corscontroller-aerogear.rhcloud.com? JS
>> is using that for paging integration tests but now it fails.
>>
>> Also, I believe I may have found a bug in paging but not sure where I can
>> test since that app is down. It appears I get a "next" link even where
>> there isn't a next page so makes it hard to test if I should display a
>> "next" link in the UI.
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>  _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130402/aa926b0b/attachment.html 


More information about the aerogear-dev mailing list