Commit Graph

124 Commits

Author SHA1 Message Date
Raimond Garcia
2a4adc2e60 Merge pull request #817 from microweb10/friendly_urls
Friendly urls
2016-03-02 17:51:00 +01:00
rgarcia
f82a590e1e reverts debate links 2016-02-19 19:08:35 +01:00
kikito
7393f4dd93 fixes error when editing a debate link 2016-02-08 17:06:03 +01:00
kikito
2a55c2d94d refactors debate_links using an attr_accessor
refactors debate_links using an attr_accessor
2016-02-08 15:31:36 +01:00
palomahnhp
2ee90ac76e share links to debate 2016-02-08 10:32:57 +01:00
rgarcia
af6bfdbb46 moves search logic to a searchable module 2016-02-05 14:10:02 +01:00
kikito
d452dcda5b Replaces old search by new pg_search-based method in debates 2016-02-04 20:06:30 +01:00
kikito
014852665d refactors the way debate searches are done 2016-02-04 17:26:49 +01:00
rgarcia
21b9e31f11 uses geozones instead of district tags 2016-01-25 22:28:46 +01:00
Juanjo Bazán
09b53a3d0a Merge pull request #822 from consul/advanced-search
Advanced search
2016-01-18 15:17:17 +01:00
Josep Jaume Rey Peroy
5de3d700e4 Simplify Settings API 2016-01-18 12:43:34 +01:00
Alberto Garcia Cabeza
8ef74f1e11 Merges master branch 2016-01-18 11:33:49 +01:00
rgarcia
d147cec929 moves filters to a concern 2016-01-13 19:25:48 +01:00
Julian Herrero
bf302be879 add frendly urls for debates and proposals 2016-01-08 17:24:49 +01:00
pardoam
b2686cc6d1 five_last_week 2015-12-02 14:48:41 +00:00
rgarcia
44f2b49647 adds consistency between debates and proposals 2015-11-23 13:40:31 +01:00
rgarcia
a44242b82a orders results after search 2015-11-23 13:40:05 +01:00
rgarcia
ebf44c8777 temporarily using old search for debates 2015-10-30 21:54:15 +01:00
rgarcia
9132406569 bringing back standard pg_search configuration for debates 2015-10-30 21:53:58 +01:00
rgarcia
640bea39c5 removes tsearch for debates 2015-10-30 21:35:16 +01:00
rgarcia
3eb9fb41aa increasing trigram threshold for debates 2015-10-30 21:32:16 +01:00
rgarcia
57b9266675 removes dictionary from debate search 2015-10-30 21:24:46 +01:00
rgarcia
196bc04901 adds pg_search to debates 2015-10-29 14:26:20 +01:00
kikito
b27c91f40b disallow voting debates or proposals when user is nil in some tests 2015-10-20 18:59:35 +02:00
rgarcia
6832b0e404 makes spaces consistent 2015-09-28 15:08:08 +02:00
rgarcia
7b9f2c9695 refactors sanitizable behaviour 2015-09-28 15:06:22 +02:00
rgarcia
590c0b9242 refactors length validations 2015-09-28 14:48:53 +02:00
rgarcia
6d5d60c0df refactors conflictable behaviour 2015-09-28 13:38:48 +02:00
rgarcia
8e42055ece refactors taggable behaviour 2015-09-28 13:33:57 +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
kikito
757205a93e Unifies bulk & debates moderation forms in a single one 2015-09-21 15:41:01 +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
0418872fff tidies up a bit and adds wild: true for tag-based debate searching 2015-09-17 14:48:43 +02:00
David Gil
f231104edc adds setting to control max number of votes for a Debate to be editable 2015-09-15 21:08:01 +02:00
David Gil
497c595704 considers tags within a debate search 2015-09-15 15:06:34 +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
kikito
d57d538f3b Extracts Flammable module from comment & debate 2015-09-12 14:05:24 +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
David Gil
8ed434cc8b uses more rails-like syntax in scopes 2015-09-10 18:44:33 +02:00
kikito
2d3015703d replaces constants by class methods + private functions. Fixes broken tests 2015-09-10 13:02:21 +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
rgarcia
e555126331 tracks debate visits from the controller 2015-09-09 14:41:19 +02:00
rgarcia
d843690586 takes into account precision for confidence score 2015-09-08 15:44:04 +02:00