*** mrmartin has joined #storyboard | 03:27 | |
*** mrmartin has quit IRC | 04:24 | |
*** mrmartin has joined #storyboard | 05:00 | |
*** jtomasek has joined #storyboard | 06:50 | |
*** jcoufal has joined #storyboard | 07:07 | |
*** jcoufal has quit IRC | 08:25 | |
*** jcoufal has joined #storyboard | 09:18 | |
Zara | morning, storyboard! | 10:27 |
---|---|---|
* SotK finally has a fully-working kanban board | 13:11 | |
Zara | oh my! :D | 13:11 |
SotK | albeit only editable by its creator | 13:12 |
Zara | still, that's a whole personal tasklist thing | 13:12 |
Zara | that's great :D | 13:12 |
SotK | yeah, its pretty cool | 13:13 |
Zara | I'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 |
SotK | Zara: does something like this not work? http://pastebin.com/GVhLT34L | 13:23 |
Zara | ah, 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 |
SotK | meh, it probably doesn't | 13:26 |
SotK | hmm | 13:26 |
Zara | I noticed that doing {{subsList}} in the subscribe class in the template doesn't work, but it does work just outside it | 13:27 |
Zara | making me think that it's to do with info getting passed between directives, but I'm not sure | 13:27 |
Zara | oh well at least I'm not trying something off-the-wall, then | 13:28 |
SotK | can you pastebin what you had? | 13:29 |
Zara | okay, 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 same | 13:35 |
Zara | http://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 |
Zara | I 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 |
SotK | aha, line 23 in that diff `subsList: '@'` means that the subsList parameter is evaluated as a string I believe | 13:39 |
SotK | it needs to be `subsList: '='` | 13:39 |
Zara | ah, I think I tried it as equals as well but I'll check again | 13:39 |
Zara | would be nice if it's just that; then I'll just need to make my loop a proper loop. :P | 13:41 |
* SotK crosses fingers | 13:41 | |
SotK | you might need to do `subs-list="subsList"` in the html part rather than `subsList="subsList" too | 13:42 |
Zara | yeah, it didn't work but I'd noticed that the only place it said resource-id was in the search results template | 13:43 |
Zara | so I was wondering about that; another good sign! | 13:43 |
*** mrmartin has quit IRC | 13:47 | |
*** mrmartin has joined #storyboard | 13:50 | |
Zara | no 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 |
SotK | ah, that could be the case | 13:54 |
SotK | try doing `$scope.subsList.$promise.then(resolveSubsList);` in the subscription directive rather than calling resolveSubsList directly | 13:58 |
Zara | tried it, didn't work, but mayyyyybe it's not htat | 14:07 |
Zara | maybe it also needs something in the search directive or something | 14:07 |
SotK | hmm, what doesn't work about it? | 14:07 |
Zara | it was saying that $scope.subsList was undefined, and in the web console it listed the stuff in <subscribe> </subscribe> | 14:11 |
Zara | where I had something like subslist = subsList | 14:11 |
SotK | o.O... passing it through like that works for me | 14:14 |
Zara | in general or for subscriptions? | 14:17 |
SotK | in general (I passed an array of strings) | 14:18 |
* SotK will see what happens with the subscriptions list thing | 14:18 | |
SotK | ok thats weird, with a subscriptions list it seems fine too | 14:22 |
Zara | I'm doing the wrong thing then. | 14:23 |
Zara | good to know, at least. :) maybe it is a problem with the way I'm getting the subscriptions list | 14:24 |
Zara | the 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: 100 | 14:25 |
Zara | }); | 14:25 |
Zara | } | 14:25 |
Zara | }); | 14:25 |
* SotK wonders if its because its inside an if statement | 14:31 | |
* SotK tries it | 14:31 | |
SotK | argh, I think that is it | 14:34 |
Zara | waaaaaaaat | 14:40 |
SotK | you should be able to do it without the if statement I think | 14:45 |
Zara | I guess that could now come later, in the subscriptions directive again. | 14:46 |
SotK | nah, then it will get called each time the subscriptions directive is used | 14:46 |
Zara | ah, I just meant the if bit, not the else | 14:49 |
SotK | ah, I see | 14:49 |
SotK | it probably could then, but I don't know if its needed in that case | 14:50 |
Zara | I think bad things happen if you're not logged in. | 14:50 |
* SotK has a play around | 14:54 | |
Zara | I 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 |
Zara | haha it's doing a thing argh. | 15:04 |
SotK | what kind of thing? | 15:04 |
Zara | oh, it's a good thing; I got it to pass the right stuff, even if it is displaying '[]' next to each star atm xD | 15:05 |
SotK | :D | 15:05 |
* SotK notes you probably need to only browse for subscriptions for the current user when you create subsList | 15:06 | |
SotK | else you'll get everyone's | 15:06 |
Zara | okay, 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 |
Zara | will 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 |
openstackgerrit | Adam Coldrick proposed openstack-infra/storyboard: Add tables for Worklists and Boards https://review.openstack.org/213701 | 16:15 |
openstackgerrit | Adam Coldrick proposed openstack-infra/storyboard: Add an API endpoint for Worklists https://review.openstack.org/222267 | 16:15 |
openstackgerrit | Adam Coldrick proposed openstack-infra/storyboard: Add an API endpoint for boards https://review.openstack.org/222268 | 16:15 |
*** jcoufal has quit IRC | 16:56 | |
*** mrmartin has quit IRC | 19:45 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!