Commit Graph

1554 Commits

Author SHA1 Message Date
kikito
f80d7771a1 Adds paranoia & Flammable to proposal 2015-09-12 14:05:24 +02:00
kikito
d57d538f3b Extracts Flammable module from comment & debate 2015-09-12 14:05:24 +02:00
Juanjo Bazán
e407173e4b adds code to proposals 2015-09-12 13:14:59 +02:00
Juanjo Bazán
26113cac96 adds setting value check in Proposal#editable? 2015-09-12 12:53:22 +02:00
kikito
68790ac8e5 adds abilities for proposals 2015-09-12 12:48:47 +02:00
rgarcia
3fc4cf0c1b adds proposal's index 2015-09-12 12:47:28 +02:00
rgarcia
f2b917d486 adds proposal show 2015-09-12 12:30:20 +02:00
rgarcia
3f7338a6ae adds proposal new and create 2015-09-12 11:38:22 +02:00
Juanjo Bazán
104900d343 adds proposal model 2015-09-11 19:25:26 +02:00
rgarcia
58a780bac5 reverts postgres extension until permissions enabled at server level 2015-09-11 16:31:24 +02:00
kikito
c399ddf18d Adds default values to limits when the db does not have them
This prevents errors when doing rake db:setup (the db has still not
been created but the rails models are loaded)
2015-09-11 11:32:29 +02:00
David Gil
1833c83351 unaccents Debate.search terms and tests that 2015-09-10 21:03:55 +02:00
Juanjo Bazán
728dd28acf Merge pull request #460 from dgilperez/improve_comment_email_delivery_logic
Prevents users to receive email notifications about own comments and replies
2015-09-10 20:45:17 +02:00
rgarcia
abc68dc868 refactors lock tries [#279] 2015-09-10 20:26:49 +02:00
Enrique García
c1c213f773 Merge pull request #461 from AyuntamientoMadrid/final_verification-395
Final letter verification
2015-09-10 20:22:42 +02:00
Enrique García
1a804fc73d Merge pull request #454 from AyuntamientoMadrid/failed_census_call-277
Stores failed Census API calls
2015-09-10 20:21:15 +02:00
rgarcia
664852ce4e refactors storing of failed attempt [#277] 2015-09-10 20:16:49 +02:00
rgarcia
b7c1b4acee renames verify? methods [#395] 2015-09-10 20:08:11 +02:00
rgarcia
8186f5a240 refactors method names for validations [#395] 2015-09-10 20:06:45 +02:00
David Gil
d9300f1c10 prevents users to receive email notifications about own comments and replies 2015-09-10 18:46:00 +02:00
David Gil
8ed434cc8b uses more rails-like syntax in scopes 2015-09-10 18:44:33 +02:00
kikito
8596df1ea8 merges master and fix conflicts 2015-09-10 18:09:19 +02:00
kikito
95fc7ea949 remove constants / replace by class methods 2015-09-10 18:07:30 +02:00
rgarcia
547b7afc6b stores failed Census API calls [#277] 2015-09-10 18:00:23 +02:00
kikito
43bdfb940e merges master and fixes conflicts 2015-09-10 17:47:40 +02:00
kikito
249aed42c4 Makes welcome screen work using a sessions controller 2015-09-10 17:41:37 +02:00
rgarcia
fa2b6e78ef refactors address validation [#395] 2015-09-10 14:28:16 +02:00
rgarcia
cd74744e06 adds validation error for letter verification code [#395] 2015-09-10 14:27:02 +02:00
kikito
2d3015703d replaces constants by class methods + private functions. Fixes broken tests 2015-09-10 13:02:21 +02:00
rgarcia
b779e7903c refactors letter and sms generation codes [#332] 2015-09-10 11:45:19 +02:00
rgarcia
745dbc3f51 makes the letter code 6 digits [#332] 2015-09-10 11:44:09 +02:00
rgarcia
16dd609ad0 adds verification tries to letter code [#332] 2015-09-10 11:43:25 +02:00
kikito
f93173ef4a fixes typo 2015-09-09 19:37:52 +02:00
kikito
8c9f189d75 merges master and fixes conflicts 2015-09-09 19:36:23 +02:00
rgarcia
6a09e6548d reverts - stats with delayed jobs 2015-09-09 19:17:13 +02:00
kikito
5e7a5b57de Adds max lengths and validations in models 2015-09-09 18:32:36 +02:00
Raimond Garcia
bab31b0559 Merge pull request #448 from AyuntamientoMadrid/caches
Cache for comments
2015-09-09 17:01:11 +02:00
Juanjo Bazán
92bff4b4c3 adds :touch to ancestry
now nested comments caches invalidates automagically
2015-09-09 14:46:09 +02:00
rgarcia
e555126331 tracks debate visits from the controller 2015-09-09 14:41:19 +02:00
kikito
f46b17e19b Introduces User#block method 2015-09-08 19:08:47 +02:00
rgarcia
d843690586 takes into account precision for confidence score 2015-09-08 15:44:04 +02:00
Enrique García
db969b0380 Merge pull request #429 from AyuntamientoMadrid/confidence_score
Confidence score
2015-09-08 15:00:51 +02:00
rgarcia
96ae7575b1 adds confidence_score to debates 2015-09-08 14:40:14 +02:00
kikito
eac0928d0f changes on the hot-score calculation 2015-09-08 14:18:44 +02:00
rgarcia
bb5e18e609 refactors conflictive debates 2015-09-07 17:43:48 +02:00
rgarcia
6606d776f8 expires debate cache after a new flag 2015-09-07 17:24:53 +02:00
rgarcia
4ce95e2735 adds conflictive debates 2015-09-07 16:58:00 +02:00
Raimond Garcia
5b671ce623 Merge pull request #387 from AyuntamientoMadrid/improve_design
Improve design
2015-09-07 01:08:58 +02:00
rgarcia
17ce1f9d07 adds terms of service to users 2015-09-07 01:00:43 +02:00
Juanjo Bazán
26a2a67a71 refactors debate's tags related utility methods
tags are already loaded, using them instead of extracting them again for each debate saves 50 query per index (2 query per debate in the page)
2015-09-06 22:51:34 +02:00