aboutsummaryrefslogtreecommitdiff
path: root/app
Commit message (Collapse)AuthorAgeFilesLines
* Fix two XSS injectionsHEADmasterPetteri Räty2011-08-021-1/+1
| | | | The EmailAddress problem was submitted upstream to hobo.
* Don't show wrong unanswered questions countJoachim Filip Ignacy Bartosik2011-07-231-0/+1
| | | | | | Fix bug: https://bugs.gentoo.org/show_bug.cgi?id=355909
* Show links to answers on user questions listingJoachim Filip Ignacy Bartosik2011-07-231-2/+2
| | | | | | Fix bug: https://bugs.gentoo.org/show_bug.cgi?id=355721
* Don't show "Start mentoring this recruit" button on non-recruit pagesJoachim Filip Ignacy Bartosik2011-07-231-1/+1
| | | | | | Fix bug: https://bugs.gentoo.org/show_bug.cgi?id=355723
* Fix grammar errorJoachim Filip Ignacy Bartosik2011-07-091-1/+1
|
* Show note about editing mentor relation on user edit pageJoachim Filip Ignacy Bartosik2011-07-091-1/+10
|
* Don't show (Not available) card on answer pagesJoachim Filip Ignacy Bartosik2011-06-011-1/+1
| | | | | | | The application showed (Not available) card when someone viewed answer for question with no reference answer. Then the reference answer was nil. Anyone could view nil, but it was shown as (Not available) card. Fix bug: https://bugs.gentoo.org/show_bug.cgi?id=368179
* Show question content when creating or editing answerJoachim Filip Ignacy Bartosik2011-05-311-0/+1
| | | | | Fix bug: https://bugs.gentoo.org/show_bug.cgi?id=356847
* Make users with empty nick and openid validJoachim Filip Ignacy Bartosik2011-05-311-2/+2
| | | | | Bug https://bugs.gentoo.org/show_bug.cgi?id=368617
* Add developer roleJoachim Filip Ignacy Bartosik2011-05-312-4/+3
| | | | | Fix bug: https://bugs.gentoo.org/show_bug.cgi?id=368185
* Improve ready recruits listingPetteri Räty2011-03-191-1/+2
| | | | | | Recruits who don't have any categories should not be considered ready. There's plenty people signing and not answering anything so they should not be listed. Fixes bug #355717.
* Categories are selectable for new questionsPetteri Räty2011-03-192-1/+3
| | | | | The new question form was missing the inputs for categories. There are now there and covered by our test suite.
* Questions can belong to many categoriesPetteri Räty2011-03-128-19/+47
| | | | | | | 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.
* Rename QuestionCategory to CategoryPetteri Räty2011-03-1213-28/+28
| | | | | | 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.
* Fix deprecation warnings from delayed_jobPetteri Räty2011-02-224-5/+5
|
* Start tracking migrationsJoachim Filip Ignacy Bartosik2010-12-151-18/+0
| | | | | | | 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.
* Load Mail::Message customization automaticallyJoachim Filip Ignacy Bartosik2010-12-032-2/+0
|
* Email answers allow checking signaturesJoachim Filip Ignacy Bartosik2010-12-023-6/+9
| | | | | Use Mail gem for receiving emails. Changed fixture email question to require a valid signature. Tests for signatures validation.
* Send emails as delayed jobJoachim Filip Ignacy Bartosik2010-11-095-5/+23
|
* Pie chart on how recruits evaluated documentation on questions how pagesJoachim Filip Ignacy Bartosik2010-10-055-0/+47
| | | | | Charts are shown only to recruiters on questions show pages, but other users may view charts directly (by entering URL manually).
* Add copyright notice to *.rb files under lib/ and app/Joachim Filip Ignacy Bartosik2010-09-0133-0/+462
|
* One-click way to start or stop mentoring recruitJoachim Filip Ignacy Bartosik2010-08-161-0/+12
|
* Move Role where it belongs to app/rich_typesJoachim Filip Ignacy Bartosik2010-08-164-5/+7
|
* Simplify Question permissionsJoachim Filip Ignacy Bartosik2010-08-161-4/+0
| | | | | Removed unnecessary check if user is signed up from Question#view_permitted? Behaviour didn't change.
* Changed ProjectAcceptance permissionsJoachim Filip Ignacy Bartosik2010-08-161-6/+2
| | | | | | * Don't allow mentor of owner of answer to destroy it * Add test to make sure project lead can create acceptance only if accepting nick is nick of the lead
* Make answer relation of Comment readonlyJoachim Filip Ignacy Bartosik2010-08-141-1/+1
|
* Document modulesJoachim Filip Ignacy Bartosik2010-08-141-13/+27
| | | | Permissions and RichTypes
* Document modelsJoachim Filip Ignacy Bartosik2010-08-1415-0/+79
| | | | | | | | | | | | | | | | | | | Documented models: Answer Comment EmailAnswer Guest MultipleChoiceAnswer Option Question QuestionCategory QuestionContentEmail QuestionContentMultipleChoice QuestionContentText QuestionGroup User UserCategory UserQuestionGroup
* Improve coverage of ProjectAcceptance model and fix found bugJoachim Filip Ignacy Bartosik2010-08-141-2/+2
| | | | | I defined view_permitted not view_permitted? so the function was ignored.
* Factory for guests to simplify testsJoachim Filip Ignacy Bartosik2010-08-141-0/+1
|
* Improve coverage of User model and fix found bugsJoachim Filip Ignacy Bartosik2010-08-141-2/+4
| | | | | | | | | | | Found bugs: - User#any_pending_project_acceptances? was returning true even if all acceptances were already accepted - User#answered_all_multi_choice_questions? didn't work with grouped multiple choice questions Side note : scopes in Question need cleaning (eg. unanswered should just select unanswered questions (not unanswered and grouped like it does now))
* Improve Answer model tests coverageJoachim Filip Ignacy Bartosik2010-08-141-2/+2
| | | | | | | And fix bugs found when adding tests: - Answer#view_permitted? was broken when owner was nil - Answer#wrong_answers_of was returning answers for non-multiple choice questions if they didn't match reference answers.
* Improve coverage of QuestionContentEmail modelJoachim Filip Ignacy Bartosik2010-08-141-6/+1
|
* Don't show input for mentors to users who can't edit itJoachim Filip Ignacy Bartosik2010-08-111-1/+5
|
* Recognize users that register using OpenID from dev.gentoo.org as mentorsJoachim Filip Ignacy Bartosik2010-08-111-0/+12
| | | | | This is available only during registration because users can set their openids freely after they have registered.
* If user is invalid only thing [s]he can do is editing his/her account.Joachim Filip Ignacy Bartosik2010-08-114-0/+21
|
* Alternative login with openIDJoachim Filip Ignacy Bartosik2010-08-115-1/+32
|
* Content inside <content-body:> instead of <content:> on users/questions pageJoachim Filip Ignacy Bartosik2010-08-111-8/+4
|
* Bugfix - previous commit was tested unproperly and introduced some bugsJoachim Filip Ignacy Bartosik2010-08-091-1/+1
| | | | | | 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.
* Add :null => false to required fields and relations in models.Joachim Filip Ignacy Bartosik2010-08-0510-17/+17
|
* Change navigation tab Suggestion Questions to Suggest QuestionsJoachim Filip Ignacy Bartosik2010-08-051-1/+1
|
* Only owner can edit feedback of answerJoachim Filip Ignacy Bartosik2010-08-051-0/+4
| | | | | Previously mentors were allowed to edit feedback but they weren't allowed to update answer with changed feedback.
* Put content inside <content-body:> instead of <content:>Joachim Filip Ignacy Bartosik2010-08-057-12/+16
|
* Replace try with _? where possibleJoachim Filip Ignacy Bartosik2010-08-056-8/+8
|
* Remove unneeded try-sJoachim Filip Ignacy Bartosik2010-08-051-2/+2
|
* Add functions to Guest model to avoid try-sJoachim Filip Ignacy Bartosik2010-08-0512-37/+40
|
* Make tests pass on MySQLJoachim Filip Ignacy Bartosik2010-08-023-8/+8
| | | | | | | MySQL did not like some of our hand written SQL. Rewrote the parts so that tests pass on both PostgreSQL and MySQL. Changes in multiple choice setup in features are because the messy way we do things didn't work on MySQL. A cleanup of the steps is called for later.
* Don't show questions with no contentJoachim Filip Ignacy Bartosik2010-07-291-3/+4
| | | | Necessary fixes included.
* Show instructions when creating new question email contentJoachim Filip Ignacy Bartosik2010-07-291-0/+5
|
* Cover editing questions content with cucumber featuresJoachim Filip Ignacy Bartosik2010-07-292-2/+2
| | | | Changes needed to pass features included.