Friday, 2015-10-02

*** mrmartin has joined #storyboard04:33
*** mrmartin has quit IRC07:46
*** openstackgerrit has quit IRC07:46
*** openstackgerrit has joined #storyboard07:47
*** mrmartin has joined #storyboard08:02
*** mrmartin has quit IRC08:08
*** pedroalvarez has quit IRC08:21
*** pedroalvarez has joined #storyboard08:22
*** mrmartin has joined #storyboard08:23
*** openstack has joined #storyboard09:21
*** cody-somerville has joined #storyboard09:21
*** openstackstatus has joined #storyboard09:23
*** ChanServ sets mode: +v openstackstatus09:23
*** jtomasek has quit IRC09:46
*** jtomasek has joined #storyboard09:48
Zaramorning, storyboard!10:58
ZaraI've just asked in infra about the summit.11:08
* SotK updates http://185.98.149.23/#!/ to reflect the current state of his worklists/boards patches11:39
Zara\o/11:43
ZaraI'm wary of looking at it in case I break it11:43
* SotK tries out the subscriptions patch and watches the world explode :)11:43
Zaramwahahaha11:43
SotKit appears to make that 401 bug catastrophic rather than annoying :(11:44
Zaraack :( might be to do with the removal of the if/else for users being logged in?11:44
Zaraah yes, it wasn't doing that before but it is now11:45
Zaragah.11:45
SotKI wonder why it repeats the request..11:46
Zarayeah11:47
Zarastrange, it seems a bit different from what it was doing before11:47
Zaraso the service looks for subscriptions that match the currentuser11:48
Zaraso either something's going wrong at that step when there isn't one11:48
Zaraor something's going wrong after it with whatever it's returning (i'd've thought that would be 'null' or an empty list, so my guess is it's the earlier step where things are going weird)11:49
SotKoh, actually, I wonder if its because StoryBoard redirects to the dashboard when the API returns an error11:51
SotKbut when you aren't logged in the dashboard redirects to the project list11:51
SotKwhich errors, and redirects to the dashboard11:52
SotK...11:52
Zaraaha11:52
Zaraahahaha11:52
Zarathanks for catching it, that sounds plausible11:52
SotKlooks like you do need that if statement after all, since apparently you need to be logged in to call the subscriptions api11:53
* SotK apologises11:53
Zaraheh, I checked and it seemed like it wasn't necessary so that's my fault too11:55
ZaraI'm wondering why it didn't always go weird when I was logged out.11:55
Zaramust have been something that changed. :/11:55
Zarahopefully a straightforward fix in the service, anyway :)11:56
Zarathanks for diagnosing that; would have taken me forever.11:56
SotKno problem :)11:57
SotKhmm, the dashboard looks weird to me too11:58
SotKthe rows are extremely wide11:58
SotKah, I think that is unrelated11:58
SotKindeed it is11:59
* SotK files a bug11:59
SotKhm, actually its probably not worthwhile making a story for12:00
Zarathere is a bug re: placement of stars in some of the lists12:01
Zara(I think stories in projects might be an example, will look12:01
Zarathey're not pulled right12:01
Zarait seemed to be the case on master so I didn't want to include a fix in this patch12:01
Zaraokay, seem to have fixed the apocalypse thing12:01
ZaraI do get an error in the web console so there's probably a better way of doing it12:02
ZaraI just don't know it :(12:02
SotKall the stars look fine to me12:02
Zaraoh, that was it, they're on the left, it's not quite a bug, just a bit inconsistent12:04
Zarajust for stories listed within a project, I think12:04
Zaraalso projects and project group details pages don't have a subscribe button at the top12:05
Zaraagain, not the end of the world, just inconsistent because stories do12:05
Zara(I'm wary of tweaking this forever when there are more important things.)12:05
SotKyeah, we can fix those some other time I think :)12:06
persiasubscription (and unsubscription) to stories is the important part.12:06
persiaSubscription to projects and project groups requires UI for negative subscription to stories, which adds complication12:07
persia(I want everything in this project *except* these stories) + (I want everything in this group *except* this project)12:07
persiaAbsence of negative subscription causes subscriber rage (I've seen this: people actually red and screaming at developers)12:07
ZaraI'm actually not sure whether this currently works or not. I was just looking at speeding up the way pages were displayed, and in the process found that the problem lay in the way subscriptions were displayed.12:08
openstackgerritZara proposed openstack-infra/storyboard-webclient: Subscriptions  https://review.openstack.org/22356212:12
Zarahopefully the apocalypse is no more.12:13
SotK\o/12:28
ZaraI make no promises12:28
SotKseems fixed!12:45
Zara:012:50
* SotK suspects that the limit: 100 parameter in the subscriptions browse may cause problems down the line12:51
ZaraI really hope it speeds things up. the openstack storyboard instance is on a much bigger scale than any other instances to hand.12:51
Zarayeah, that's true12:51
SotKspecifically if the user is subscribed to more than 100 stories12:51
Zaraonce people have more than 10012:51
Zarasnap12:51
ZaraI think I left that because it was elsewhere, and I thought it might be in there for a reason12:52
Zarabut come to think, it might have been because of the paging12:52
Zaraor lack thereof, and it's not relevant here.12:52
ZaraI'll remove it12:52
* SotK is very happy that the stories page now only causes him to do 5 GETs instead of 38!12:54
Zarayeah, I'm a little concerned that my code in the directive is clumsy and it will take a long time with long lists12:54
Zaraalbeit less time than a GET for each item12:55
SotKI also don't think you need the `$scope.subscriptions = [];` line in the controllers anymore12:55
Zaraah, I was wondering about that12:56
Zarashould have tested before submitting really.12:56
* SotK looks at the directive code12:59
Zara(okay, all seems fine without limit)12:59
SotKZara: looks OK, but I think `for (foo in bar)` is bad if `bar` is an array in JavaScript13:11
* SotK recommends doing something like: http://pastebin.com/nR4MdtbK13:11
* SotK finishes nitpicking :)13:12
openstackgerritZara proposed openstack-infra/storyboard-webclient: Subscriptions  https://review.openstack.org/22356213:13
Zaraokay, haven't got round to that yet but current patchset removes the pointless things :)13:14
Zarawill take a look at the directive now.13:14
SotKalso can you make the commit message title more descriptive than "Subscriptions" by any chance? :)13:15
Zarahaha, yes13:15
Zarasorry, that was originally 'subscriptions wip' then I knocked off the 'wip' but forgot to flesh it out13:15
Zarayay, seems to work fine with the directive change you suggested13:39
SotK\o/13:39
* SotK wants to merge the markdown patch but isn't sure whether we can assume that Sam's +1 from the earlier patch still stands13:40
Zarayeah, I was wondering about that. :( (ooi, why is foreach preferable?)13:40
SotKI think `for (foo in bar)` can do weird things with arrays, instead of just iterating over the contents13:41
* SotK looks for an example13:41
SotKhttp://stackoverflow.com/a/50053113:42
SotKAnd I prefer the angular.forEach(array, callback) syntax nicer than `for (var i; i < array.length; i++) { var thing = array[i]; //do stuff }` syntax13:44
Zarahah, wow, that example is illuminating13:44
Zarabet it's led to many a terrifying bug13:44
Zaraah, I think I still think in C when it comes to control flow, heheh.13:45
Zarabut this is an angularjs project and I'd much rather follow the angularjs conventions!13:45
Zarachanging commit message title now, 'Subscriptions-- one GET per list' acceptable?13:47
ZaraI might as well check in here than submit yet another patch.13:47
* SotK would prefer something like "Speed up resolution of subscriptions by doing one GET per list" I think13:48
openstackgerritZara proposed openstack-infra/storyboard-webclient: Resolve subscriptions faster- do one GET per list  https://review.openstack.org/22356213:51
SotKthanks :)13:51
Zarahopefully that's okay; I was wary of it being too long.13:51
Zaraargh, tried to fix user-isolation stuff14:31
Zaraturned out CurrentUser.id was undefined. still not working.14:31
Zaraokay, made a fix, it involves a lot of files and I'm falling asleep so it may wait over the weekend.15:27
openstackgerritZara proposed openstack-infra/storyboard-webclient: Resolve subscriptions faster- do one GET per list  https://review.openstack.org/22356215:41
Zarahopefully that worked.15:41
ZaraI'm pretty tired, might be forgotten things or even typos; tested it on my instance in my browser but not as thoroughly as I normally would15:41
* SotK crosses fingers15:41
*** ChanServ has quit IRC17:37
*** ChanServ has joined #storyboard17:40
*** cameron.freenode.net sets mode: +o ChanServ17:40
*** mrmartin has quit IRC21:05
*** jasondotstar is now known as jasondotstar|afk22:48

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