*** alexismonville has quit IRC | 00:17 | |
*** persia_ has quit IRC | 05:28 | |
*** persia_ has joined #storyboard | 05:31 | |
*** fungi has quit IRC | 08:22 | |
*** fungi has joined #storyboard | 08:24 | |
*** mrmartin has joined #storyboard | 08:41 | |
Zara | mooorning, storyboard | 09:09 |
---|---|---|
*** mrmartin has quit IRC | 09:22 | |
*** mrmartin has joined #storyboard | 09:32 | |
SotK | morning! | 09:35 |
Zara | it can't be morning; I keep falling asleep ;_; | 09:41 |
Zara | odyssey4me: 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 |
odyssey4me | thanks Zara - I'll take a peek in a bit | 10:04 |
odyssey4me | urgh: 400: GET /api/v1/users/preferences: Invalid input for field/attribute user_id. Value: 'preferences'. unable to convert to int | 10:04 |
Zara | gah, it should be okay on a refresh | 10:05 |
Zara | but that's annoying | 10:05 |
odyssey4me | ah yes, now it's showing | 10:05 |
Zara | \o/ | 10:12 |
Zara | I 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 |
Zara | and that causes complexities when people make feature-requests | 10:25 |
*** mrmartin has quit IRC | 10:44 | |
*** mrmartin has joined #storyboard | 10:58 | |
Zara | my dashboard's taking a while to load. wondering if anything's changed | 11:03 |
*** alexismonville has joined #storyboard | 11:09 | |
SotK | I can't think of anything that would cause that | 11:09 |
Zara | s.o.o has seemed a bit slow for the last week or so | 11:24 |
*** alexismonville has quit IRC | 11:31 | |
pedroalvarez | is the host ok? | 11:35 |
*** alexismonville has joined #storyboard | 11:36 | |
Zara | it 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=all | 11:37 |
Zara | but I don't think it's enough to slow it down | 11:37 |
Zara | SotK: 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 |
Zara | so '1 of 4' where there are only 2 current items on the list, that kind of thing | 11:42 |
SotK | oh yeah | 11:44 |
SotK | oops | 11:44 |
Zara | I should've looked earlier, sorry | 11:45 |
Zara | I didn't spot it on the js draft because I didn't have archived items in those lists | 11:45 |
Zara | but wanted to do a more thorough check on my vm | 11:45 |
Zara | ooh, and one of mine has the first item on the worklist listed as item -1 of 18 in the story | 11:51 |
Zara | huh, that task is in the worklist twice in two different positions. that shouldn't be possible | 11:52 |
SotK | why not? | 11:52 |
Zara | oh, I thought you could only put a task in a worklist once, but actually, that was lanes in boards iirc | 11:52 |
persia | Why would one ever put a task in a worklist twice? | 11:53 |
Zara | anyway, yeah, looks like that one is off by one. | 11:53 |
* persia thought a card was unique for task+worklist | 11:53 | |
Zara | (lists tasks 1 and 9 as -1 and 8) | 11:53 |
SotK | Zara: is it a new-ish worklist? | 11:53 |
Zara | no, an old one | 11:54 |
Zara | yeah, I think they're all off-by-one | 11:54 |
SotK | even new ones? :/ | 11:55 |
Zara | yeah, I just made one | 11:55 |
* SotK investigates | 11:55 | |
SotK | persia: there is no limitation in the API, and the limitation only exists in boards in the webclient | 11:55 |
persia | SotK: 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 |
Zara | so 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 one | 11:58 | |
Zara | I guess if you were using order not to express priority, but to express timing, you might (still seems unusual) | 11:59 |
Zara | eg: you have a recurring task that needs to happen after certain other ones | 11:59 |
Zara | I think it'd make more sense to break that task down | 12:00 |
Zara | but eh | 12:00 |
Zara | whatever, I leave it as an exercise for the reader | 12:00 |
*** dmsimard|afk is now known as dmsimard | 12:55 | |
Zara | looking back at python client again now | 13:19 |
Zara | hm, 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 |
Zara | I can change to/from auto, though | 14:18 |
Zara | so 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 filter | 14:34 |
* SotK doesn't know how to translate the required POST request to the client | 14:40 | |
Zara | yeah, 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 |
Zara | a POST sans filters would look like `storyboard.worklists.create(title='pythonbro', automatic=True)` | 14:41 |
Zara | or maybe not, hang on, I had one that worked a bit ago | 14:42 |
Zara | (that just errored for me) | 14:42 |
Zara | huh, apparently you can make it automatic with a put after, but not during the post | 14:44 |
SotK | o.O | 14:44 |
SotK | sounds like a client issue | 14:44 |
Zara | huh, it did create it, actually | 14:45 |
Zara | it just gave me a 500 error so I thought it hadn't | 14:45 |
Zara | and 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 error | 14:47 | |
SotK | that sounds weird | 14:47 |
SotK | what's actually in your database in those positions? | 14:47 |
SotK | (maybe it made the list but failed to make the permissions) | 14:47 |
anteaya | if I search for a user in storyboard should I not get all the stories this person created? | 14:49 |
Zara | SotK: 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 |
SotK | anteaya: what do you mean by "search for a user"? | 14:53 |
anteaya | if I put markus_z's name in search I don't see the stoies he created | 14:53 |
anteaya | and i would expect to | 14:53 |
persia | Does that work in LP? | 14:53 |
SotK | "search" as in https://storyboard.openstack.org/#!/search ? | 14:54 |
anteaya | yes search | 14:57 |
anteaya | well I can add his name | 14:57 |
anteaya | but then there are no results | 14:57 |
Zara | SotK: 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 :P | 14:57 |
SotK | Zara: hmm, weird | 14:58 |
SotK | anteaya: ah, yeah, browsing by user in the webclient only shows things they are assigned to | 14:59 |
anteaya | okay | 14:59 |
anteaya | well in the gui docs it would be great to have that information available to users | 15:00 |
SotK | since 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 |
anteaya | that is fine | 15:00 |
anteaya | if we had gui docs I could update them with that information | 15:01 |
SotK | Zara: the 500 error is because if you try to make a worklist automatic you are expected to also send a list of filters | 15:02 |
Zara | ahh, right | 15:03 |
Zara | I wish I knew how to do that then. | 15:03 |
SotK | a list of things that look like the json here would do it http://docs.openstack.org/infra/storyboard/webapi/v1.html#WorklistFilter | 15:03 |
SotK | actually, maybe not, hold that thought | 15:04 |
Zara | I tried pasting the output from getting another filter, but there were a lot of ids and it wasn't obvious what was what | 15:04 |
Zara | Sotk: that was, http://paste.openstack.org/show/545651/ | 15:05 |
Zara | I think that was one of the actions that created a non-existent worklist, though I'm not sure | 15:05 |
SotK | alright, so something like that should work I think, just remove all the things with ID in them | 15:06 |
Zara | well, that was with a put, and didn't work, and then I tried something similarish with a post | 15:06 |
SotK | and created_at/updated_at | 15:06 |
SotK | its probably the provision of IDs thats causing trouble | 15:06 |
Zara | I tried taking out all the ids and it didn't like it, along with created_at/updated_at | 15:06 |
Zara | it's possible I messed up the syntax | 15:07 |
Zara | hm, seems it wants a title | 15:09 |
Zara | I'm not sure what title | 15:09 |
Zara | (will paste) | 15:09 |
Zara | http://paste.openstack.org/show/545652/ | 15:10 |
SotK | title is a shiny version of the value iirc | 15:14 |
SotK | so for a tag, probably just the same | 15:14 |
SotK | its automatically generated in the webclient | 15:15 |
SotK | a User filter might be: {negative: false, field: "User", value: "1", title: "Adam Coldrick"} for example | 15:15 |
SotK | where the value is the id, and the title is what should be displayed to the user | 15:16 |
Zara | ahhh, right | 15:17 |
Zara | that's why I was confused, I think, because 'value' was already there | 15:18 |
*** faybrocklebank has quit IRC | 15:21 | |
Zara | sorry, I got distracted by discussion in other channels | 16:20 |
Zara | will try it now | 16:20 |
Zara | hm, had to change things into strings, now getting an error as 'type' is missing | 16:24 |
Zara | I 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 |
Zara | well, thinking about it, your id will be different so that's also going to confuse it xD | 16:27 |
Zara | oh, it doesn't seem to have 'automatic' now | 16:28 |
Zara | wait it does I'm imagining things | 16:29 |
Zara | (and yeah, that creates an empty space where worklist 265 would go) | 16:30 |
Zara | oh, so the type comes after the criteria to say what to filter on | 16:31 |
Zara | hahaha | 16:31 |
Zara | (well, not necessarily after, but yeah, i've worked out what it doesn't like now) | 16:32 |
SotK | where do you mean? | 16:32 |
Zara | I 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 |
Zara | so that's not saying whether it filteres on stories or tasks | 16:32 |
SotK | ah yes, the filters need a type as well as a list of filter_criteria | 16:33 |
Zara | yeah, that worked | 16:33 |
Zara | yeah, at first I was confused because I didn't know what the type referred to, and I thought it was just another criterion | 16:34 |
Zara | so you'd have one criterion saying 'stories', then one saying 'things tagged blah', then one saying 'things in foo project' | 16:34 |
Zara | but actually, the stories vs tasks is bundled in with the other things | 16:35 |
Zara | ARGH the api/v1/plural vs #!/singular gets me every time! | 16:40 |
Zara | then I get a nice dashboard redirect... ;_; | 16:40 |
* Zara tries wrong username with id to see what happens | 16:44 | |
Zara | keyerror: id, good good | 16:45 |
Zara | I could grumble about having to supply both, but hey | 16:45 |
Zara | oh, hm... | 16:46 |
Zara | maybe that wasn't what caused the keyerror. since I just changed it back and I'm still getting it | 16:46 |
Zara | oh nvm it needed the worklist id | 16:47 |
Zara | since it was a PUT | 16:47 |
Zara | changing negative: False to negative: True didn't have an effect | 16:48 |
Zara | and similar for other things in filters. so yeah, can create a worklist with filters, don't know how to change them yet | 16:50 |
Zara | will upload updated diagram. imgur will block me at some point. | 17:07 |
persia | How 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 |
Zara | just the one, and the way it's nested should mean it operates per filter criterion | 17:08 |
Zara | so I think that either I'm not making the right request and I need to update something else, or it's not implemented yet | 17: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 |
SotK | updating filters is done by `PUT /v1/worklists/:id/filters/:filter_id` | 17:21 |
Zara | ah, 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 earlier | 17:26 |
SotK | I think you need to do something like storyboard.worklists.get(266).list_filters.update(...) | 17:30 |
Zara | ah, grah, that's what I started out trying hours ago before I found I no idea of the syntax for list criteria. | 17:32 |
Zara | and the default values in the PUT seem to be None rather than whatever was there before | 17:40 |
Zara | that may be a client issue | 17:40 |
Zara | aaaaaaaaaaaaargh why doesn't this work | 17:48 |
Zara | latest attempt: http://paste.openstack.org/show/545705/ | 17:49 |
Zara | this 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's | 17:50 |
SotK | heh | 17:53 |
SotK | its entirely possible that that doesn't work, since its never used by anything else | 17:53 |
Zara | :D yeah | 18: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 |
Zara | that was a busy week | 18:02 |
*** alexismonville has quit IRC | 20:03 | |
*** openstackgerrit_ has joined #storyboard | 20:35 | |
*** openstackgerrit_ has quit IRC | 20:36 | |
*** alexismonville has joined #storyboard | 21:00 | |
*** alexismonville has quit IRC | 21:47 | |
*** alexismonville has joined #storyboard | 21:51 | |
*** alexismonville has quit IRC | 21:58 | |
*** mrmartin has quit IRC | 23:33 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!