Bertocq
2f7e81e5ca
Remove unused documentable_factory_name argument from documentable_attach_new_file helper method
2018-01-02 13:59:58 +01:00
Bertocq
d7d1a85fbb
Refactor documents and document view partials
2018-01-02 13:32:42 +01:00
Bertocq
46dc559301
Filter out nil related contents while listing them
2017-12-31 20:30:45 +01:00
Bertocq
83d6b7948d
Downscore archival date ordering label for consistency in english
2017-12-27 19:42:07 +01:00
iagirre
64aaa97d86
Add feature specs to check that edit links and "Selected" buttons are not displayed/enabled.
...
"Selected" button appears as text instead of dissapearing completely.
2017-12-27 16:23:21 +01:00
iagirre
ec8715efd3
Budget investments cannot be edited when budget is finished. Only milestones can be managed.
2017-12-27 12:15:38 +01:00
Raimond Garcia
910323eb73
Merge pull request #2221 from consul/map-validations
...
Map validations
2017-12-26 13:13:40 +01:00
rgarcia
2b9b78e38e
Add rake task to reset the cached votes counter
2017-12-26 12:40:26 +01:00
rgarcia
96066aee44
Validates map presence only on create
...
As we are using an attr_accessor to make sure a user accepts that the
proposal “has no map”, the validation was being run in every save.
Making other things break, for example the updating of the counter
cache `cached_votes_up`, when someone voted for the proposal, as the
attr_accessor `skip_map` was not present
2017-12-26 12:39:29 +01:00
Bertocq
44f297555c
Update unreleased section of Changelog
2017-12-26 12:24:21 +01:00
Bertocq
f6d23df862
Avoid using eval when send can do the job
2017-12-25 23:47:55 +01:00
Bertocq
2283237d44
Avoid Looking up factories by class is deprecated and will be removed in FactoryGirl 5.0
2017-12-25 23:46:51 +01:00
Bertocq
93e6a7e6aa
Fix indentation & spaces on map validation files
2017-12-25 23:34:18 +01:00
Alberto García
125b6705a9
Merge pull request #2217 from consul/error-message
...
Improves generic error message
2017-12-22 14:37:37 +01:00
decabeza
f95d5d4639
improves generic error message
2017-12-22 12:32:34 +01:00
Alberto García
4ddc253bfe
Merge pull request #2215 from consul/sitemap
...
Sitemap
2017-12-21 16:40:02 +01:00
decabeza
ef5cbc4638
adds legislation processes to sitemap
2017-12-21 14:44:30 +01:00
decabeza
466b6d9ec5
removes irrelevants pages from sitemap
2017-12-21 14:19:05 +01:00
BertoCQ
d534b02b3c
Merge pull request #2206 from consul/related-contents-score
...
Related contents score
2017-12-20 15:13:12 +01:00
Bertocq
01d5656884
Fix valid related content url helper method
2017-12-20 14:51:39 +01:00
BertoCQ
91a88f0b30
Merge pull request #2213 from consul/map-edit
...
Fix map location update
2017-12-20 14:13:33 +01:00
María Checa
1e23281c28
Fixed related content tests
2017-12-20 13:43:56 +01:00
BertoCQ
44ddd99575
Merge pull request #2201 from wairbut-m2c/aperez-rake-tasks-spec
...
Add spec for 'rake db:dev_seed' task
2017-12-20 12:57:50 +01:00
Raimond Garcia
e51784046f
Merge pull request #2208 from consul/dev-seeds
...
Skip map on dev seeds
2017-12-20 12:54:53 +01:00
rgarcia
7889efd6ee
Fix map location update
...
When editing the map of a proposal or investment(the mappable) the
updated_at attribute of the mappable was not been updated and so the
map still displayed the old location after updating it
2017-12-20 12:43:49 +01:00
Bertocq
cf06d5b047
Refactor related content score methods to make them easier to follow
2017-12-20 10:24:00 +01:00
Bertocq
f190d9c626
Fix related content score classname on specs
2017-12-20 03:06:53 +01:00
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
decabeza
a0192be46f
adds skip_map to dev_seeds
2017-12-20 02:18:21 +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
Raimond Garcia
27eadfb396
Merge pull request #2207 from consul/map-validation
...
Map validations
2017-12-19 21:02:12 +01:00
María Checa
8e4a39a066
Updated schema and fixed tests
2017-12-19 20:45:23 +01:00
rgarcia
0152b6301c
adds specs
2017-12-19 20:36:10 +01:00
rgarcia
e58ff785cd
adds translations
2017-12-19 20:33:54 +01:00
rgarcia
20dec19e89
toogles map visibility
2017-12-19 20:33:43 +01:00