Commit Graph

713 Commits

Author SHA1 Message Date
Raimond Garcia
d541db8acf Merge pull request #564 from AyuntamientoMadrid/ability-split
Splits ability.rb and specs into several smaller files
2015-09-28 17:36:10 +02:00
Enrique García
a050dfd1c1 Merge pull request #559 from AyuntamientoMadrid/address
removes unnecessary address from users
2015-09-28 17:35:48 +02:00
rgarcia
590c0b9242 refactors length validations 2015-09-28 14:48:53 +02:00
kikito
82af488ce3 Splits ability.rb and specs into several smaller files
I'm doing this in preparation for the "Manager" ability, which will
require even more refactors of the abilities (for example,
manager can not modify their own account)
2015-09-28 13:51:42 +02:00
rgarcia
fbb5db8062 removes unnecessary address from users 2015-09-26 13:45:37 +02:00
rgarcia
efd5f11dba updates error message [#500] 2015-09-24 17:22:38 +02:00
rgarcia
9ced80fe8c refactors verification specs [#500] 2015-09-24 17:21:09 +02:00
Juanjo Bazán
5617f9869e Merge pull request #545 from AyuntamientoMadrid/verification_postal_codes
Verification postal codes
2015-09-24 13:09:14 +02:00
rgarcia
1dee45337b fixes specs 2015-09-23 21:08:21 +02:00
rgarcia
3098fe3baa adds specs 2015-09-23 20:55:28 +02:00
Enrique García
44f19085a9 Merge pull request #539 from AyuntamientoMadrid/activities
Activities
2015-09-23 12:40:02 +02:00
rgarcia
ea9ea77219 adds consistent indentation 2015-09-23 12:34:00 +02:00
Enrique García
ae166a6836 Merge pull request #505 from dgilperez/debates_max_votes_editable
Adds setting to control max number of votes for a Debate to be editable
2015-09-22 16:52:52 +02:00
Juanjo Bazán
05237ca1e2 adds scopes for every actionable class to activity 2015-09-22 16:30:43 +02:00
Juanjo Bazán
9e922ad080 adds activity model 2015-09-22 16:30:43 +02:00
kikito
343025872b changes comment moderation to be similar to proposals moderation 2015-09-22 14:20:37 +02:00
kikito
793bc52d00 recalculates comments_count when restoring in addition to when hiding a comment 2015-09-18 11:00:18 +02:00
kikito
1e8605fa28 Replaces it "should xx" by it "xxs" in comment_spec 2015-09-18 11:00:18 +02:00
Juanjo Bazán
2ffb22a249 Merge pull request #519 from AyuntamientoMadrid/fix-tagcloud-488
Fix tagcloud
2015-09-17 17:24:39 +02:00
kikito
8ff8a1df7f Makes tags count only visible debates and proposals 2015-09-17 16:54:10 +02:00
David Gil
e985391a8e fixes test names 2015-09-17 15:52:49 +02:00
Enrique García
10d679dd3a Merge pull request #506 from dgilperez/small_test_speed_increase
Speeds 10s the test suite
2015-09-17 10:34:40 +02:00
Juanjo Bazán
1f42fba8ec adds validation for allowed age 2015-09-16 18:00:49 +02:00
Juanjo Bazán
46612bd01e cleans document number before residence check 2015-09-16 17:24:29 +02:00
Juanjo Bazán
fe9241c81b adds i18n to residence document error 2015-09-16 17:24:06 +02:00
David Gil
ddbc9243e2 speeds 10s the test suite by avoiding the creation a few unneeded objects 2015-09-15 21:40:50 +02:00
David Gil
42f1ffb171 adds tests for debate editable with max votes 2015-09-15 21:28:01 +02:00
kikito
8f8afdfd62 Proposals hot_score 2015-09-14 20:37:32 +02:00
kikito
47c95078f2 Extract score calculation to a module 2015-09-14 20:36:04 +02:00
kikito
9acb07c323 implements a new hot scoring system 2015-09-14 20:36:04 +02:00
rgarcia
6b15ccafe2 adds summary to proposals 2015-09-14 20:07:27 +02:00
rgarcia
c9e46e3d8f fixes conflicts 2015-09-14 16:46:00 +02:00
rgarcia
e9e339fa50 adds responsible name to proposals 2015-09-14 16:43:32 +02:00
Juanjo Bazán
1e96bba262 refactors account's email config 2015-09-14 14:09:24 +02:00
rgarcia
220c611927 consistent spec order in debates and proposals 2015-09-14 13:09:21 +02:00
rgarcia
39f8e56db9 adds register_vote spec 2015-09-14 13:09:07 +02:00
kikito
50148f0aaf Adds new abilities for proposals 2015-09-13 22:07:44 +02:00
rgarcia
ad8880d02c adds proposal votes 2015-09-13 21:56:52 +02:00
Juanjo Bazán
e610642485 adds autolinking to proposal's description 2015-09-13 18:03:00 +02:00
rgarcia
c2750a8461 fixes typo 2015-09-13 10:31:44 +02:00
kikito
5903ebe857 merges master and fix conflicts 2015-09-12 19:54:15 +02:00
Juanjo Bazán
6b0edac6fc adds responsible_name to organizations 2015-09-12 18:16:14 +02:00
kikito
22e8d615aa fixes abilities: level 3 users can vote proposals, not just level 2 2015-09-12 14:13:40 +02:00
Juanjo Bazán
e407173e4b adds code to proposals 2015-09-12 13:14:59 +02:00
Juanjo Bazán
8df5ed0e02 adds test for question presence 2015-09-12 12:55:08 +02:00
Juanjo Bazán
26113cac96 adds setting value check in Proposal#editable? 2015-09-12 12:53:22 +02:00
Juanjo Bazán
f22f0afe3c Merge branch 'proposals' of github.com:AyuntamientoMadrid/participacion into proposals 2015-09-12 12:52:22 +02:00
Juanjo Bazán
8111d523ce adds Proposal's model spec 2015-09-12 12:51:31 +02:00
kikito
68790ac8e5 adds abilities for proposals 2015-09-12 12:48:47 +02:00
Juanjo Bazán
8bf71e818b adds verification status methods to user 2015-09-11 14:39:43 +02:00