Monday, 2016-09-05

*** fay has joined #storyboard07:02
*** fay is now known as faybrocklebank07:03
*** matthewbodkin has joined #storyboard07:49
*** openstackgerrit has quit IRC08:18
*** openstackgerrit has joined #storyboard08:19
*** openstackgerrit has quit IRC09:04
*** openstackgerrit has joined #storyboard09:04
*** bethwhite_ has joined #storyboard09:08
Zaramooooorniiiiiiing storyboooooard09:32
SotKmorning!09:36
openstackgerritMerged openstack-infra/python-storyboardclient: Add basic docs for python client  https://review.openstack.org/36287810:06
openstackgerritMerged openstack-infra/python-storyboardclient: Add due_dates  https://review.openstack.org/34599510:06
Zaraah, now I can add docs to index pg10:07
pedroalvarezoh, sidebar moved to the left in small screens10:09
pedroalvarezah, no10:10
pedroalvareznot double scroll bars, nice matthewbodkin :)10:11
matthewbodkingood :)10:11
openstackgerritAndreas Jaeger proposed openstack-infra/python-storyboardclient: It's 2016  https://review.openstack.org/36555810:20
openstackgerritMerged openstack-infra/storyboard: Send notifications to subscribers for worklists  https://review.openstack.org/35473010:25
openstackgerritMerged openstack-infra/python-storyboardclient: It's 2016  https://review.openstack.org/36555810:30
*** alexismonville has joined #storyboard10:52
*** alexismonville has quit IRC10:57
*** matthewbodkin has quit IRC11:30
openstackgerritMerged openstack-infra/storyboard-webclient: Make sidebar submenu the same length as sidebar  https://review.openstack.org/35555412:14
SotKZara: can https://review.openstack.org/#/c/302912/ be abandoned at this point?12:17
Zaraoh, hah, sure12:18
Zarathought it was already abandoned12:18
*** matthewbodkin has joined #storyboard12:27
*** matthewbodkin has quit IRC13:02
*** matthewbodkin has joined #storyboard13:40
ZaraSotK: what was the exact command that worked for you with storyboard-dev on fri? I want to compare and contrast...13:47
Zarahuh. http://paste.openstack.org/show/566867/14:01
Zara(I'm printing out 'info' there)14:01
Zaraso for dev, it's getting a list of every story when I ask to create a new one14:02
Zarafor my own test instance, it's just getting the story I'm creating.14:03
Zaraso the error's coming up because the code is calling a method that isn't meant for lists... but it shouldn't be getting that list there to begin with.14:03
Zaraseems like the baseobject's getting different values for its params.14:11
Zarasince it's saying there's nothing for self or for manager for dev, but it gets sensible things for my test instance.14:13
SotKZara: iirc something like `storyboard.stories.create(title="test story")`14:15
SotKI don't have the actual script to hand atm14:15
Zarabah, that's exactly what I'm doing.14:15
ZaraI suspect there's some difference in my base.py or similar14:15
Zarabut it's weird that it works for my test instance14:16
SotKI'd modified things to allow a `verify` kwarg to be passed to Client, but that should have had the same effect as just changing the default to False14:17
Zarayeah, I just changed it to False in mine, and that worked for GETs.14:17
Zarafor this bit in BaseObject:14:18
Zara    def __init__(self, manager, info, loaded=False, parent_id=None):14:18
ZaraI tried printing each param14:18
Zaraand yeah, self and manager aren't there for dev, and info is different.14:19
* Zara tries with dodgy token to see what happens14:21
Zara401 as expected, but no token gives me the same error14:22
Zaramaking me think it's not trying to auth for dev14:22
SotKwhat is the error when you have a good token again?14:23
Zarahttp://paste.openstack.org/show/566872/14:26
ZaraI think it's skipping it.14:27
Zaraso I'm wondering if it interprets verify=False too broadly somehow.14:28
SotKtry printing out the value of "info" before the loop on line 192 of storyboardclient/base.py to see what its actually trying to iterate over14:32
Zarathat's what I pasted above, which is why I think it's skipping the auth14:33
Zarasince it's trying to iterate over a list of all the stories in storyboard-dev14:33
Zarawhich matches what would be found at the public endpoint14:34
SotKoh I missed that, sorry14:34
Zaranp, it was a big paste and not at all obvious unless you were the one doing the pasting xD14:34
* SotK missed the paste entirely :)14:35
Zarahaha14:35
SotKif it was skipping the auth then you should get a 401 instead when trying to POST14:35
Zarayeah, I get the same error when I just leave out the access token and try to POST, though14:36
ZaraI only see the 401 when I give it a dodgy token14:36
Zarahttp://paste.openstack.org/show/566875/14:37
Zaraso there, I'm not giving it a token when I should be14:37
Zara(the rubbishy commandline thing expects a token right after the api url)14:38
* SotK plays around14:38
ZaraI have also checked with scripts in case it was my cli but it seems consistent14:38
*** alexismonville has joined #storyboard14:39
SotKhmm, I get a 500 error without a token set (which is expected since that part of the api is a bit broken14:41
SotK)14:41
SotKsame with a bad token14:43
SotKwhich is odd14:43
SotKif you see a 401 in that case14:44
SotKit works if I set the right token though14:47
SotKhttps://storyboard-dev.openstack.org/?#!/story/3714:47
SotK(from a different machine to the one I was using on Friday)14:47
Zarahah, my token just expired for added excitement14:51
Zaraand seems to have completely vanished, hm.14:51
Zaragoing through all the things in base.py to see if I can narrow it down... my client request seems sensible.14:52
SotKits definitely actually making a POST request right? xD14:52
Zaralooks like!14:54
ZaraWhat would you like this lovely python client to do today?storyboard.stories.create(title="cats")14:54
Zara<storyboardclient.base.BaseHTTPClient object at 0x7f6d7e3bded0> <storyboardclient.v1.client.Client object at 0x7f6d7e9cf5d0> POST /stories14:54
Zaraprinting out (self, client, method, url)14:54
Zarafrom client_request in base.py14:54
Zaratoken and endpoint also look sensible.14:54
SotKhow bizarre14:54
Zarathough hm, in build_url it's reporting the method as 'None'14:56
ZaraI wonder if I have old code in that bit14:56
Zarabuuuut that's the same for my test instance, so I don't think it's that.14:58
SotKyeah, I don't think that should cause a problem15:04
* SotK reproduces the issue15:05
SotKtry using `https://storyboard-dev.openstack.org/api/v1` as your api_url instead of `http://storyboard-dev.openstack.org/api/v1` :P15:06
ZaraI was able to create a story: https://storyboard-dev.openstack.org/#!/story/3815:09
SotK\o/15:11
openstackgerritZara proposed openstack-infra/python-storyboardclient: Note importance of using https url instead of http  https://review.openstack.org/36570415:18
Zara:P15:18
*** sparkycollier_ has joined #storyboard15:47
*** dabukalam_ has joined #storyboard15:47
*** sparkycollier has quit IRC15:48
*** dabukalam has quit IRC15:49
*** tlbr has quit IRC15:49
*** fungi has quit IRC15:49
*** sparkycollier_ is now known as sparkycollier15:49
*** fungi has joined #storyboard15:51
*** tlbr has joined #storyboard15:51
*** ttx has quit IRC16:29
*** ttx has joined #storyboard16:29
*** matthewbodkin has quit IRC17:01
*** faybrocklebank has quit IRC17:03
*** openstackgerrit has quit IRC18:03
*** openstackgerrit has joined #storyboard18:04
*** alexismonville has quit IRC19:22
*** sparkycollier has quit IRC20:10
*** jtomasek has quit IRC20:10
*** jamesmcarthur has quit IRC20:10
*** sparkycollier has joined #storyboard20:11
*** jamesmcarthur has joined #storyboard20:11
*** jtomasek has joined #storyboard20:12
*** alexismonville has joined #storyboard23:21

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