Commit Graph

247 Commits

Author SHA1 Message Date
kikito
08cf75fb95 Fixes bug: users were creating new organisations instead of updating existing ones 2015-09-12 19:30:26 +02:00
Juanjo Bazán
6b0edac6fc adds responsible_name to organizations 2015-09-12 18:16:14 +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
Juanjo Bazán
60089b8986 uses author info in comment/debate cache
author is already preloaded and we avoid expensive touching methods
2015-09-06 12:13:39 +02:00
Juanjo Bazán
e3449723b3 Merge pull request #370 from AyuntamientoMadrid/verified_users
Verified users
2015-09-06 11:35:56 +02:00
rgarcia
cbd4e30e80 fixes specs 2015-09-06 11:15:24 +02:00
Enrique García
c28c39e052 Merge pull request #371 from AyuntamientoMadrid/residence_verification_tries
increases residence verification tries only after a Census call
2015-09-06 00:03:36 +02:00
rgarcia
34218d112b increases residence verification tries after a Census call 2015-09-05 23:57:47 +02:00
rgarcia
2260de9451 uppercases document number 2015-09-05 23:04:13 +02:00
rgarcia
17a1bedec0 removes document type from verified users query 2015-09-05 22:57:54 +02:00