Weekly report #1 – after first week of work

2010/05/25 at 11:23 am (GSoC 2010, Hobo, Planet Gentoo, Programming, Ruby on Rails, WebApplication)

I think it’s about time I should write what I’m doing: web application for Gentoo Recruiters team. I’m doing it using Ruby on Rails with Hobo.

I finished my first week of work. This week’s goal was to get something basic working. This week I’ve completed a few tasks:

Setting up hobo project. It was pretty basic. I created new hobo application and created .gitignore file.

Roles for users. User can be recruit, mentor or recruiter or guest. I initially planned to use lifecycle to do it but Hobo allows only users in active state to log in. I made a separate model for role. After that and I noticed Hobo Enum Strings and replaced my Role model with HoboFields::EnumString.for(:recruit, :mentor, :recruiter) . Recruiters (an only recruiters) can be administrators. Administrators can do some things nobody else can.

Creating new questions. Recruiters can create questions and question categories (which is wrong – only administrators should be allowed to do that). Each question belongs to one category.

Answering questions. Any user logged in can create an answer. Every answer belongs to a question and is owned by user who created it. Recruiter can give user categories of questions. Users should answer all questions in categories they were assigned. Users can see all questions in categories they were assigned, all questions they answered (including those from other categories) and all questions in categories they were assigned, but they didn’t answer. In all questions listings answered questions are marked.

Viewing recruit answers. Registered user belongs to mentor (another user with role mentor or recruiter). Mentors can view answers of users they are mentoring. They can see:

  • Answers given by each user they are mentoring.
  • All answers given by all users they are mentoring.
  • All answers for questions in each category, given by all users they are mentor.

Demo. I put application on Heroku.

Finally a few links:

  • Working demo of my work on Heroku.
  • Git repository with my project on overlays.gentoo.org. Accepted commits go there. Once a commit went there you can expect it to stay there.
  • Git repository with my project on github. Commits there get edited a lot before they are pushed to repository on overlays.gentoo.org.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: