Thursday, 2015-09-10

*** mrmartin has joined #storyboard03:27
*** mrmartin has quit IRC04:24
*** mrmartin has joined #storyboard05:00
*** jtomasek has joined #storyboard06:50
*** jcoufal has joined #storyboard07:07
*** jcoufal has quit IRC08:25
*** jcoufal has joined #storyboard09:18
Zaramorning, storyboard!10:27
* SotK finally has a fully-working kanban board13:11
Zaraoh my! :D13:11
SotKalbeit only editable by its creator13:12
Zarastill, that's a whole personal tasklist thing13:12
Zarathat's great :D13:12
SotKyeah, its pretty cool13:13
ZaraI'm still subscriptioning. :< I'm trying to do it the right way this time; think I have all the pieces but I'm struggling to get the results of the list of subscriptions (currently residing in the list controller for me) over to the subscription directive. which might have been the old issue I had last time around.13:15
SotKZara: does something like this not work? http://pastebin.com/GVhLT34L13:23
Zaraah, I tried something very similar to that, but I had it as subsList=subsList so no 'resource' prefix; thinking about it that might make a difference...13:26
SotKmeh, it probably doesn't13:26
SotKhmm13:26
ZaraI noticed that doing {{subsList}} in the subscribe class in the template doesn't work, but it does work just outside it13:27
Zaramaking me think that it's to do with info getting passed between directives, but I'm not sure13:27
Zaraoh well at least I'm not trying something off-the-wall, then13:28
SotKcan you pastebin what you had?13:29
Zaraokay, there might be some minor differences from before unfortunately, since I've been trying things out-- but it's still doing the same thing so the core issue is probably the same13:35
Zarahttp://pastebin.com/cVuYLJ1D that's the template stuff at the top and the subscribe directive (tried to only include bits I've changed; can add extra if it's missing something)13:38
ZaraI know that the bit in the list controller works because I can display it from the list template and the search results template (ie: subsList isn't just always undefined :P)13:39
SotKaha, line 23 in that diff `subsList: '@'` means that the subsList parameter is evaluated as a string I believe13:39
SotKit needs to be `subsList: '='`13:39
Zaraah, I think I tried it as equals as well but I'll check again13:39
Zarawould be nice if it's just that; then I'll just need to make my loop a proper loop. :P13:41
* SotK crosses fingers13:41
SotKyou might need to do `subs-list="subsList"` in the html part rather than `subsList="subsList" too13:42
Zarayeah, it didn't work but I'd noticed that the only place it said resource-id was in the search results template13:43
Zaraso I was wondering about that; another good sign!13:43
*** mrmartin has quit IRC13:47
*** mrmartin has joined #storyboard13:50
Zarano dice unfortunately. I'm wondering if it's possible that it's not defined when the subscription class is accessed, but it is afterwards when it's *displayed*, and it's an async thing somehow.13:52
SotKah, that could be the case13:54
SotKtry doing `$scope.subsList.$promise.then(resolveSubsList);` in the subscription directive rather than calling resolveSubsList directly13:58
Zaratried it, didn't work, but mayyyyybe it's not htat14:07
Zaramaybe it also needs something in the search directive or something14:07
SotKhmm, what doesn't work about it?14:07
Zarait was saying that $scope.subsList was undefined, and in the web console it listed the stuff in <subscribe> </subscribe>14:11
Zarawhere I had something like subslist = subsList14:11
SotKo.O... passing it through like that works for me14:14
Zarain general or for subscriptions?14:17
SotKin general (I passed an array of strings)14:18
* SotK will see what happens with the subscriptions list thing14:18
SotKok thats weird, with a subscriptions list it seems fine too14:22
ZaraI'm doing the wrong thing then.14:23
Zaragood to know, at least. :) maybe it is a problem with the way I'm getting the subscriptions list14:24
Zarathe thing is currently very barebones:14:24
Zara        if (!Session.isLoggedIn()) {14:24
Zara            $scope.subsList = null;14:24
Zara        }14:24
Zara        else {14:24
Zara            $scope.subsList = Subscription.browse({14:24
Zara                target_type: 'project',14:24
Zara                limit: 10014:25
Zara            });14:25
Zara        }14:25
Zara    });14:25
* SotK wonders if its because its inside an if statement14:31
* SotK tries it14:31
SotKargh, I think that is it14:34
Zarawaaaaaaaat14:40
SotKyou should be able to do it without the if statement I think14:45
ZaraI guess that could now come later, in the subscriptions directive again.14:46
SotKnah, then it will get called each time the subscriptions directive is used14:46
Zaraah, I just meant the if bit, not the else14:49
SotKah, I see14:49
SotKit probably could then, but I don't know if its needed in that case14:50
ZaraI think bad things happen if you're not logged in.14:50
* SotK has a play around14:54
ZaraI remember having to play 'race the error messages' to log back in; might have been some other things that were different then, but I think it expects a user.14:55
Zarahaha it's doing a thing argh.15:04
SotKwhat kind of thing?15:04
Zaraoh, it's a good thing; I got it to pass the right stuff, even if it is displaying '[]' next to each star atm xD15:05
SotK:D15:05
* SotK notes you probably need to only browse for subscriptions for the current user when you create subsList15:06
SotKelse you'll get everyone's15:06
Zaraokay, I probably had that in my old broken version but not in this one since I remember moving some stuff over (that was one of the things that made the project list controller massive).15:08
Zarawill need to think about how to abstract all this in a bit, since it's going to get duplicated a lot with slightly different variables in its current form.15:08
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Add tables for Worklists and Boards  https://review.openstack.org/21370116:15
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Add an API endpoint for Worklists  https://review.openstack.org/22226716:15
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Add an API endpoint for boards  https://review.openstack.org/22226816:15
*** jcoufal has quit IRC16:56
*** mrmartin has quit IRC19:45

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