| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
When migrating to many to many question categories bring over the
existing category information.
|
|
|
|
|
|
|
| |
While starting to input quiz questions for the arch tester quizzes we
found out that it would be best if questions could belong to many
categories. Now the relationship between questions and categories is
many to many. Bug #356179.
|
|
|
|
|
|
| |
We have a need for a many to many between questions and categories so
start the work by renaming QuestionCategory to just Category. This
allows us to add a pivot model with the name QuestionCategory.
|
|
|
|
|
|
|
| |
Migrations are useful for applications that are working, so
we shall track them. Includes initial migrations.
Removes app/models/job.rb because it caused problems for hobo_migration
generator.
|
|
|
|
|
| |
Use Mail gem for receiving emails. Changed fixture email question to require a
valid signature. Tests for signatures validation.
|
| |
|
| |
|
|
|
|
|
|
| |
Answer can't enforce :null=>false on content field of answer because
when user answers multiple choice question and selects no options
his/her answer will have empty content field.
|
| |
|
|
|
|
|
|
| |
Also make sure users can answer questions with multiple and text
content and can't answer email questions within application. Added
"Gentoo-dev-announce posting" question to seed
|
|
|
|
|
| |
The task fetches Gentoo project leads data from gentoo.org and stores it
in tmp/lead_data.yml
|
| |
|
|
|
|
|
| |
Replaced logic expressions with return-ifs. Changed one function to
named scope
|
|
|
|
|
|
| |
A tiny bug (missing try) was discovered when making this commit:
multiple choice question with no options could not be displayed. This
commit fixes the bug.
|
|
|
|
| |
Configuration for that check is stored in config/config.yml
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Added index of question groups (supports filtering by category).
|
|
|
|
| |
Example of alternative questions from Betelgeuse.
|
|
|
|
|
|
| |
When adding user to category associate user with one question from each
group in this category. Feature to make sure question listings are
correct.
|
| |
|
| |
|
|
|
|
| |
Questions and users data moved to external YAML files.
|
|
|
|
|
| |
User has many project acceptances. Project acceptance can be marked as
accepted only by user with proper nick.
|
|
|
|
| |
Nicks must be unique. Mentors and recruiters must have nicks.
|
|
|
|
|
|
|
| |
Generated Comment model and CommentsController.
Added relation (answer has many comments, comment belongs to answer).
Added email notification when new comment is created.
This commit includes also schema change and tests.
|
| |
|
|
|
|
|
|
| |
Answer approved status can be changed by mentor of answers owner. When
owner of answer changes answer it must be saved as unapproved. Added
approved answers to seed.
|
|
|
|
|
| |
Only recruiters can create, update, edit, destroy reference answers.
Only one reference answer per question is allowed.
|
| |
|
| |
|
|
|
|
|
|
| |
And tests for permissions them. Any logged in user can create, update,
view, delete answers [s]he owns. No one can change answers someone else
owns. Recruiters can view all answers.
|
| |
|
|
|
|
| |
Answer belongs to question.
|
|
|
|
| |
Question belongs to QuestionCategory.
|
|
|
|
|
| |
Role is a separate model. User is invalid if is non-recruiter administrator.
Administrators can change role of anybody. No one else can change anybody's role.
|
|
|