Javi Martín
9fe8c47528
Apply Rails/SafeNavigation rubocop rule
2019-09-10 21:43:39 +02:00
Javi Martín
f9ed186909
Add rubocop spacing rules
...
We were following these rules in most places; we just didn't define them
anywhere.
2019-09-10 21:04:56 +02:00
Javi Martín
b5b07bccd3
Apply PercentLiteralDelimiters rubocop rule
2019-09-10 20:02:15 +02:00
Senén Rodero Rodríguez
ed750f6cce
Move private method to a more reusable location
...
This method will be used by any translatable model that uses pg_search
feature so it's better to have it within globalizable model concern so
all translatable models can use it.
2019-06-27 09:19:36 +02:00
Senén Rodero Rodríguez
036a3d7636
Add translations to debate pg_search_scope
...
Some Debate attributes are now translatable so we need to include all
existing translations on pg_search scope.
2019-06-27 09:19:36 +02:00
Senén Rodero Rodríguez
740c738fc5
Add debate translations
2019-06-27 09:19:36 +02:00
German Galia
9d1ca3bfd4
Report generation. Download csv
2019-06-12 10:17:31 +02:00
Juanjo Bazán
b7d9ef6377
models inherits from ApplicationRecord
2019-04-17 17:40:56 +02:00
Julian Herrero
3ba961a2d7
Use double quotes in models
2019-03-14 17:25:43 +01:00
Javi Martín
6682121069
Reuse code to set and order by a random seed
2019-02-20 12:10:12 +01:00
decabeza
4e4804e180
Replace total votes to cached_votes_score on debates
...
This show votes_score as result of votes_up minus votes_down
2019-02-12 18:42:35 +01:00
Julian Herrero
ef835bef1c
new algorithm for filter 'most active'
2018-12-13 11:42:22 +01:00
Angel Perez
a143fa447b
Ensure recommendations are only shown when enabled
2018-07-15 21:28:58 -04:00
Angel Perez
522c206f6d
Enable 'Recommended debates' setting for users
2018-07-15 21:28:57 -04:00
María Checa
a1f840e8fd
Added improvements to related contents
2018-01-12 18:35:15 +01:00
rgarcia
2b52d26d82
refactors notifications into concerns and shared examples
2017-12-14 16:15:30 +01:00
Bertocq
13f5fa55ab
Use Relationable concern on Debates, Proposals and Budget Investments
2017-11-29 19:01:12 +01:00
Bertocq
ce0a7f6fad
Rubocop autocorrections
2017-10-17 22:00:00 +02:00
Senén Rodero Rodríguez
92c774cdeb
Merge with master
2017-09-28 13:36:20 +02:00
Bertocq
c5059f7292
Fix Style/ParenthesesAroundCondition rubocop issues
2017-09-25 22:46:09 +02:00
taitus
edbbe6174b
Refactor specs because now recommendations only return results asociated to user interests
2017-08-03 00:23:06 +02:00
taitus
b412f8a88c
Avoid duplicate proposals with group on query. Avoid show successful proposals on recommendations.
2017-08-02 14:31:02 +02:00
taitus
7afacf3a2f
Force distinct to recommendations methods. Sort by recommendations on home carousel.
2017-08-02 12:52:55 +02:00
taitus
52e3610876
Minimum required by consul core. Remove comments. Fix texts. Decrease size of methods.
2017-08-02 00:15:03 +02:00
taitus
5f1bdb2f94
Rename recommendeds to recommendations
2017-08-01 16:31:45 +02:00
taitus
dc5584086a
Styles for filters. Refactor commentable action.
2017-08-01 16:31:45 +02:00
taitus
fe3bb7a389
Add recommended tab on proposals and debates index.
2017-08-01 16:31:44 +02:00
Bertocq
2888c20489
Fix all Style/RedundantSelf rubocop issues
2017-07-05 11:55:52 +02:00
Alberto Miedes Garcés
9ec8b166d7
Use scopes for better query performance
2017-06-01 20:04:51 +02:00
Alberto Miedes Garcés
6b47ce065f
Fix buggy associations
2017-01-27 14:27:28 +01:00
Alberto Miedes Garcés
5b7cbccd19
Merge branch 'master' into api-dev
2017-01-26 12:39:59 +01:00
Alberto Miedes Garcés
83267330a7
Group methods related to text generation for GraphQL documentation into a module
2017-01-26 10:47:12 +01:00
Alberto Miedes Garcés
e3fca5c49f
Remove functionality related to votes demographic info
...
Since this was giving me too much pain and nobody actually requested
this functionality, I decided to remove it.
2017-01-25 13:37:29 +01:00
Alberto Miedes Garcés
6940b90260
Add more fields to api.yml
2017-01-09 14:11:51 +01:00
Alberto Miedes Garcés
861a723724
Only show public_voter if votable.total_votes are above threshold
2017-01-07 17:22:18 +01:00
Alberto Miedes Garcés
9c6001e987
Move public_author into module
2017-01-01 20:46:08 +01:00
Alberto Miedes Garcés
2311cd4b1d
Renamed User::public_activity scope
2016-12-26 18:42:12 +01:00
kikito
2a2179d0f3
Merge branch 'master' into budget
2016-11-28 11:41:49 +01:00
rgarcia
bb3c4c6399
adds consistency to ruby code style
...
Keep a blank line before and after private
Keep a blank line before and after protected
Remove extra empty line at class body end
Remove extra blank line
Add final newline
Use 2 (not 3) spaces for indentation
Use 2 (not 4) spaces for indentation
Remove space before comma
Add space after comma
Remove trailing whitespaces
Remove unnecessary spacing
Use snake_case for variable names
Do not use then for multi-line if
Remove unused block argument - i
Use the new Ruby 1.9 hash syntax
Remove unused assignment to variable
Indent when as deep as case
Align attributes
Align end with def
2016-11-15 11:18:43 +01:00
kikito
06f48b6fdd
Includes description in Sanitizable
2016-05-20 12:41:26 +02:00
kikito
dea1a28a69
purges simple_captcha
2016-04-27 16:07:47 +02:00
MaiteHdezRivas
3e7db9d1b5
Best practices code changes
2016-04-20 16:40:58 +02:00
MaiteHdezRivas
68f9a76cea
Mark debates as featured
2016-03-20 13:56:05 +01:00
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