Tuesday, 2016-06-14

*** anteaya has quit IRC00:09
*** anteaya has joined #storyboard00:10
*** betherly has quit IRC00:28
*** betherly has joined #storyboard00:29
*** SotK has quit IRC00:31
*** SotK has joined #storyboard00:31
*** jamesmcarthur has joined #storyboard00:40
*** jamesmcarthur has quit IRC00:44
anteayaokay so right now I am playing with the api to see if I can get it to PUT or POST anything01:26
anteayawhen folks are awake once more if I can get an example of how to post a new story I would be grateful01:26
anteayahttp://docs.openstack.org/infra/storyboard/webapi/v1.html#post--v1-stories01:26
anteayathus far `curl --insecure -i https://storyboard-dev.openstack.org/api/v1/stories -X POST` gets me a 500 error01:27
anteayaI'm not sure how the story bit I should be including in the command should be formatted01:27
anteayaalso I noticed a mistake in the api docs: http://docs.openstack.org/infra/storyboard/webapi/v1.html#get--v1-stories--story_id--tasks-%28story_id%2901:39
anteayait should be /v1/stories/<story_id>/tasks/(task_id)01:39
anteayahowever I have tried to find where this line comes from, either typed or generated and I am unable01:40
anteayait seems silly for me to have to file a bug for something I consider a trivial fix01:41
anteayabut I don't know how to fix this01:41
*** openstackgerrit has quit IRC03:11
*** openstackgerrit has joined #storyboard03:11
*** mrmartin has joined #storyboard04:58
*** mrmartin has quit IRC05:24
*** mrmartin has joined #storyboard06:42
*** openstackgerrit has quit IRC06:48
*** openstackgerrit has joined #storyboard06:48
*** mrmartin has quit IRC06:59
*** mrmartin has joined #storyboard07:12
SotKanteaya: weird, I get 401 errors as expected when running that command against my local test instance07:33
SotKbut a 500 error when running it against storyboard-dev07:33
SotKI'll look at the logs in a little while07:44
SotKanteaya: that docs mistake happens everywhere that there is a nested resource like that, I've yet to work out what I need to fix to fix it07:46
SotKI suspect its the generator itself07:46
SotKdmsimard: I should be able to get the first patch for timelines (the one that makes them much nicer looking, not the one that removes pagination) ready for actual review today07:47
SotKafter that it shouldn't take too long to get merged07:47
*** bethwhite has joined #storyboard08:09
*** mrmartin has quit IRC12:49
Zarahttps://www.youtube.com/watch?v=0gcz-wPLz_Y12:59
Zaraoh no I mean, good afternoon storyboard12:59
*** mrmartin has joined #storyboard13:16
dmsimardSotK: cool, looking forward to it.13:41
openstackgerritMerged openstack-infra/storyboard-webclient: Allow the Subscribe directive to work without a list of subscriptions  https://review.openstack.org/32454913:47
*** mrmartin has quit IRC13:52
*** mrmartin has joined #storyboard13:54
*** mrmartin has quit IRC14:06
SotKopenstackgerrit missed my patches again :(14:31
SotKhttps://review.openstack.org/329478 and https://review.openstack.org/327231 await reviews14:31
Zaraohh, thanks14:31
Zaraooh, double-nice, no longer wip!14:32
*** jamesmcarthur has joined #storyboard14:35
* persia fails at spelling: "dialog" != "dialogue"14:46
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Support subscription to worklists in the API  https://review.openstack.org/32449314:53
*** jamesmcarthur has quit IRC15:01
*** jamesmcarthur has joined #storyboard15:03
persiaLooking through old patches: whatever happened to https://review.openstack.org/307712 ?  Did that just not ever get testing?  Needs a rebase now, but15:07
SotKit was never tested with large worklists15:08
persiaAh15:15
Zaraafk for a bit, be back eventually15:18
anteayaSotK: thanks15:24
anteayaSotK: what do I have to give it to address the one actual 401 error I got?15:25
anteayaSotK: is there an example of a correctly formed command?15:25
SotKerm, I don't think there is, no15:26
anteayahmmm, okay are you able to get past the 401 error yourself and edit via the api?15:27
anteayaare you able to paste me an example of a command that is effective?15:27
SotKnot right now (on my phone on a tram)15:32
*** faybrocklebank has quit IRC15:33
SotKiirc you need to set the Authorization header to "Bearer $TOKEN" where $TOKEN is an active access token related to your user15:33
*** jtomasek_ has joined #storyboard15:34
SotKyou can create and see them in the profile section submenu (can't remember the link)15:34
anteayaoh my15:34
anteayaokay well sometime when you aren't on your phone on a tram15:34
pedroalvareztokens are in here: https://storyboard.openstack.org/#!/profile/tokens15:35
anteayaI would need an actual example to follow, since right now I don't know what this should look like15:35
anteayapedroalvarez: thank you15:35
pedroalvareztrue..15:36
anteayanow I realize me starting my day when you are ending yours is not ideal to getting my quesitons answered15:37
anteayaand I think I have my local gerrit configured so that it is working15:37
anteayaso I should switch my schedule and work to spend more of my time online when you are working15:37
anteayaI'll work on that15:37
Zara(heh, we'll be around more shortly (meetings and things mean we're in late on Tues anyway); just about to make food and things)15:38
anteayayay food15:38
anteayawhat a good idea15:38
anteayapedroalvarez: that is a useful link, thanks for sharing15:39
anteayaI'm thinking that link should have some form of presence in the api docs15:40
anteayaokay general question, hands up anyone who has been able to successfully edit the api documentation15:40
* pedroalvarez handsdown15:44
pedroalvarezanteaya: I managed to change the description of a story using the api and curl15:45
pedroalvarezanteaya: http://paste.openstack.org/show/516026/15:45
anteayapedroalvarez: woooooo15:46
anteayapedroalvarez: thank you15:46
pedroalvarezI basically used the trick of: doing it with Chrome's console open, and then copy the PUT request as CURL :)15:47
pedroalvarezthen removed crap (cookies, agent info, etc)15:47
*** jamesmcarthur has quit IRC15:53
*** jtomasek_ has quit IRC15:54
*** jamesmcarthur has joined #storyboard15:56
*** bethwhite has quit IRC16:24
SotKthat is what I normally do when trying to test the API with curl16:34
SotKI've been able to edit the api docs16:38
SotKhttp://git.openstack.org/cgit/openstack-infra/storyboard/tree/doc/source/webapi/v1.rst is what you want to edit16:39
SotKthe .rest-controller directive (I think that is the correct term) becomes the actual documentation of the endpoint's parameters, by looking in the docstring for each of the endpoints defined in the controller it is passed16:40
SotKie. http://git.openstack.org/cgit/openstack-infra/storyboard/tree/doc/source/webapi/v1.rst#n11 will show the docstrings from http://git.openstack.org/cgit/openstack-infra/storyboard/tree/storyboard/api/v1/projects.py#n39 for everything with a wsme_pecan.wsexpose decorator16:41
anteayapedroalvarez: thanks I have never used chrome's console I will look at that16:50
anteayaSotK: thank you, I will look at those files and see if I can find anything useful16:50
anteayaSotK: can you link me to a merged api doc patch you offered?16:50
SotKanteaya: https://review.openstack.org/#/c/307807/ added some new endpoints to the api docs16:52
SotKanteaya: https://review.openstack.org/#/c/307806/ added a docstring to be displayed on there16:53
anteayathank you16:55
anteayathis helps me16:55
*** jamesmcarthur has quit IRC18:07
*** jamesmcarthur has joined #storyboard18:22
*** lifeless has quit IRC18:46
*** lifeless has joined #storyboard18:47
*** mrmartin has joined #storyboard18:53
*** mrmartin has quit IRC19:20
*** mrmartin has joined #storyboard19:37
*** mrmartin has quit IRC20:09
Zaraugh I'm running late but will test the lovely new timeline tomorrow20:31
*** mrmartin has joined #storyboard20:43
*** mrmartin has quit IRC20:52
*** jamesmcarthur has quit IRC22:10
*** openstackstatus has quit IRC22:25
*** openstack has joined #storyboard22:26
*** openstackstatus has joined #storyboard22:27
*** ChanServ sets mode: +v openstackstatus22:27

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