Commit Graph

8032 Commits

Author SHA1 Message Date
Bertocq
3eecabe9a8 Prevent authors or users that already scored from scoring related content 2017-12-20 03:06:41 +01:00
Bertocq
c67851df53 Fix relatedcontent creation and scoring on related content controller 2017-12-20 03:06:06 +01:00
Bertocq
aa338484a7 Cleanup schemarb 2017-12-20 03:05:18 +01:00
Bertocq
e6a5071160 Fix typo on RelatedContentScore attribute score to value 2017-12-20 02:36:14 +01:00
Bertocq
a72cc58b49 Fix Related Content Score presence validations and unique composed key 2017-12-20 02:36:14 +01:00
Bertocq
e19153a26e Fix typo on RelatedContentsScore call to RelatedContentScore 2017-12-20 02:36:14 +01:00
Bertocq
2df7a92915 Cleanup db schema 2017-12-20 02:36:14 +01:00
Bertocq
585eb36871 Hide related content when scoring goes under threshold 2017-12-20 02:36:13 +01:00
Bertocq
d544d56722 Add correct user to RelatedContentScore on creation 2017-12-20 02:36:13 +01:00
Bertocq
2e0dd9caea Relationable find_related_content should not be used to find, refactored to have a single purpose 2017-12-20 02:36:13 +01:00
Bertocq
2688f2a919 Add author user to related content 2017-12-20 02:36:13 +01:00
Bertocq
4d2d7c1a0a Add act as paranoid to related content, with not_hidden scope using hidden_at 2017-12-20 02:36:13 +01:00
Bertocq
eac810cc6d Add hidden at to Related Contents 2017-12-20 02:36:13 +01:00
Bertocq
f21f5ec05e Refactor Related Content Controller score methods 2017-12-20 02:36:13 +01:00
Bertocq
065b0ed3c8 Create Related Content Scores 2017-12-20 02:36:10 +01:00
Bertocq
7cb20bb084 Remove related content positive/negative columsn from migrations & schema 2017-12-20 01:34:12 +01:00
María Checa
c9dbf3a90e Removed RelatedContent from flags helper 2017-12-19 21:24:39 +01:00
María Checa
8e4a39a066 Updated schema and fixed tests 2017-12-19 20:45:23 +01:00
María Checa
a8ca3ec5f7 Added related content one positive score by default on create 2017-12-19 20:15:29 +01:00
María Checa
44f8494079 Fixed tests 2017-12-19 19:40:09 +01:00
María Checa
b99a2eac6f Fixed tests 2017-12-19 19:10:43 +01:00
decabeza
44b34eb2ac shows add related content link if user is logged 2017-12-19 18:51:46 +01:00
decabeza
f03d922124 fixes styles for mobile size 2017-12-19 18:51:28 +01:00
decabeza
bf073d8535 adds styles to related content score 2017-12-19 17:52:43 +01:00
María Checa
03aaa82d86 Improved tests 2017-12-19 17:01:35 +01:00
María Checa
47a847c173 Added translations 2017-12-19 13:20:40 +01:00
María Checa
fcb6c7a19d Added related contents score views 2017-12-19 13:20:30 +01:00
María Checa
7d8b5838b9 Added new related contents score method 2017-12-19 13:14:12 +01:00
María Checa
853e655e0c Changed related_contents_report_threshold setting value 2017-12-19 13:13:20 +01:00
María Checa
e4e9ce9f3e Added positive and negative score columns to related contents 2017-12-19 13:12:28 +01:00
BertoCQ
94445d831a Merge pull request #2205 from consul/debates-related-content
Debates related content
2017-12-19 00:51:01 +01:00
María Checa
4192860a73 Added and improved related content tests 2017-12-18 23:56:44 +01:00
María Checa
3836b73482 Added related contents to debates 2017-12-18 23:56:32 +01:00
María Checa
5294f92bb2 Merge pull request #2203 from consul/related-content-report
Related content report
2017-12-18 22:32:02 +01:00
María Checa
8d7509917c Prevent relationable models from being cached 2017-12-18 22:25:22 +01:00
María Checa
4b181ead28 Added related content report views 2017-12-18 21:29:38 +01:00
decabeza
dfe077a30e renames times_reported to flags_count on relationable.rb 2017-12-18 20:13:29 +01:00
María Checa
0fd2b869ce Added tests 2017-12-18 18:22:01 +01:00
María Checa
4cbdede41d Adapted flags helper to related content 2017-12-18 18:22:01 +01:00
María Checa
d944a88c63 Added flag/unflag related content routes 2017-12-18 18:21:51 +01:00
María Checa
97f74ac531 Renamed related content times_reported column to flags_count 2017-12-18 18:21:46 +01:00
BertoCQ
0bd025962b Merge pull request #2200 from wairbut-m2c/aperez-proposal-recommendations
New scopes for proposal recommendations
2017-12-16 19:58:46 +01:00
Bertocq
70f2ee0cf5 Fix Time.now usage to Time.current to include zone 2017-12-16 17:59:16 +01:00
Bertocq
b02e2729e7 Rubocop style autocorrections 2017-12-16 17:59:16 +01:00
Bertocq
cf8cfe363b Fix gsub+downcase usage with parameterize 2017-12-16 17:59:16 +01:00
Bertocq
c2b5083d4f Fix missing and extra spacing 2017-12-16 17:59:16 +01:00
Raimond Garcia
3610c61d6f Merge pull request #2199 from consul/api-votes
Allows querying for a proposal's votes
2017-12-16 10:52:48 +01:00
Angel Perez
63317714c3 Proposal recommendations won't include archived or already supported proposals 2017-12-15 22:40:24 -04:00
Bertocq
0a668114d0 Update unreleased section of changelog 2017-12-15 22:48:39 +01:00
Alberto García
8dc7fcacc8 Merge pull request #2198 from consul/design
Design
2017-12-15 19:21:55 +01:00