Commit Graph

7983 Commits

Author SHA1 Message Date
Bertocq
93e2e270c3 Avoid final new empty lines on yml translation files 2017-11-13 02:47:55 +01:00
Bertocq
ceb6786b7c Style correction on method call without parenthesis 2017-11-13 02:35:17 +01:00
Bertocq
f45cfc108a Fix Style/AccessorMethodName rubocop issue 2017-11-13 02:34:00 +01:00
Bertocq
dc116cc3fe Fix line lenght above 140 2017-11-13 02:31:55 +01:00
Bertocq
db54273dad Replace == 0 comparisions for .zero? 2017-11-13 02:27:38 +01:00
Bertocq
bfd1a75af7 Fix Lint/RequireParentheses rubocop issue 2017-11-13 02:24:37 +01:00
Bertocq
a34118dbb0 Fix Lint/ShadowingOuterLocalVariable rubocop issue 2017-11-13 02:23:49 +01:00
Bertocq
cd66ba5d54 Rubocop autocorrections 2017-11-13 02:22:00 +01:00
BertoCQ
57f8aacdd7 Merge pull request #2123 from consul/chore/improve_travis_build
Exclude development gems from travis build
2017-11-12 19:22:00 +01:00
Bertocq
495a99359c Move rubocop from development & test gemfile group to just development 2017-11-11 18:58:59 +01:00
Bertocq
a15391e4e1 Exclude development gems from travis build 2017-11-11 10:08:36 +01:00
Raimond Garcia
0e5c8d6aaf Merge pull request #2100 from deivid-rodriguez/fix/direct_messages_max_per_day
Fix `direct_messages_max_per_day` set to nil
2017-11-09 19:14:29 +01:00
BertoCQ
14d02d56cc Merge pull request #2121 from consul/chore/dev_seeds_improvements
Improve Dev Seeds
2017-11-09 16:02:22 +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
rgarcia
644ea9629f uses correct order for permitted params 2017-11-08 12:05:02 +01:00
rgarcia
f3831de31c fixes typo introduced while fixing conflicts 2017-11-08 11:56:49 +01:00
Raimond Garcia
c8094d9863 Merge pull request #2084 from ortegacmanuel/legislation-processes-documents
Legislation processes documents
2017-11-08 11:55:49 +01:00
Raimond Garcia
ad37606129 Merge branch 'master' into legislation-processes-documents 2017-11-08 11:31:09 +01:00
BertoCQ
dadeaf4c50 Fix typo in contributors.md 2017-11-06 19:34:24 +01:00
BertoCQ
f778071682 Add Maria Checa to contributors 2017-11-06 19:34:05 +01:00
BertoCQ
d05fc42c5a Add Maria Checa to contributors 2017-11-06 19:33:46 +01:00
iagirre
aed0013e79 Spec fixed 2017-10-31 15:54:17 +01:00
iagirre
bfcbb6c0ad Validation in model and in form added. When users makes the on focus on population field an explanation appears. Some specs added to test the model validations 2017-10-31 13:04:30 +01:00
iagirre
4819d1b74e Enabled one test disabled to run in local 2017-10-30 16:55:13 +01:00
iagirre
4b8a471d38 Specs added to test the functionality and some UI modified to make test pass 2017-10-30 16:50:25 +01:00
iagirre
1077e25b2b Shifts are destroyed when a booths is unassigned. An alert appears if there are shifts, but it doesn't if there aren't. 2017-10-30 12:36:07 +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
iagirre
89425f50ef First steps to destroy shifts when booth_assignments are destroyed 2017-10-27 14:57:32 +02:00
iagirre
b854d99248 Assign/Unassign button for expired polls is disabled 2017-10-27 13:10:10 +02:00
Alberto García
164bc19b3e Merge pull request #1906 from consul/1856-legislation_processes_proposals_phase
[WIP] Legislation Process Proposals
2017-10-27 12:41:09 +02:00
María Checa
5ae31a6d01 Prevent responsible_name and question from validation 2017-10-27 10:43:37 +02:00