Monday, 2015-03-16

*** e0ne has joined #openstack-api07:34
*** e0ne has quit IRC07:39
*** cdent has joined #openstack-api09:52
*** jamie_h has joined #openstack-api10:45
*** terrylhowe has joined #openstack-api12:47
*** openstackgerrit has quit IRC12:50
*** openstackgerrit has joined #openstack-api12:50
*** fifieldt has joined #openstack-api12:51
*** kaufer has joined #openstack-api13:15
*** sigmavirus24_awa is now known as sigmavirus2414:25
*** etoews has joined #openstack-api14:41
kauferAnyone know if any projects implement a "previous" link for pagination?  I know that a "next" link is common.15:18
kauferI found a patch in nova for adding that support and it uses a "is_reverse" param to signify that the sorting should be reversed ... https://review.openstack.org/#/c/16416915:20
kauferI'd like to have a guideline doc for this, but am curious what has already been implemented for a previous link15:21
sigmavirus24kaufer: you mean the Link header or something else?15:33
sigmavirus24Link headers tend to have first, previous, next, last15:33
kaufersigmavirus: I haven't seen projects implement this in headers, in nova there is a "server_links" key and then a "next" element that has the marker formatted15:36
kaufersigmavirus24: Here's an example from keystone: http://specs.openstack.org/openstack/keystone-specs/api/v2.0/identity-api-v2.0-paginated_collections.html15:36
sigmavirus24right, that's the other way that projects do it15:37
sigmavirus24same concept though15:37
sigmavirus24(Most of the APIs I'm thinking of live outside OpenStack though)15:37
stevelleI suspect it may take experimenting to answer correct and fast. Docs may be lacking.15:38
kauferI'm just trying to understand how "previous" is determine today ... seems like the keystone example somehow magically knows the marker for the first element of the previous page (which seems odd to me)15:39
kauferI see that we have a big TODO in the pagination guideline doc: http://specs.openstack.org/openstack/api-wg/guidelines/pagination_filter_sort.html15:39
stevelleI can't recall where in OpenStack I saw it but I know some APIs do a token to denote the first element per by page15:39
stevellenot very helpful is that? :D15:40
kauferstevelle: Nope, had to guide with content like that :)15:41
kaufers/had/hard15:41
stevelleI'd recommend playing with glance in devstack (make sure to specify v2 api to glance client ) to check the behavior there.15:41
stevelleI think the docs are incomplete15:42
kauferstevelle: Ok, I'll start with glance and keystone ... I'll try and get enough of an understanding so that I can semi-intelligently fill-in the pagination guideline doc15:44
sigmavirus24kaufer: should be relatively easy to determine the previous page's marker15:44
stevellekaufer: I suspect cinder will behave a lot like glance but my memory could be faulty on that15:46
kaufersigmavirus24: How so? Unless the sort information is reversed somehow I don't see how that would be easy15:46
kauferstevelle: So nova and cinder only support "next" links15:46
kaufer"next" seems pretty common across projects15:47
*** openstackgerrit has quit IRC16:11
*** openstackgerrit has joined #openstack-api16:12
*** kaufer has quit IRC16:45
*** cdent has quit IRC16:52
*** openstackgerrit has quit IRC16:54
*** openstackgerrit has joined #openstack-api16:54
*** kaufer has joined #openstack-api16:57
*** sigmavirus24 is now known as sigmavirus24_awa17:51
*** sigmavirus24_awa is now known as sigmavirus2419:04
*** e0ne has joined #openstack-api20:39
*** e0ne has quit IRC20:49
*** sigmavirus24 is now known as sigmavirus24_awa21:00
*** jamie_h has quit IRC21:37
*** cdent has joined #openstack-api21:38
*** sigmavirus24_awa is now known as sigmavirus2421:47
*** cdent has quit IRC21:58
*** sigmavirus24 is now known as sigmavirus24_awa22:43
*** kaufer has quit IRC22:56

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!