Saturday 24 May 2014

#include "week1"



This week was mostly about getting acquainted with codebase and reflecting small changes while working on it.

Initially I wanted to add a column "language" to the existing posts model. I tried it many ways but failed initially. By declaring it as "xml_attr" worked but then I failed to assign value like "english" etc. due to validations . Then skipped validations by using .update_attribute and then it worked. Turns out that only existing attribute types from existing model can be declared.

This might work now but will certainly create issues in future as we don't need language as a xml attribute, so I didn't reflect any changes and searching for alternatives.

I decided to proceed similarly as the existing "/tags" field. Will add relevant js files and controllers in coming weeks.

I finally found out the template being used to display stream and comments. It's a format I am not very used to so still exploring how to exactly reflect changes.

I have created a new branch language_filter. I have added the model, spec and migration for language. One can either add model and use rake db:migrate or the existing application and run "rake db:seed" (this part should be done in both the cases) to add all the entries to the language table. Changes can be seen by opening the branch.

Sunday 18 May 2014

#Begin





I have been selected for the project Language Filter for Diaspora by SMC . I am super excited about this and have been exploring the codebase and their formats.

Hopefully GSOC with Swathanthra Malayam Computing is going to be fun. I am mentored by Ershad K. and Praveen. Short description about my project can be found here .

To start with there were many views and it was really hard to find relevant ones so I'll be using RailsPanel to find relevant controllers and views and use them accordingly.

I have already implemented emoticons support for diaspora so I am slightly aware of their coding standards and will try my level best to keep up with it.