Tuesday, 2016-08-02

*** alexismonville has quit IRC00:17
*** persia_ has quit IRC05:28
*** persia_ has joined #storyboard05:31
*** fungi has quit IRC08:22
*** fungi has joined #storyboard08:24
*** mrmartin has joined #storyboard08:41
Zaramooorning, storyboard09:09
*** mrmartin has quit IRC09:22
*** mrmartin has joined #storyboard09:32
SotKmorning!09:35
Zarait can't be morning; I keep falling asleep ;_;09:41
Zaraodyssey4me: hi! A little while ago you suggested having some kind of explanation of StoryBoard. I've made a start on a thing over here: https://storyboard.openstack.org/#!/story/2000667 It could do with some polishing, probably needs to be clearer, etc... but pinging you in case you're interested in where that's at. :)10:02
odyssey4methanks Zara - I'll take a peek in a bit10:04
odyssey4meurgh: 400: GET /api/v1/users/preferences: Invalid input for field/attribute user_id. Value: 'preferences'. unable to convert to int10:04
Zaragah, it should be okay on a refresh10:05
Zarabut that's annoying10:05
odyssey4meah yes, now it's showing10:05
Zara\o/10:12
ZaraI think a difficulty we have is that the ui doesn't lay things out in a way that conveys how they relate, so people guess, and guess wrong.10:24
Zaraand that causes complexities when people make feature-requests10:25
*** mrmartin has quit IRC10:44
*** mrmartin has joined #storyboard10:58
Zaramy dashboard's taking a while to load. wondering if anything's changed11:03
*** alexismonville has joined #storyboard11:09
SotKI can't think of anything that would cause that11:09
Zaras.o.o has seemed a bit slow for the last week or so11:24
*** alexismonville has quit IRC11:31
pedroalvarezis the host ok?11:35
*** alexismonville has joined #storyboard11:36
Zarait seems okay. the memory use has gone up a little recently http://cacti.openstack.org/cacti/graph.php?action=view&local_graph_id=3180&rra_id=all11:37
Zarabut I don't think it's enough to slow it down11:37
ZaraSotK: you're going to cry-- I've realised that the total of items in a worklist for the complex ui is counting the archived items.11:42
Zaraso '1 of 4' where there are only 2 current items on the list, that kind of thing11:42
SotKoh yeah11:44
SotKoops11:44
ZaraI should've looked earlier, sorry11:45
ZaraI didn't spot it on the js draft because I didn't have archived items in those lists11:45
Zarabut wanted to do a more thorough check on my vm11:45
Zaraooh, and one of mine has the first item on the worklist listed as item -1 of 18 in the story11:51
Zarahuh, that task is in the worklist twice in two different positions. that shouldn't be possible11:52
SotKwhy not?11:52
Zaraoh, I thought you could only put a task in a worklist once, but actually, that was lanes in boards iirc11:52
persiaWhy would one ever put a task in a worklist twice?11:53
Zaraanyway, yeah, looks like that one is off by one.11:53
* persia thought a card was unique for task+worklist11:53
Zara(lists tasks 1 and 9 as -1 and 8)11:53
SotKZara: is it a new-ish worklist?11:53
Zarano, an old one11:54
Zarayeah, I think they're all off-by-one11:54
SotKeven new ones? :/11:55
Zarayeah, I just made one11:55
* SotK investigates11:55
SotKpersia: there is no limitation in the API, and the limitation only exists in boards in the webclient11:55
persiaSotK: Makes sense.  I'm not suggesting it be prohibited right now, but I'm curious if there is any use case for the duplicates.11:56
Zaraso far the only thing I've come up with is using it for a vote or something. which seems rather weird.11:58
* SotK doesn't have one11:58
ZaraI guess if you were using order not to express priority, but to express timing, you might (still seems unusual)11:59
Zaraeg: you have a recurring task that needs to happen after certain other ones11:59
ZaraI think it'd make more sense to break that task down12:00
Zarabut eh12:00
Zarawhatever, I leave it as an exercise for the reader12:00
*** dmsimard|afk is now known as dmsimard12:55
Zaralooking back at python client again now13:19
Zarahm, not sure what list_filter_criteria adds or how to use it.14:04
Zara(I can definitely create and get worklists via client. not yet sure how to add filters.)14:18
ZaraI can change to/from auto, though14:18
Zaraso yeah, gets for filters seem to work, not sure if I'm missing something. I haven't got puts to work for filters, but they work for other features of worklists. posts work for worklists, again not sure how to create a filter14:34
* SotK doesn't know how to translate the required POST request to the client14:40
Zarayeah, I'm not sure if bilal implemented it and I'm just failing to do it, or if it's not implemented yet.14:41
Zaraa POST sans filters would look like `storyboard.worklists.create(title='pythonbro', automatic=True)`14:41
Zaraor maybe not, hang on, I had one that worked a bit ago14:42
Zara(that just errored for me)14:42
Zarahuh, apparently you can make it automatic with a put after, but not during the post14:44
SotKo.O14:44
SotKsounds like a client issue14:44
Zarahuh, it did create it, actually14:45
Zarait just gave me a 500 error so I thought it hadn't14:45
Zaraand the ones that I failed to create with filters, it seems like it's made and then deleted them? (since I have a bunch of 'worklist not found's just before)14:45
Zara(but I haven't deleted any recently myself)14:46
* Zara will paste error14:47
SotKthat sounds weird14:47
SotKwhat's actually in your database in those positions?14:47
SotK(maybe it made the list but failed to make the permissions)14:47
anteayaif I search for a user in storyboard should I not get all the stories this person created?14:49
ZaraSotK: possibly, I'll take a look http://paste.openstack.org/show/545646/ is the error in the meantime (there's some noise from my CLI in there)14:49
SotKanteaya: what do you mean by "search for a user"?14:53
anteayaif I put markus_z's name in search I don't see the stoies he created14:53
anteayaand i would expect to14:53
persiaDoes that work in LP?14:53
SotK"search" as in https://storyboard.openstack.org/#!/search ?14:54
anteayayes search14:57
anteayawell I can add his name14:57
anteayabut then there are no results14:57
ZaraSotK: this is the end of it with the stuff today. http://paste.openstack.org/show/545649/ if the whole thing is useful I'll need a sec to learn how to pipe mysql queries to files :P14:57
SotKZara: hmm, weird14:58
SotKanteaya: ah, yeah, browsing by user in the webclient only shows things they are assigned to14:59
anteayaokay14:59
anteayawell in the gui docs it would be great to have that information available to users15:00
SotKsince the way browse filters are implemented doesn't make it easy to use the same type of thing (ie user) to filter on multiple fields (ie creator and assignee)15:00
anteayathat is fine15:00
anteayaif we had gui docs I could update them with that information15:01
SotKZara: the 500 error is because if you try to make a worklist automatic you are expected to also send a list of filters15:02
Zaraahh, right15:03
ZaraI wish I knew how to do that then.15:03
SotKa list of things that look like the json here would do it http://docs.openstack.org/infra/storyboard/webapi/v1.html#WorklistFilter15:03
SotKactually, maybe not, hold that thought15:04
ZaraI tried pasting the output from getting another filter, but there were a lot of ids and it wasn't obvious what was what15:04
ZaraSotk: that was, http://paste.openstack.org/show/545651/15:05
ZaraI think that was one of the actions that created a non-existent worklist, though I'm not sure15:05
SotKalright, so something like that should work I think, just remove all the things with ID in them15:06
Zarawell, that was with a put, and didn't work, and then I tried something similarish with a post15:06
SotKand created_at/updated_at15:06
SotKits probably the provision of IDs thats causing trouble15:06
ZaraI tried taking out all the ids and it didn't like it, along with created_at/updated_at15:06
Zarait's possible I messed up the syntax15:07
Zarahm, seems it wants a title15:09
ZaraI'm not sure what title15:09
Zara(will paste)15:09
Zarahttp://paste.openstack.org/show/545652/15:10
SotKtitle is a shiny version of the value iirc15:14
SotKso for a tag, probably just the same15:14
SotKits automatically generated in the webclient15:15
SotKa User filter might be: {negative: false, field: "User", value: "1", title: "Adam Coldrick"} for example15:15
SotKwhere the value is the id, and the title is what should be displayed to the user15:16
Zaraahhh, right15:17
Zarathat's why I was confused, I think, because 'value' was already there15:18
*** faybrocklebank has quit IRC15:21
Zarasorry, I got distracted by discussion in other channels16:20
Zarawill try it now16:20
Zarahm, had to change things into strings, now getting an error as 'type' is missing16:24
ZaraI shamelessly nabbed your example, though it seemed like I needed to tweak it, then it still errored, so... http://paste.openstack.org/show/545683/16:26
Zarawell, thinking about it, your id will be different so that's also going to confuse it xD16:27
Zaraoh, it doesn't seem to have 'automatic' now16:28
Zarawait it does I'm imagining things16:29
Zara(and yeah, that creates an empty space where worklist 265 would go)16:30
Zaraoh, so the type comes after the criteria to say what to filter on16:31
Zarahahaha16:31
Zara(well, not necessarily after, but yeah, i've worked out what it doesn't like now)16:32
SotKwhere do you mean?16:32
ZaraI just had:16:32
Zara'storyboard.worklists.create(title='pythonbrofacemister', automatic=True, filters=[{u'filter_criteria': [{u'negative': False, u'field': "User", u'value': "3", u'title': "Adam Coldrick"}]}])'16:32
Zaraso that's not saying whether it filteres on stories or tasks16:32
SotKah yes, the filters need a type as well as a list of filter_criteria16:33
Zarayeah, that worked16:33
Zarayeah, at first I was confused because I didn't know what the type referred to, and I thought it was just another criterion16:34
Zaraso you'd have one criterion saying 'stories', then one saying 'things tagged blah', then one saying 'things in foo project'16:34
Zarabut actually, the stories vs tasks is bundled in with the other things16:35
ZaraARGH the api/v1/plural vs #!/singular gets me every time!16:40
Zarathen I get a nice dashboard redirect... ;_;16:40
* Zara tries wrong username with id to see what happens16:44
Zarakeyerror: id, good good16:45
ZaraI could grumble about having to supply both, but hey16:45
Zaraoh, hm...16:46
Zaramaybe that wasn't what caused the keyerror. since I just changed it back and I'm still getting it16:46
Zaraoh nvm it needed the worklist id16:47
Zarasince it was a PUT16:47
Zarachanging negative: False to negative: True didn't have an effect16:48
Zaraand similar for other things in filters. so yeah, can create a worklist with filters, don't know how to change them yet16:50
Zarawill upload updated diagram. imgur will block me at some point.17:07
persiaHow many filters do you have?  If you just have one, swapping "negative" should be obvious.  If you have many, maybe not so much.17:07
persia(if it isn't obvious, perhaps there is a bug)17:08
Zarajust the one, and the way it's nested should mean it operates per filter criterion17:08
Zaraso I think that either I'm not making the right request and I need to update something else, or it's not implemented yet17:08
Zara+ I think worklist contents is the last thing that really needs to be manipulable from the python client; after this it's all the weird edge-case stuff and we've got the likely operations covered.17:09
SotKupdating filters is done by `PUT /v1/worklists/:id/filters/:filter_id`17:21
Zaraah, I just had the same request as the POST for a filter, but swapping 'create' for 'update', so would imagine the filter ID is missing (http://paste.openstack.org/show/545702/) though hm, I thought I tried that earlier17:26
SotKI think you need to do something like storyboard.worklists.get(266).list_filters.update(...)17:30
Zaraah, grah, that's what I started out trying hours ago before I found I no idea of the syntax for list criteria.17:32
Zaraand the default values in the PUT seem to be None rather than whatever was there before17:40
Zarathat may be a client issue17:40
Zaraaaaaaaaaaaaaargh why doesn't this work17:48
Zaralatest attempt: http://paste.openstack.org/show/545705/17:49
Zarathis was after a million 'this thing can't be null', 'that thing can't be null', 'your syntax is bad and you should feel bad's17:50
SotKheh17:53
SotKits entirely possible that that doesn't work, since its never used by anything else17:53
Zara:D yeah18:00
Zara+ I only looked at the worklist filters client patch, so didn't test it when it was merged (well, I checked it didn't break anything, but I didn't try learning the syntax to actually use it at the time)18:02
Zarathat was a busy week18:02
*** alexismonville has quit IRC20:03
*** openstackgerrit_ has joined #storyboard20:35
*** openstackgerrit_ has quit IRC20:36
*** alexismonville has joined #storyboard21:00
*** alexismonville has quit IRC21:47
*** alexismonville has joined #storyboard21:51
*** alexismonville has quit IRC21:58
*** mrmartin has quit IRC23:33

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