Commit Graph

268 Commits

Author SHA1 Message Date
decabeza
510d4822a4 adds new setting for site title meta tag 2017-11-24 14:12:01 +01:00
Angel Perez
ab9d612128 'Proposals' feature can be enabled/disabled
Fixes #1886
2017-11-17 13:10:55 -04:00
Bertocq
d8991b51ff Fix helper function name typo at dev seeds 2017-11-13 13:06:24 +01:00
Bertocq
a1325f4c7d Refactor Poll Voters distribution between web and booth 2017-11-09 15:41:08 +01:00
Bertocq
0e8d171018 Extract vote poll on web/booth and randmon question answering to helper functions on Poll Voter section 2017-11-09 15:40:01 +01:00
Bertocq
045982e981 Fix line lenght on dev_seeds 2017-11-09 15:24:27 +01:00
Bertocq
e154d8eb3f Add trailing random letter to unique_document_number output 2017-11-09 14:51:08 +01:00
Bertocq
063ba4c4f4 Refactor Poll Voters creation to make it more realistic 2017-11-09 14:45:00 +01:00
Bertocq
517b035903 Reposition Poll Question from Proposal and Successful Proposal sections to end of script 2017-11-09 14:44:56 +01:00
Bertocq
af460b3eea Refactor Poll Officer Assignment creation into Poll Shift creation section 2017-11-09 14:44:16 +01:00
Bertocq
896f91e249 Refactor Booth and Booth Assignment creation into just one section 2017-11-09 14:44:16 +01:00
Bertocq
cf76898308 Refactor Poll Question & Answer creation section 2017-11-09 14:44:16 +01:00
Bertocq
a4a4f3beb2 Refactor Poll creation section, no need to use variables and big date ranges 2017-11-09 14:44:16 +01:00
Bertocq
5a188474c5 Replace the usage of reorder with RANDOM() posgtresql function, for all & sample 2017-11-09 14:44:15 +01:00
Bertocq
607423c1a8 Move not org users query to correct section, avoiding class variable usage 2017-11-09 12:52:15 +01:00
Bertocq
597d740198 Remove unnecesary blank spaces on tags creation 2017-11-09 12:43:49 +01:00
Bertocq
33e111bcb7 Remove class valuator variable and just find first Valuator whenever needed 2017-11-09 12:42:22 +01:00
Bertocq
5d96849048 Make use of unique_document_number on users 2017-11-09 12:38:40 +01:00
Bertocq
317542261d Add helper function to generate unique document numbers 2017-11-09 12:35:14 +01:00
Bertocq
015f85f9db Fix shadowing outer local variable issue on dev_seeds 2017-10-27 19:44:19 +02:00
Bertocq
d80aff3af1 Fix long lines on dev_seed 2017-10-27 19:44:19 +02:00
Bertocq
959f2fbf90 Add section and log functions to use rails logger instead of puts and print on dev_seeds 2017-10-27 19:44:19 +02:00
Bertocq
6f6d48560f Small style fixes by rubocop on dev seeds 2017-10-27 19:44:19 +02:00
Bertocq
301645b032 Remove slugs from Poll, column not present yet 2017-10-27 19:44:19 +02:00
BertoCQ
322ffdb91b Merge pull request #2086 from wairbut-m2c/iagirre-improve-dev-seeds
Iagirre improve dev seeds
2017-10-25 15:05:18 +02:00
Bertocq
608ca48b32 Add Recounting and Expired with stats&results polls to dev seeds 2017-10-23 21:02:23 +02:00
iagirre
9bb03c9d1a Added voters in booths 2017-10-19 20:02:07 +02:00
iagirre
ca766404bf Added functions to make the polls scenarios more complete 2017-10-19 19:50:06 +02:00
rgarcia
cd148dfbf0 adds recounts and results to dev seeds 2017-10-19 11:28:09 +02:00
Bertocq
c6d1f727af Correct dev_seeds to correctly create Poll::Question::Answers instead of valid_answers, plus style fixes 2017-10-18 01:29:40 +02:00
Bertocq
99471a3d15 Comment out slug assignment until Poll slug feature is ported back from madrid's fork 2017-10-13 14:42:43 +02:00
Bertocq
ecf95c4ea3 Add slug to Polls on dev seed rake 2017-10-13 12:44:36 +02:00
Bertocq
00bb6874db Fix dev seeds rake, creating Poll Question Answers 2017-10-06 20:37:13 +02:00
Angel Perez
a83c259a04 Remove 'description' attribute from Poll::Question
This avoid an exception when seeding the database

See PR #1977
2017-10-04 15:49:28 -04:00
Raimond Garcia
f68d86a2e5 Merge pull request #1824 from rockandror/user-recomendations
User recomendations
2017-09-29 19:02:03 +02:00
Senén Rodero Rodríguez
92c774cdeb Merge with master 2017-09-28 13:36:20 +02:00
Senén Rodero Rodríguez
5815389cb8 Rename map settings keys 2017-09-27 14:49:07 +02:00
Senén Rodero Rodríguez
6c1d1c2cde Add map settings to backend. Install leaflet assets to render maps. 2017-09-27 14:46:02 +02:00
David Rodríguez
69aaa7de12 Fixes unintended new line 2017-09-19 22:01:47 +02:00
David Rodríguez
e2c311a624 Adds an unverified user to dev seeds
Useful if you want to test the verification process.
2017-09-19 22:01:47 +02:00
rgarcia
37be890fbe Fixes dev seeds
Poll::Questions now have a validation for a `poll_id`
2017-09-19 19:39:47 +02:00
BertoCQ
87c99018e7 Merge branch 'master' into user-recomendations 2017-09-14 23:45:56 +02:00
Bertocq
7a2e5a4ecb Verify poll officer user on dev seeds 2017-09-11 16:48:45 +02:00
Raimond Garcia
2519f232ab Merge branch 'master' into user-recomendations 2017-09-05 17:15:42 +02:00
taitus
e1a7f9c58c Add community to Global Settings 2017-09-05 12:54:32 +02:00
Alberto
3cc904311a Merge branch 'master' into user-recomendations 2017-09-04 19:53:21 +02:00
decabeza
5949f7abf0 uppercase all consul name 2017-09-01 12:51:31 +02:00
Bertocq
3103fc3459 Verify seeds valuator user 2017-08-25 13:00:05 +02:00
taitus
fe3bb7a389 Add recommended tab on proposals and debates index. 2017-08-01 16:31:44 +02:00
taitus
01a41b4706 Add Settings flag recommendations 2017-08-01 16:28:01 +02:00