*** coolsvap_ has joined #storyboard | 01:24 | |
*** coolsvap_ has quit IRC | 01:36 | |
*** jasondotstar has quit IRC | 04:06 | |
*** mrmartin has joined #storyboard | 07:06 | |
*** jcoufal has joined #storyboard | 08:00 | |
*** CTtpollard has quit IRC | 08:38 | |
*** CTtpollard has joined #storyboard | 08:41 | |
*** jasondotstar has joined #storyboard | 08:57 | |
*** notnownikki has joined #storyboard | 08:59 | |
*** mrmartin has quit IRC | 09:22 | |
*** jtomasek has joined #storyboard | 09:32 | |
*** mrmartin has joined #storyboard | 09:33 | |
Zara | ohhhhh, so the subscriptions object (predicably) contains just the subscriptions, not a list of things with a 'subscribed or not' field. I got confused because I accidentally subscribed to everything in the list while hacking around, then wondered how it could find whether you were subscribed to a resource or not if all items were in the subscriptions list but there was nothing about subscription status within that list. | 10:40 |
---|---|---|
*** jcoufal_ has joined #storyboard | 10:42 | |
Zara | I have no idea if that makes any sense but tl;dr: I am a bad role-model. :D | 10:42 |
*** jcoufal__ has joined #storyboard | 10:43 | |
*** jcoufal has quit IRC | 10:45 | |
*** jcoufal_ has quit IRC | 10:47 | |
paulsherwood | :) | 10:51 |
*** coolsvap has quit IRC | 11:50 | |
*** coolsvap has joined #storyboard | 11:51 | |
*** openstackgerrit_ has joined #storyboard | 12:02 | |
Zara | oh hey, ng-repeat is a 'for...in' that you can do straight on the html templtae... cool | 12:30 |
Zara | erm, *template. still, cool. | 12:31 |
*** openstackgerrit_ has quit IRC | 12:51 | |
*** openstackgerrit_ has joined #storyboard | 12:56 | |
*** mrmartin has quit IRC | 13:40 | |
*** openstackgerrit_ has quit IRC | 13:55 | |
*** openstackgerrit_ has joined #storyboard | 13:56 | |
*** jcoufal has joined #storyboard | 14:10 | |
*** jcoufal__ has quit IRC | 14:14 | |
*** openstackgerrit_ has quit IRC | 14:17 | |
*** openstackgerrit_ has joined #storyboard | 14:18 | |
*** openstackgerrit_ has quit IRC | 14:31 | |
* SotK finally gets round to setting up a public instance of his work on worklists/boards so far | 14:48 | |
Zara | ooooooo | 14:49 |
SotK | go to http://185.98.149.23/ for excitement! | 14:49 |
SotK | You'll need to log in though, since the worklist API can only be used by authenticated users | 14:49 |
SotK | http://185.98.149.23/#!/dashboard/worklists will display any worklists created by you | 14:49 |
SotK | (the locations of everything in this UI are just for testing) | 14:50 |
Zara | ah, it works | 14:51 |
Zara | well, kinda, anyway | 14:51 |
SotK | heh, its very "kinda" at the moment | 14:52 |
Zara | which is waaaaaaaay ahead of me! :D | 14:52 |
Zara | yeah, some of the button-oddness looks familiar from when I was shifting project groups around | 14:52 |
Zara | (ie: where it updates the worklist but the form doesn't disappear and it seems like it hasn't worked) | 14:54 |
SotK | yeah, I forgot it did that then remembered as soon as I posted the link... | 14:54 |
Zara | :D you might be able to find a fix in the edit form code, since it looks like it's similar | 14:55 |
Zara | but idk | 14:55 |
*** mrmartin has joined #storyboard | 15:09 | |
* SotK improves the modal misbehaviour | 15:16 | |
Zara | from the project_list template (and so on), I want to go 'get subscriptions object. for each project, if project_id matches a target_id in the subscriptions object, display a filled star. else, display an empty one'. | 15:22 |
Zara | so far I've managed to get a couple of filled stars floating nicely above the list, next to their project IDs, so it's progress. :D | 15:24 |
Zara | but I'm still not sure how to get everything accessible from a place where I can compare it, before sending the results back to the project_list template. | 15:25 |
SotK | I guess you need to have that subscriptions object as something like `$scope.subscriptions` in ProjectListController | 15:29 |
*** lexholden has joined #storyboard | 15:30 | |
SotK | then a function that takes a project id and looks for it in that object, say `$scope.findSubscription(project_id)` in ProjectListController | 15:30 |
SotK | then you can use ng-if="findSubscription(project.id)" or ng-show="findSubscription(project.id)" on something inside the ng-repeat in the list template to conditionally show a filled or empty star | 15:32 |
Zara | ahh, I'd started by putting my $scope.subscriptions (well, $scope.subby) in the subscribe directive, then was accessing it via a <subscribe></subscribe> in the project list.... | 15:34 |
Zara | having it in the ProjectListController sounds more sensible, though that means repeating it for stories and other things | 15:35 |
Zara | but that'd still be preferable to the current soa imo | 15:35 |
Zara | I'm guessing there's probably a nice way of splitting it off, but I'd need to learn more about angular scope, so I'd like to at least get an ugly solution to start with. | 15:37 |
SotK | yeah, I'm not sure how sharing the subscriptions object between each instance of the subscribe directive would work if it was created in the subscribe directive's scope | 15:38 |
Zara | if I've understood right, it's different depending on where you accessed it from. currently the templates pass resource-type and so on to the things in the directive, so you'd say <subscribe resource="project"></subscribe> in project_list.html, and then that GETs an object that's a list of all the subscribed projects. | 15:44 |
Zara | I might have completely misunderstood the question, though | 15:44 |
*** jasondotstar has quit IRC | 16:00 | |
*** jcoufal has quit IRC | 16:04 | |
*** openstackgerrit_ has joined #storyboard | 16:08 | |
*** mrmartin has quit IRC | 16:53 | |
*** mrmartin has joined #storyboard | 16:54 | |
*** lexholden has quit IRC | 17:11 | |
*** jasondotstar has joined #storyboard | 17:12 | |
*** notnownikki has quit IRC | 18:05 | |
*** lexholden has joined #storyboard | 18:05 | |
*** openstackgerrit_ has quit IRC | 18:06 | |
*** MarkAtwood has joined #storyboard | 18:49 | |
*** MarkAtwood has quit IRC | 19:46 | |
*** mrmartin has quit IRC | 20:30 | |
*** jtomasek has quit IRC | 21:17 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!