Thursday, 2016-01-14

*** jasondotstar has quit IRC01:24
*** jasondotstar has joined #storyboard01:29
*** cody-somerville- has quit IRC02:06
*** cody-somerville- has joined #storyboard02:07
*** coolsvap|away is now known as coolsvap03:36
*** jtomasek has joined #storyboard07:15
*** coolsvap is now known as coolsvap|away08:44
pedroalvarezit's not slow anyway09:10
Zaramorning, storyboard!10:13
SotKmorning!10:14
Zaraso, am I correct to think that any leftover slowness is down to the way the webclient is doing things? =D10:26
SotKshort of us simplifying the query in story_get_all(), I don't think we can speed up the API much more10:27
Zara\o/10:27
* SotK wonders why the speedup on storyboard.o.o hasn't been as drastic as on storyboard.sotk.co.uk10:29
pedroalvarezlatency?10:29
pedroalvarezi don't know :(10:29
Zaraare we able to see the speed of GETs there?10:31
SotKpedroalvarez: yeah, latency is the issue I think10:32
SotK(33ms to receive the response on storyboard.sotk.co.uk, 544ms to receive it on storyboard.o.o)10:33
ZaraI'm guessing there's not much we can do about that10:34
Zarathough guessing that means that any group hosting their own instance on an intranet would have pretty awesome speeds10:42
Zarahm, now wondering about this (ie: if the lag is as noticeable now as it was at the time the story was written. if not, it might be preferable these days to have the fields populate immediately instead of using the spinner) https://storyboard.openstack.org/#!/story/200018311:08
Zaraespecially if the first few fields load fast enough that the loading appears to happen instantaneously. this will be difficult to test, though.11:10
Zaraeg: I'm thinking of cases where a user opts to view 100 stories in a go, but only the first 7 will appear on their screen before they have to scroll11:11
Zaraooh, the libravatar api also has openid support11:33
* pedroalvarez upgrades baserock's storyboard11:37
Zara\o/11:38
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Notifications: Don't change the resource_id on POST unnecessarily  https://review.openstack.org/26748611:39
SotKpedroalvarez: nice :D11:39
pedroalvarezwith emails enabled. :P11:40
Zarathe templates aren't very useful yet!11:40
SotKthe patch I just sent will allow comment emails to actually be sent11:41
Zaratesting now btw11:51
pedroalvarezI know they aren't really useful yet, but some people might appreciate having them enabled11:51
pedroalvarezI will not have more complains like "it doesn't send emails yet??!?" :)11:52
Zaraaw, I'm betting you'll get complaints like 'THESE EMAILS AREN'T USEFUL HOW CAN YOU POSSIBLY THINK THIS IS THE WAY TO DO EMAILS' but we'll see! :)11:53
ZaraIdk some engineers seem to have a weird double standard for their own software vs other people's11:55
Zaraie: assuming every feature is the developers' ideal11:55
Zaraand that it's not a WIP.11:55
pedroalvarezI understand that openstack's storyboard has more users, mine are just a few, so easier to deal with complains11:56
Zarayeah. I just don't want people yelling abuse at you! :) though I suspect the kind of people who'd do that would do that anyway, whatever you did.11:56
ZaraI think everyone in this channel knows where you're coming from, anyway. good luck with it.11:58
ZaraSotK: patch looks good, getting the expected messages about comments from the worker!12:09
Zaramade test templates and those sent, ace12:11
Zarathough then tried sending templates with {{sub_resource}} and it's reporting that as none. {{resource.comment}} doesn't seem to be a thing12:21
SotKargh, comments aren't in the class_mappings dict in notification_hook.py12:28
Zara\o/12:29
Zarathanks for helping on this. hopefully it'll just be today.12:30
SotKno problem :)12:31
Zarahm, template still not working. sub_resource still none, resource.comment still a blank12:41
SotKcan you paste your class_mappings dict?12:42
SotKresource.comment won't exist, but sub_resource should work now12:42
Zaraclass_mappings = {'task': [models.Task, wmodels.Task],12:43
Zara                  'project_group': [models.ProjectGroup, wmodels.ProjectGroup],12:43
Zara                  'project': [models.ProjectGroup, wmodels.Project],12:43
Zara                  'user': [models.User, wmodels.User],12:43
Zara                  'team': [models.Team, wmodels.Team],12:43
Zara                  'story': [models.Story, wmodels.Story],12:43
Zara                  'branch': [models.Branch, wmodels.Branch],12:43
Zara                  'milestone': [models.Milestone, wmodels.Milestone],12:43
Zara                  'tag': [models.StoryTag, wmodels.Tag],12:43
Zara                  'worklist': [models.Worklist, wmodels.Worklist],12:43
Zara                  'board': [models.Board, wmodels.Board],12:43
Zara                  'comment': [models.Comment, wmodels.Comment]}12:44
SotKhm, that is the same as my working one... did you definitely restart the worker and the API?12:45
ZaraI thought so but should check12:45
Zaraaha there we go12:46
Zara^^' oh well seems to work, anyway12:46
SotK:)12:46
Zarahmm just thinking12:50
Zaraso my PUT template is currently Comment added to story {{resource.title}} by {{author.full_name}}12:50
Zarabut does that author correspond ot the story?12:50
ZaraI'm imagining it matches the resource, not the sub_resource12:51
Zaraso it wouldn't say who posted the comment, just who made the story12:51
Zaraam I wrong on that?12:51
SotKit matches the legged in user that caused the request to be sent, so it should be the right name for the commenter I think12:51
SotKs/legged/logged12:51
Zaraoh okay12:51
* SotK thinks "{{author.full_name}} commented on {{resource.title}}" would probably be a nicer subject btw12:53
Zarasure12:54
* SotK tries to think of the best way to change the API to make it easy to find the new/deleted tag12:55
Zarathough we might wanna keep word 'story' in there so it's obvious it refers to one12:55
Zaraidk, maybe that's implied.12:55
Zaraeh.12:55
SotKif you put a link to the story in the body you probably don't need it I guess12:56
Zarastill need to work out how to do that. but agree we need it12:57
SotKI'll look at making publish() take more useful parts of the pecan request object12:58
SotKsuch as the fqdn and the querystring (which will make it possible to know which tags were added/deleted)12:58
openstackgerritZara proposed openstack-infra/storyboard: Add email templates for comments  https://review.openstack.org/26753413:01
Zaraah, I think it's currently possible to know which are created, but not deleted13:03
Zaraand yeah, no urls in any nice way yet13:03
ZaraI think the only template we're completely missing now is the task deletion one13:04
Zarathe others are all wip of varying quality13:04
Zarabtw https://review.openstack.org/#/c/265935/ now has enough +1s and 2s to merge13:05
* SotK pushes the button13:05
Zara:D13:05
Zaraso this is the error I get when I delete a task atm. http://paste.openstack.org/show/483885/13:15
Zarait seems to handle deleting tags so I guess it's a question of looking at the difference between them. maybe it's because one is a resource and one is a sub_resource, so tags still have a story_id when deleted13:15
Zarawell, tags aren't a sub_resource, sorry13:15
Zarabut  tags fall under stories13:16
SotKyeah, tags are weird, since they are kind of a sub_resource, but the API for them is odd13:18
openstackgerritMerged openstack-infra/storyboard-webclient: Fix Project Group Edit  https://review.openstack.org/26593513:18
ZaraI think we really need a link to a story's project on the story detail page. I often navigate to a story via the dash, so the back button doesn't work in those circumstances13:39
Zarawell, the task-within-the-story's project13:40
Zaracurrently there's just the edit button. wonder if that should be part of task metadata, or if it's easier to just make the editable project name function as a link if clicked in a different place.13:41
SotKmaybe the project name in the task list should be a link, and there should just be one edit button per task13:41
SotKoh, snap :)13:41
Zarayeah, I'd be in favour of making the fa-pencil-square thing function as an edit button while the name just works as a link13:42
Zaraor one edit button if there's a neat place for it13:42
Zaraworried it'll look crowded next to delete13:42
Zarabut might be fine13:42
SotKso I've engaged my brain re: url, and realised belatedly that the URL in the pecan request object won't be sufficient if we care about federation13:43
SotKor even if we care about having the ability to serve the API and the webclient from different places13:44
SotKaha, but I bet the Referer header will be enough13:45
* SotK stops panicking13:45
Zaramade tasks story. https://storyboard.openstack.org/#!/story/200046313:47
SotKsending the query string did indeed make the tags template easy to do14:21
Zara\o/14:23
Zaranow you can look at my old efforts and laugh14:23
Zarahmm, started looking at tasks-projects link...14:49
Zaraoh nvm14:51
Zarawas wondering where pencil-square-o is but I think it's just aliased14:51
Zarato edit14:51
openstackgerritZara proposed openstack-infra/storyboard-webclient: Make task project titles link to projects  https://review.openstack.org/26763315:04
Zaraquick fix. maybe not ideal.15:04
pedroalvarezquestion: is possible that all the emails related to one story appear in the same thread?15:06
SotKI'd imagine so, but I'd have to learn more about what would be required before I could implement it15:19
* Zara patches tasks, remembers that task templates are currently a bit dorky15:28
Zaradidn't have a good way of finding what changed15:28
Zarain a user-friendly way. so it just lists the type of resource with ids, and the user can work it out, and then a friendlier list of current task data-- but a bit ugly15:29
Zarahttp://paste.openstack.org/show/483896/15:29
SotKhmm15:32
openstackgerritMerged openstack-infra/storyboard: Notifications: Don't change the resource_id on POST unnecessarily  https://review.openstack.org/26748615:33
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Add more detail to event messages  https://review.openstack.org/26765115:35
Zarayay, notification resource_id patch merged! that means https://review.openstack.org/#/c/267534/ can be merged if it gets a +215:35
* SotK obliges15:36
SotKI can't really think of a good way to solve this task issue at the moment15:38
Zaraif it's a pain then I'm happy for them to be merged and just be slightly less-informative than they would be ideally15:39
ZaraI don't want it to block emails entirely.15:39
Zarawell, I'd like everything to include a story url where possible, but other than that.15:39
Zaraas long as they're more useful than not having them at all would be...15:40
Zarahorrible sentence but you get what I mean15:40
Zarayay, it's looking for task delete templates with that patch!15:41
Zarait did still give me an error, but it's looking for it15:41
SotKI can think of some less good ways.... I'll experiment sometime15:42
Zara:)15:43
openstackgerritMerged openstack-infra/storyboard: Add email templates for comments  https://review.openstack.org/26753415:44
Zara\o/ I'll have to patch it in the future to include a story url, can hopefully do that with others15:45
SotKthe patch I sent will allow the url to be included :)15:47
SotK`{{url}}#!/story/{{resource.id}}` is all you'll need15:48
SotKit also makes it easy to find the tag that is being added or deleted...15:49
SotK`{{query_string.split('=', 1)[1]}}`15:49
Zaraheh, added was okay for me but deleted was rubbish.15:49
ZaraHad to learn a new python thing but it was pretty straightforward15:49
Zaragah, task deletion is giving me the same old error again and not asking for templates15:54
SotKwhich error is that?15:54
Zarahttp://paste.openstack.org/show/483901/15:55
SotK:(15:55
ZaraI was testing the 'add more detail to event messages' patch15:55
Zarait asked for templates, I made them15:55
Zarathen just got that15:56
Zarawill try removing the templates15:56
Zarastill not looking for them so it's not an error that happens after that step15:57
Zaragah15:57
SotKdo DELETEs work for other things that aren't subresources?16:03
Zarathey've been working for tags and other things in the past; tasks were weird. should see if that's changed.16:04
SotKtags are weird because they're sort-of-a-subresource16:05
Zaraah, stories don't do anything on deletion but I don't think we've ever been expecting that16:06
Zarathere's no user preference for it16:06
Zaraso probably only looked at tags and tasks16:06
Zaratags delete works, tasks delete doesn't, though sometimes it does look for the templates16:06
Zarait's happened a couple of times and I can't work out what's different16:06
Zarawondering if there's a race-condition16:07
Zarahope not.16:07
SotKI suspect its a race between the deletion making it into the database and `subscription_get_all_subscriber_ids()` returning16:07
Zarayay16:08
Zaracan we treat tasks as a sort-of-a subresource somehow, just for emails? or does it have to be global?16:10
SotKsubresource-ness is decided based on the url used, so it has to be global16:11
SotKwe can write a special case for getting subscribers when the actual thing has been deleted though16:11
Zaraoh, cool16:12
SotKhmm, might be weird actually16:14
ZaraIT'S ALL YOURS HAVE FUN16:14
Zara=D16:14
SotKoh dear, I think if someone is subscribed to just a task (not its story) they won't get an email about the task being deleted16:16
SotKand since the plugin that handles subscriptions obliterates the subscription on deletion we can't easily find out who used to be subscribed16:17
SotKmaybe we should change "deleted" to "archived" and not have this problem16:17
Zarawfm16:18
Zarathe only issue is if things get enormous, but I guess we could give admin powers of deletion later for those scenarios?16:18
SotKhmm, I'm somewhat wary of permanent deletion of things anyway16:20
SotKI wonder if paulsherwood or persia have opinions on this?16:20
ZaraI think it should be an option but not available as easily as it is atm16:22
ZaraI also wonder what happens in the case of removing a subscription, ie: if that's treated like a delete16:23
SotKyou mean the the subscribed-to thing is deleted?16:23
Zarano, just that the subscription itself is removed16:24
SotKyeah, the subscription is deleted16:24
Zarayeah, to me that makes sense to keep that way, otherwise there could be a loooot of archived subscriptions.16:24
SotKyeah, I only care about not deleting things that are "data" (so stories, projects, tasks, and so on)16:26
Zarayou've probably seen on gerrit, but the tests don't like the 'add more detail to event messages' patch. for my part I've tested it and it works.16:43
SotKoops, missed a test update16:44
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Add more detail to event messages  https://review.openstack.org/26765116:54
openstackgerritMerged openstack-infra/storyboard-webclient: Improve usability of the "Edit project" form  https://review.openstack.org/26376217:01
Zaraso other than task-deletion, I'm confident we can get all templates to a minimal state of usefulness very quickly. thanks for helping out today, it's sped things up A LOT17:03
SotKno problem :)17:03
Zarahopefully once event messages patch is merged I can go back to the templates and do things on my own again.17:04
Zaraexception being task-deletion, but I don't think that's a frequent-enough use-case that it should be a blocker17:04
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Work around task deletion making it impossible to get subscribers  https://review.openstack.org/26771717:19
SotKoh, that won't be enough to make task deletion work17:20
Zara'just subscribed to other tasks in the story'?17:21
Zarayou can't subscribe to a task afaik17:21
SotKyou can, but only on the search results page17:21
Zaraso there wouldn't be an issue with people getting mail they haven't requested.17:21
Zaraoh right17:21
Zaradidn't know that17:21
Zarahah17:21
Zarathat's really strange.17:22
SotKI knew it was possible but thought there was no button for it in the UI until I found that one yesterday17:22
SotKI don't really know why anyone would ever subscribe to a task instead of the story though17:22
ZaraI'm guessing it probably works, too, since I updated all subscribes... maybe not, though17:23
Zarahah17:23
ZaraI think it should be an option for users but it's not a high priority for me.17:23
Zaraif we can't get task-deletion working nicely with templates, then I'm okay just leaving it for now, anyway, largely because I don't think tasks are deleted that often17:24
Zaramarked invalid, yes17:24
Zarait does mean users won't get some mail they've requested, but I'd be okay making a note and trying to fix it after getting initial emails merged17:24
SotKI'll update that patch tomorrow, at the moment the handle_email() function will have a bad time17:26
Zara:)17:27
Zarahope we can get  https://review.openstack.org/#/c/267651/ merged soon, since that lets us put urls in emails! then we can link to stories at laaast17:28
* SotK decides its time to disappear17:36
SotKnight :)17:36
SotKwe'll have emails soon I think \o/17:36
pedroalvarezyay!17:38
Zara:) soooon! once that patch goes through I'll update mine with urls, after that it's just waiting for things to be merged.17:38
Zarathey won't be perfect, but they'll useful :)17:38
Zara*be17:38
Zaraokay, heading home! anyone who's interested in having relevant links in their email notifications, https://review.openstack.org/#/c/267651/ is riiiiight there waiting17:58
* Zara finishes plugging it for the evening17:58
openstackgerritMerged openstack-infra/storyboard-webclient: Show Project Groups on search page  https://review.openstack.org/26702717:58
Zaranight, all! :)17:59
* pedroalvarez reviews given that he asked for that feature18:05
ZaraEXCELLENT LIFE DECISION18:06
Zararight, now I am actually going home18:06
Zaranight-night, really this time!18:07
openstackgerritMerged openstack-infra/storyboard: Add more detail to event messages  https://review.openstack.org/26765118:16
*** jtomasek has quit IRC21:52

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