*** anteaya has quit IRC | 00:09 | |
*** anteaya has joined #storyboard | 00:10 | |
*** betherly has quit IRC | 00:28 | |
*** betherly has joined #storyboard | 00:29 | |
*** SotK has quit IRC | 00:31 | |
*** SotK has joined #storyboard | 00:31 | |
*** jamesmcarthur has joined #storyboard | 00:40 | |
*** jamesmcarthur has quit IRC | 00:44 | |
anteaya | okay so right now I am playing with the api to see if I can get it to PUT or POST anything | 01:26 |
---|---|---|
anteaya | when folks are awake once more if I can get an example of how to post a new story I would be grateful | 01:26 |
anteaya | http://docs.openstack.org/infra/storyboard/webapi/v1.html#post--v1-stories | 01:26 |
anteaya | thus far `curl --insecure -i https://storyboard-dev.openstack.org/api/v1/stories -X POST` gets me a 500 error | 01:27 |
anteaya | I'm not sure how the story bit I should be including in the command should be formatted | 01:27 |
anteaya | also 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%29 | 01:39 |
anteaya | it should be /v1/stories/<story_id>/tasks/(task_id) | 01:39 |
anteaya | however I have tried to find where this line comes from, either typed or generated and I am unable | 01:40 |
anteaya | it seems silly for me to have to file a bug for something I consider a trivial fix | 01:41 |
anteaya | but I don't know how to fix this | 01:41 |
*** openstackgerrit has quit IRC | 03:11 | |
*** openstackgerrit has joined #storyboard | 03:11 | |
*** mrmartin has joined #storyboard | 04:58 | |
*** mrmartin has quit IRC | 05:24 | |
*** mrmartin has joined #storyboard | 06:42 | |
*** openstackgerrit has quit IRC | 06:48 | |
*** openstackgerrit has joined #storyboard | 06:48 | |
*** mrmartin has quit IRC | 06:59 | |
*** mrmartin has joined #storyboard | 07:12 | |
SotK | anteaya: weird, I get 401 errors as expected when running that command against my local test instance | 07:33 |
SotK | but a 500 error when running it against storyboard-dev | 07:33 |
SotK | I'll look at the logs in a little while | 07:44 |
SotK | anteaya: 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 it | 07:46 |
SotK | I suspect its the generator itself | 07:46 |
SotK | dmsimard: 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 today | 07:47 |
SotK | after that it shouldn't take too long to get merged | 07:47 |
*** bethwhite has joined #storyboard | 08:09 | |
*** mrmartin has quit IRC | 12:49 | |
Zara | https://www.youtube.com/watch?v=0gcz-wPLz_Y | 12:59 |
Zara | oh no I mean, good afternoon storyboard | 12:59 |
*** mrmartin has joined #storyboard | 13:16 | |
dmsimard | SotK: cool, looking forward to it. | 13:41 |
openstackgerrit | Merged openstack-infra/storyboard-webclient: Allow the Subscribe directive to work without a list of subscriptions https://review.openstack.org/324549 | 13:47 |
*** mrmartin has quit IRC | 13:52 | |
*** mrmartin has joined #storyboard | 13:54 | |
*** mrmartin has quit IRC | 14:06 | |
SotK | openstackgerrit missed my patches again :( | 14:31 |
SotK | https://review.openstack.org/329478 and https://review.openstack.org/327231 await reviews | 14:31 |
Zara | ohh, thanks | 14:31 |
Zara | ooh, double-nice, no longer wip! | 14:32 |
*** jamesmcarthur has joined #storyboard | 14:35 | |
* persia fails at spelling: "dialog" != "dialogue" | 14:46 | |
openstackgerrit | Adam Coldrick proposed openstack-infra/storyboard: Support subscription to worklists in the API https://review.openstack.org/324493 | 14:53 |
*** jamesmcarthur has quit IRC | 15:01 | |
*** jamesmcarthur has joined #storyboard | 15:03 | |
persia | Looking through old patches: whatever happened to https://review.openstack.org/307712 ? Did that just not ever get testing? Needs a rebase now, but | 15:07 |
SotK | it was never tested with large worklists | 15:08 |
persia | Ah | 15:15 |
Zara | afk for a bit, be back eventually | 15:18 |
anteaya | SotK: thanks | 15:24 |
anteaya | SotK: what do I have to give it to address the one actual 401 error I got? | 15:25 |
anteaya | SotK: is there an example of a correctly formed command? | 15:25 |
SotK | erm, I don't think there is, no | 15:26 |
anteaya | hmmm, okay are you able to get past the 401 error yourself and edit via the api? | 15:27 |
anteaya | are you able to paste me an example of a command that is effective? | 15:27 |
SotK | not right now (on my phone on a tram) | 15:32 |
*** faybrocklebank has quit IRC | 15:33 | |
SotK | iirc you need to set the Authorization header to "Bearer $TOKEN" where $TOKEN is an active access token related to your user | 15:33 |
*** jtomasek_ has joined #storyboard | 15:34 | |
SotK | you can create and see them in the profile section submenu (can't remember the link) | 15:34 |
anteaya | oh my | 15:34 |
anteaya | okay well sometime when you aren't on your phone on a tram | 15:34 |
pedroalvarez | tokens are in here: https://storyboard.openstack.org/#!/profile/tokens | 15:35 |
anteaya | I would need an actual example to follow, since right now I don't know what this should look like | 15:35 |
anteaya | pedroalvarez: thank you | 15:35 |
pedroalvarez | true.. | 15:36 |
anteaya | now I realize me starting my day when you are ending yours is not ideal to getting my quesitons answered | 15:37 |
anteaya | and I think I have my local gerrit configured so that it is working | 15:37 |
anteaya | so I should switch my schedule and work to spend more of my time online when you are working | 15:37 |
anteaya | I'll work on that | 15: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 |
anteaya | yay food | 15:38 |
anteaya | what a good idea | 15:38 |
anteaya | pedroalvarez: that is a useful link, thanks for sharing | 15:39 |
anteaya | I'm thinking that link should have some form of presence in the api docs | 15:40 |
anteaya | okay general question, hands up anyone who has been able to successfully edit the api documentation | 15:40 |
* pedroalvarez handsdown | 15:44 | |
pedroalvarez | anteaya: I managed to change the description of a story using the api and curl | 15:45 |
pedroalvarez | anteaya: http://paste.openstack.org/show/516026/ | 15:45 |
anteaya | pedroalvarez: woooooo | 15:46 |
anteaya | pedroalvarez: thank you | 15:46 |
pedroalvarez | I basically used the trick of: doing it with Chrome's console open, and then copy the PUT request as CURL :) | 15:47 |
pedroalvarez | then removed crap (cookies, agent info, etc) | 15:47 |
*** jamesmcarthur has quit IRC | 15:53 | |
*** jtomasek_ has quit IRC | 15:54 | |
*** jamesmcarthur has joined #storyboard | 15:56 | |
*** bethwhite has quit IRC | 16:24 | |
SotK | that is what I normally do when trying to test the API with curl | 16:34 |
SotK | I've been able to edit the api docs | 16:38 |
SotK | http://git.openstack.org/cgit/openstack-infra/storyboard/tree/doc/source/webapi/v1.rst is what you want to edit | 16:39 |
SotK | the .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 passed | 16:40 |
SotK | ie. 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 decorator | 16:41 |
anteaya | pedroalvarez: thanks I have never used chrome's console I will look at that | 16:50 |
anteaya | SotK: thank you, I will look at those files and see if I can find anything useful | 16:50 |
anteaya | SotK: can you link me to a merged api doc patch you offered? | 16:50 |
SotK | anteaya: https://review.openstack.org/#/c/307807/ added some new endpoints to the api docs | 16:52 |
SotK | anteaya: https://review.openstack.org/#/c/307806/ added a docstring to be displayed on there | 16:53 |
anteaya | thank you | 16:55 |
anteaya | this helps me | 16:55 |
*** jamesmcarthur has quit IRC | 18:07 | |
*** jamesmcarthur has joined #storyboard | 18:22 | |
*** lifeless has quit IRC | 18:46 | |
*** lifeless has joined #storyboard | 18:47 | |
*** mrmartin has joined #storyboard | 18:53 | |
*** mrmartin has quit IRC | 19:20 | |
*** mrmartin has joined #storyboard | 19:37 | |
*** mrmartin has quit IRC | 20:09 | |
Zara | ugh I'm running late but will test the lovely new timeline tomorrow | 20:31 |
*** mrmartin has joined #storyboard | 20:43 | |
*** mrmartin has quit IRC | 20:52 | |
*** jamesmcarthur has quit IRC | 22:10 | |
*** openstackstatus has quit IRC | 22:25 | |
*** openstack has joined #storyboard | 22:26 | |
*** openstackstatus has joined #storyboard | 22:27 | |
*** ChanServ sets mode: +v openstackstatus | 22:27 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!