Friday, 2014-12-05

*** openstackgerrit has quit IRC00:18
*** openstackgerrit has joined #storyboard00:19
*** r1chardj0n3s is now known as r1chardj0n3s_afk00:49
*** r1chardj0n3s_afk is now known as r1chardj0n3s01:30
*** timrc is now known as timrc-afk01:37
*** r1chardj0n3s is now known as r1chardj0n3s_afk01:51
*** r1chardj0n3s_afk is now known as r1chardj0n3s03:37
*** mrmartin has joined #storyboard06:12
*** r1chardj0n3s is now known as r1chardj0n3s_afk06:28
*** reed has quit IRC06:39
*** openstackgerrit has quit IRC06:49
*** openstackgerrit has joined #storyboard06:49
*** alexismonville has joined #storyboard07:57
*** jtomasek has joined #storyboard08:03
*** alexismonville has quit IRC08:14
*** jcoufal has joined #storyboard08:31
*** mrmartin has quit IRC08:32
*** MaxV has joined #storyboard08:41
*** alexismonville has joined #storyboard08:47
*** jedimike has joined #storyboard08:56
openstackgerritMerged openstack-infra/storyboard: Workflow documentation is now in infra-manual  https://review.openstack.org/13943208:58
*** mrmartin has joined #storyboard09:59
*** MaxV has quit IRC10:06
*** MaxV has joined #storyboard10:13
yolandajedimike, is dropdown of task assignee working for you using the mouse?10:56
yolandalooks as only work for me when using keyboard10:57
jedimikeyolanda, I can click on the names, yeah10:57
yolandabut when you click , the assignee is reflected on the task? i'm loosing that10:58
jedimikeyolanda, i'll try assigning one of my tasks to you and then back to me, one minute...10:58
jedimikeyolanda, ah, you're right, it's broken. Also, you appear in the list twice :)10:58
yolandajedimike, yes, it's always been like that, not sure why10:59
yolandai may have 2 launchpad ids10:59
yolandaok, i'll file the story, i corrected something similar few time ago11:00
yolandajedimike, i have few reviews pending from storyboard, could you take a look? after your spec :)11:01
jedimikeyolanda, haha, i'll take a look when I'm finished this section, if you want to wait until after them spec it might be next week ;)11:02
yolandanoooo11:02
jedimikeI'm just writing up how the simpler markers are generated when a snapshot is taken, 20 minutes tops :)11:02
yolandai wrote a new one for nodepool now, was quick to write, but i was thinking about it all night11:03
jedimikeok, some fancy sql written :) yolanda, do you have links to your reviews?11:24
yolandajedimike: https://review.openstack.org/137798, https://review.openstack.org/138389, https://review.openstack.org/13910011:25
* jedimike goes to review11:28
yolandathx11:30
jedimikeyolanda, just to make sure I understand the task status summary - the api would give back an array of TaskStatusCount models?11:35
yolandayes, basically i wanted to return a list with state:count11:35
yolandai didn't figure a better way to do it with pecan, looks as for any compount type you need to define a model, do you know a better way?11:36
jedimikeyolanda, no, that looks like a good solution to be because the client gets the raw data and can present it any way the view wants to. If we presented it as a "key:value" string, the client would have to parse the values out of that11:37
jedimikeso this looks good to me :)11:37
yolandajedimike, my fear there is that the result was a bit noisy, lots of taskstatuscount objects11:37
jedimikeyolanda, there's an argument to be made that a client doesn't need them, and can do that transformation itself because it can ask for the list of statuses from the api11:39
jedimikehmmm11:40
yolandajedimike, but it needs the count of each task status to present it in the frontend11:40
jedimikeyolanda, yes, but it already has those. So the original story summary has a column for each task status, and the count in that column, yeah? So if the client can ask the api for a list of task statuses, the client can extract the columns for display easily11:41
yolandajedimike, but how can you match them? can we ensure that we are returning the values in the same order as in the list task status api?11:42
jedimikeyolanda, so the story summary names the columns after the status, doesn't it? So you'd have a column called "ToDo" or something, and it would have the number of To Do tasks in it?11:43
yolandajedimike, no, it should only be returning key, count, not the nsame11:44
yolandaname11:44
jedimikecan you paste what the story summary looks like without the transform?11:44
jedimikejust so i'm not making a mistake figuring out what the key is :)11:45
yolandajedimike, so the final result is something like [['key':'review', 'count':1], ['key':'todo', 'count':2]]11:45
yolandanot the label11:45
jedimikeyolanda, ok, maybe I've misunderstood how  _story_build_summary_query works. What columns do you get back from that?11:47
jedimikebecause it looks to me that the label for the columns is the task status11:48
yolandajedimike, the full story details, then the story count as i told you, and then a calc about the general story state11:48
jedimikeyolanda, but you're specifying the label for each count column as the task status itself, which means you'd have a column called "To do" and the count of the To Do tasks in there, yeah?11:49
yolandajedimike, not the label itself but the key11:51
jedimikeoh, the pk of the task status?11:51
yolandatask status returns [['todo', 'Todo'], ['review', 'Review']] etc...11:51
yolandaso yes, it's just the key to reference it11:51
jedimikeok, so if the client asks the api for the task statuses, it should get that key back too, which means it can use that key to extract the count and doesn't need the summary11:52
yolandaiedimike, but the initial api was already doing that, in the story it was extracting the task count summary11:53
yolandaso i just left that the same, but using variable statuses11:53
yolandathat's output from the story api11:54
yolanda{"status": "active", "task_statuses": [{"count": 1, "key": "review"}, {"count": 2, "key": "todo"}, {"count": 0, "key": "invalid"}, {"count": 1, "key": "merged"}, {"count": 1, "key": "inprogress"}], "description": "add a new story 1", "title": "I update the test story", "created_at": "2014-11-18T09:06:20", "updated_at": "2014-11-21T13:57:49", "is_bug": true, "creator_id": 1, "id": 1}11:54
jedimikeyeah, and now that the task statuses are dynamic, the api is adding a column for each task status with the summary in, and I think that's all the api should do. Generating a summary is the job of the client - the data has already been put there by the api, the client just needs the list of task statuses to generate the summary, and it can ask the api for that11:55
yolandaso it's using the key to associate with the right label we get on the task status api11:55
jedimikeyolanda, perfect, so if i have the list of task status keys, I can extract everything I need from that on the client side11:56
yolandajedimike, but to calculate the summary there, then you need to have a call to return all the tasks belonging to a story11:56
yolandaand that's worse11:56
jedimikeno, you can do it from what you pasted there11:56
jedimikeso I ask the api for the list of task statuses, I do that once, and I have the key and label for each task status11:56
yolandayes, i do it like that11:56
jedimikethen, when I render each story, I know what status key goes with what label, and I can loop round "task_statuses" from what you pasted ^^ and extract the counts11:57
jedimikeno extra api calls11:57
jedimikeand no extra work on the api side11:57
yolandajedimike, yes, that's the idea11:57
jedimikeah11:57
jedimikehang on11:57
jedimikewhat does that json look like if you *don't* generate the summary?11:58
jedimikecan you paste that?11:58
yolandawe always generate the summary11:58
jedimikeyes, and the summary generated is deleting columns from the results. Can you paste it without doing that?11:58
yolanda{"status": "active", "review": 1, "todo":1, "description": "add a new story 1", "title": "I update the test story", "created_at": "2014-11-18T09:06:20", "updated_at": "2014-11-21T13:57:49", "is_bug": true, "creator_id": 1, "id": 112:00
jedimikeperfect! Now if the client has the status keys, it can just reference the "todo" attribute12:00
*** alexismonville has quit IRC12:01
jedimikeif the status doesn't appear in the record, it knows it's a 012:01
yolandajedimike, yes, but then you are returning variable columns on the api, i  mean, don't having a standard signature12:03
yolandait will be returning different results depending on the statuses you have configured12:03
yolandathat's what i didn't like and the reason for grouping that12:03
jedimikeyeah. by the way, I'm not saying we *should* do it this way, just exploring it so if someone else asks why it's done this way on the review, there's an answer ;)12:05
yolandaok, i like to have an api well defined and with expected fields, so that's the reason12:05
yolandayou can add the question in the review and i answer there so we reflect the conversation12:05
jedimikeyolanda, cool :) I think having expected fields is a good reason to do the summary in the api, I'll ask the question, you can reply, and I'll +1 :D12:07
yolandanice12:08
jedimikehaha sorry for dragging that out, just wanted to make sure I'd thought about it properly before +1'ning it ;)12:08
yolandajedimike, was a nice discussion12:08
jedimikeyolanda, I get on edge with those type of discussions sometimes, I don't want people to think I'm having a go at them, I just like to explore options out loud - helps me understand :)12:11
yolandait's an useful thing12:11
jedimikeok, comment added :)12:12
yolandareplied12:13
jedimikeand +1'd :)12:13
jedimikeok, getting something to drink before the next one, haha12:13
yolandathat was hard :)12:14
yolandabut i still feel more comfortable with python and pecan than with angular12:15
*** mrmartin has quit IRC12:22
*** jcoufal has quit IRC12:25
*** jcoufal has joined #storyboard12:27
*** jcoufal has quit IRC12:28
*** jcoufal has joined #storyboard12:29
*** mase_x200 has joined #storyboard12:31
jedimikeyolanda, https://review.openstack.org/#/c/137798/2/src/app/dashboard/controller/dashboard_controller.js that's an interesting change! Is that something to do with the circular dependencies?12:41
yolandachecking12:50
yolandaoh, let me amend it :)12:50
yolandathat's derived from testing12:51
yolandanot really a change, but essay/error tries12:51
*** alexismonville has joined #storyboard12:55
yolandajedimike, btw, the task status frontend won't be merged until the story count lands, it needs some work on it as well13:23
yolandai'll put a -1 in workflow13:23
openstackgerrityolanda.robla proposed openstack-infra/storyboard-webclient: Retrieve task statuses from the backend  https://review.openstack.org/13838913:26
jedimikeyolanda, no problem, i put my +1 there anyway13:29
yolandathx13:29
openstackgerrityolanda.robla proposed openstack-infra/storyboard-webclient: Read user preferences from backend  https://review.openstack.org/13779813:35
ttxBranch support spec draft @ https://review.openstack.org/#/c/139613/13:39
ttxMilestone support spec draft @ https://review.openstack.org/#/c/139626/13:39
yolandacool, new specs!13:45
ttxI'm not feeling particularly wordy today, so maybe I don't make a lot of sense :) Consider that a first draft.13:46
yolandattx, looks as friday is the day for write specs, jedimike and me have been working a bit on it as well :)13:46
ttxit is specs day for me, yes.13:46
jedimikeall my specs are first drafts :) unless people like them, then they're final ;)13:47
*** jcoufal has quit IRC14:00
*** miqui_ has joined #storyboard14:04
*** mattfarina has joined #storyboard14:20
jedimikeopenstack-infra/infra-specs: Result set management and paging specification  https://review.openstack.org/13963814:31
jedimikeit's... not a simple one, I don't think14:32
jedimikeand with that, i'm going to get lunch :)14:32
*** mrmartin has joined #storyboard14:45
yolandajedimike going to review14:50
*** mase_x200 has quit IRC14:53
*** Piet has joined #storyboard15:21
*** reed has joined #storyboard15:34
*** ssam2 has joined #storyboard16:00
*** Piet has quit IRC16:11
*** mrmartin has quit IRC17:07
*** Piet has joined #storyboard17:25
*** MaxV has quit IRC17:28
*** mrmartin has joined #storyboard18:09
*** gothicmindfood has quit IRC19:19
*** gothicmindfood has joined #storyboard19:25
*** zaro has joined #storyboard19:35
*** alexismonville has quit IRC19:43
*** mrmartin has quit IRC19:57
*** ssam2 has quit IRC20:01
openstackgerritMerged openstack-infra/storyboard-webclient: Workflow documentation is now in infra-manual  https://review.openstack.org/13943320:18
*** r1chardj0n3s_afk is now known as r1chardj0n3s21:30
*** mattfarina has quit IRC21:57
*** Piet has quit IRC22:10
*** timrc-afk is now known as timrc23:01
*** jedimike has quit IRC23:37

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