13:42:16 #startmeeting GlitterGallery GSoC Coding KickOff 13:42:16 Meeting started Wed May 20 13:42:16 2015 UTC. The chair is banas. Information about MeetBot at http://wiki.debian.org/MeetBot. 13:42:16 Useful Commands: #action #agreed #halp #info #idea #link #topic. 13:42:50 #topic Rollcall 13:43:00 here! 13:43:00 .hellomynameis sarupbanskota 13:43:01 banas: sarupbanskota 'Sarup Banskota' 13:43:41 sonakr 13:43:47 what's your FAS id? 13:43:53 sonalkr132 13:43:54 just do .hellomynameis ID 13:44:13 .hellomynameis sonalkr132 13:44:21 .hellomynameis sonalkr132 13:44:22 sonalkr132: sonalkr132 'Aditya Prakash' 13:44:29 yay! it works 13:44:50 anyway! in name of keeping it quick and short 13:45:03 great, moving on 13:45:12 I am working on exploration page but I am stuck. 13:45:16 #topic Fedora GSoC stuff 13:45:22 yep, before we get to that 13:45:51 yeah.. before that? 13:45:56 sonalkr132: is the planet thing set up? 13:46:04 you need me to add you to my .planet right? 13:46:34 yup! if you want to be added to summer coding then you would need to get your application approved first 13:46:47 #action banas Add sonalkr132's blog to planet 13:47:03 nah, that won't be needed, I'll add you to the main planet itself :) 13:47:22 just need you to be on some planet, so the community knows what you're up to 13:47:42 okay. thats cool. let me know when you have done it. I will set up things on my side after that. 13:47:46 #action sonalkr132 send banas an email with the rss feed link to the blog with the right category 13:48:26 and the next thing, please remember to be at the infra meeting tomorrow. 13:48:49 yeah I will. actually it is not on fedora-admin as you said 13:48:50 #info #fedora-admin meets Thursdays at 11.30pm IST 13:49:01 was it fedora meeting then? 13:49:05 #undo 13:49:05 Removing item from minutes: INFO by banas at 13:48:50 : #fedora-admin meets Thursdays at 11.30pm IST 13:49:30 check this https://fedoraproject.org/wiki/Infrastructure 13:49:30 #info fedora-admin meets Thursdays #fedora-meeting at 11.30pm IST 13:49:52 both wiki and log of meetings say that it was on fedora-meeting 13:50:10 yup, sorry I got it wrong, now you know 13:50:17 I will make sure I am there. I am already feeling bad enough that I missed last two. I didn't know it was necessity. 13:50:27 no worries. 13:50:42 thanks for letting me know. 13:50:43 so that's with the fedora stuff 13:50:56 is there any google specific stuff you need help with? 13:50:58 I guess so. 13:51:30 not really. we can more on to important stuff now 13:51:34 move* 13:51:37 cool. 13:51:44 #topic Status Update 13:51:57 so what are you working on currently? 13:52:28 Exploration page but as I mentioned I am stuck 13:53:18 I have pushed the part where user is able to add stars and projects also have field for average starts from all users. 13:53:51 I also have the ajax call of dropdown of sorting working locally. 13:54:09 right, these stars are like a rating as opposed to a bookmark? 13:54:21 Let me know if following sorting categories are enough (or if I need to drop any of them): 13:54:45 - no of followers 13:54:49 - no of forks 13:55:39 - average star given by users project (where no of users who gave rating > 10) 13:55:42 yep, what's more important - we need last updated, last created, so on 13:56:00 - activity ( most comments and issues closed in last 10 days) 13:56:05 sort by creation date and updated date. 13:56:18 okay I will add that add weel 13:57:27 great. so what were you stuck with? was it something implementation specific? 13:59:29 sorry I got disconnected 13:59:35 Did I miss anything? 13:59:46 not really, i asked what you were stuck with 13:59:51 and then i think your connection broke 14:00:11 Do you understand what of stars have added? 14:00:15 kind of* 14:00:33 Do you understand what kind of stars I have added? 14:01:30 from what I understood - i can give no of stars to a project depending on how much i "like" it 14:01:40 yup 14:01:46 and then you do an average off all the stars a project has received 14:02:12 yeah. Actually I forked one of that PR on the gem I am using. 14:02:53 I patched a few things there and right now I using the gem directly from my repo. I hope that won't be a problem 14:03:08 nah, as long as it gets the work done :) 14:03:44 it is working fine. besides it is very small, if anything comes up, I am sure I can fix it 14:03:50 now being stuck part 14:03:51 great 14:04:12 No matter how I think of doing shorting it is going to take a lot of time 14:05:09 shouldn't that problem only arrive when we have a considerable no of projects? 14:05:30 for ex: no of followers.. 14:05:54 we first find all the projects and then perform sorting on that array on followers count 14:06:23 it goes to each project and finds numbers of followers, each query taking on an avg of 0.3 ms 14:06:41 so for just 1000 projects it will take 3 seconds 14:07:34 same happens with no of fork. 14:08:00 quick question - are you not storing the no of followers somewhere? 14:08:21 no. but that is one of the possible solution 14:08:46 we add a cache cloumn of followers count in projects table 14:09:11 yep, that's the first thing to do, before attempting to improve querying time 14:09:12 I would say we can do that if problem was over with that. Coming to no of forks! 14:09:30 ancesty has this method node.descendants.count 14:10:15 but that works only on objects and not on class, so once again needs to find all the projects first and then sort them with and each do loop 14:10:57 I guess we can store no of forks in another column as well, so far we have added two such cache columns 14:11:49 yep 14:11:51 moving on to avg stars, which again can work only on objects and not class itself. so we add third cache column. 14:12:19 So i should just keep adding cache columns wherever I need them? 14:13:49 i think that's the first thing to do, unless we hit some complex slow query problem - but we aren't there yet so I would rather not optimize before the problem shows up :) 14:14:44 Wouldn't the project table be just too big 14:15:08 i think.. that's expected, it certainly isn't too big yet 14:15:54 so let's stick to adding more columns for now :) 14:16:06 okay. btw whenever association comes up in sorting we have two solutions (as far as I know) 14:16:52 we can either form a table join (no storing of count in db, however kinda slow) 14:17:13 or we just add that cache column again (storing in db but faster). 14:17:58 most of sorting category we define will be going through association 14:18:41 for ex: avg stars through rating, no of issues through issues, no of followers through followers 14:19:14 essentially, you want to avoid storing something in a db if it's stored somewhere else already. or, if an operation can be done quickly enough to not requore storing. anything else and you can take the liberty of using another column 14:20:13 It can be avoided but it will be slow. which can be further dealt with cron jobs 14:21:08 yep 14:21:24 what else is left to discuss? it'd be great if you could start an email thread about this 14:21:26 I guess it finally comes to 'sorting with no cache columns and cron jobs' or 'sorting with cache columns' 14:21:44 with paul and emily, so everyone's opinions can be factored in 14:21:51 okay. I will ask other about this too. 14:22:09 I was going to take up authorization 14:22:21 i personally feel the extra columns won't be too expensive in this case, but let's also see what the others have to see 14:22:27 cool. 14:22:44 is the tagging PR ready to merge? the demo looked fine to me. 14:23:24 Yes, except that xss PR and exploration page, all are ready to merge 14:24:00 alright, cool 14:24:10 how about this one? https://github.com/glittergallery/GlitterGallery/pull/296 14:24:27 You should probably start with ajax comment one tho. If there is any merge conflict it will be easier for me to solve them from oldest to newest 14:24:35 alright cool 14:24:38 i'll do one thing 14:24:54 later tonight (or tomorrow night - i'llbe traveling during the day) 14:25:02 i'll ping you and lets get stuff merged 14:25:24 yeah sure. 14:25:31 and I'll also review your Pivotal and assign you with stuff 14:25:46 alright, great 14:25:52 let's call it a wrap for now? 14:26:30 yeah for now! We need to figure out a lot of things. I had to write down all the things I need to ask so that I don't forget 14:26:59 cool :) and remember to blog about your progress. 14:27:07 see you around then. bye! 14:27:11 #endmeeting