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
a21240b230
Use Date.current and Time.current
...
Using Date.today and Time.now might lead to inconsistencies if the time
zone the application uses is not the same as the system time zone.
2019-08-28 20:32:40 +02:00
Senén Rodero Rodríguez
522b1c9ef7
Add budget investment translations to dev_seeds
...
Update budget investments development seeds with translations for all avaialble locales.
2019-06-27 09:20:24 +02:00
Senén Rodero Rodríguez
8103a16031
Add proposals translations to dev_seeds
...
Update proposal development seeds with translations for all avaialble
locales.
2019-06-27 09:19:37 +02:00
Senén Rodero Rodríguez
78055555cf
Add debates translations to dev_seeds
...
Update debates development seeds with translations for all avaialble
locales.
2019-06-27 09:19:37 +02:00
Javi Martín
ff82e3f4e8
Remove question from legislation people proposal
...
It was added by accident; this field had already been removed from
legislation proposal.
2019-06-07 18:55:29 +02:00
lalo
46e5d6a9fa
Create Legislation::PeopleProposal model
2019-06-06 17:22:49 +02:00
Javi Martín
ff21ce7665
Use translations for official level names seeds
2019-05-31 19:30:14 +02:00
Javi Martín
3db1acf73d
Simplify dev seed settings code
2019-05-31 19:30:14 +02:00
Javi Martín
ced0409270
Reuse default settings in dev seeds
2019-05-31 19:30:14 +02:00
voodoorai2000
d0b8fef6b3
Delete spending proposals
2019-05-31 18:22:59 +02:00
voodoorai2000
24dde9c35e
Delete valuation
2019-05-31 15:43:06 +02:00
Javier Martín
cbfa2c1df8
Merge pull request #3504 from consul/backport-poll_slugs
...
Add slug to polls
2019-05-21 13:42:47 +02:00
Bertocq
291ae7b734
Add slug to Polls on dev seed rake
2019-05-16 23:40:50 +02:00
decabeza
5bdac5c4f5
Remove question and external_url fields from legislation proposals
2019-04-30 11:35:47 +02:00
decabeza
0995480b73
Remove question and external_url fields from proposals
2019-04-30 11:35:47 +02:00
voodoorai2000
e139057001
Disable dashboard email deliveries
...
We have to doble check all emails deliveries from the dashboard.
Using a setting to skip all dashboard email deliveries for now.
Note that a rake task to activated the `Setting["dashboard.emails"]` will need to be addded when we want to activate deliveries of these emails.
2019-04-29 15:43:46 +02:00
decabeza
cb22e6cbfb
Merge branch 'master' into proposal-dashboard
2019-04-23 17:12:47 +02:00
Julian Herrero
58b9899406
Require conflicting dependencies
...
spec/lib/tasks/dev_seed_spec.rb:8
This test was failing and we could see messages like:
db/dev_seeds/polls.rb:147:
warning: toplevel constant Answer referenced by Poll::Answer
Resulting in the error:
rake db:dev_seed seeds the database without errors
Failure/Error: expect { run_rake_task }.not_to raise_error
expected no Exception, got #<ActiveModel::UnknownAttributeError:
unknown attribute 'question_id' for Answer
Apparently the lookup was not correclty being performed, due to
conflicting names.
"Naming conflicts of this kind are rare in practice, but if one
occurs, require_dependency provides a solution by ensuring that
the constant needed to trigger the heuristic is defined in the
conflicting place."
https://guides.rubyonrails.org/v5.0/autoloading_and_reloading_constants.html
2019-04-17 17:40:57 +02:00
decabeza
94b8caffca
Merge branch 'master' into proposal-dashboard
2019-04-04 14:08:30 +02:00
Javi Martín
99551e048b
Fix user gender creation
...
We use "male" and "female" conditions in scopes.
2019-03-28 15:50:34 +01:00
Javi Martín
061549c3c3
Use booth voters to create recount in dev seeds
2019-03-28 15:50:34 +01:00
Javi Martín
6ac91dafa8
Include level 3 users in dev seeds poll voters
2019-03-28 15:50:34 +01:00
Javi Martín
db7e8e79b7
Fix voters on booth not being created in dev seeds
...
There were validation errors because they didn't have officer nor booth
assignments.
2019-03-28 15:50:34 +01:00
Javi Martín
e2fa2ecf0d
Avoid outer variable shadowing warning
...
There were two variables named "title", one for the question and one for
the answer.
2019-03-28 15:50:34 +01:00
decabeza
2b1b05d9ed
Fix dev_seeds polls
2019-03-28 13:01:17 +01:00
decabeza
2af154d539
Merge branch 'master' into proposal-dashboard
2019-03-28 01:26:04 +01:00
decabeza
91be3cf775
Fix more hound warnings
2019-03-27 15:22:14 +01:00
decabeza
eda6ea7f12
Merge branch 'master' into dashboard
2019-03-26 16:45:48 +01:00
Javi Martín
4c35df4812
Use double quotes inside string interpolation
2019-03-25 14:58:54 +01:00
Julian Herrero
8e5e757b00
Include default custom pages in developers seed
2019-03-22 12:29:42 +01:00
Senén Rodero Rodríguez
c73aae9663
Remove before validation callback
...
This was breaking nested poll_questions_answers when submitting
more than one new answer at a time.
2019-03-21 14:51:17 +01:00
Julian Herrero
4df9a1a1b4
Move HTML settings to content blocks settings page
...
- Rename html settings keys
- Show html settings next to content blocks page
- Hide html settings from configuration tab
2019-03-19 19:45:34 +01:00
Julian Herrero
89d4ea5aa3
Remove homepage widget settings from configuration tab
...
- Rename homepage widget settings keys
2019-03-19 19:45:34 +01:00
Julian Herrero
c82b2a975a
Add new settings tab for participation processes
...
- Rename setting keys
- New tab por participation processes
- Hide these settings from features tab
2019-03-19 19:45:32 +01:00
Julian Herrero
dbac4bc222
Change admin settings tab for maps
...
- Rename map settings keys
- Add fields for latitude, longitude and zoom
- Add a callout message on how to enable map feature
2019-03-19 18:14:57 +01:00
Julian Herrero
27553e9058
Move setting next to similar/related settings
2019-03-19 15:11:30 +01:00
Julian Herrero
6d281affa5
Use double quotes
2019-03-15 10:29:07 +01:00
decabeza
e520a51d57
Replace default feature proposals to nil
2019-03-13 13:18:53 +01:00
decabeza
0e1bf2188c
Remove unused verification offices url setting
2019-03-06 13:08:35 +01:00
Alberto
098f4b6c5f
Merge pull request #3328 from consul/admin-settings
...
Improve Admin settings section
2019-02-27 10:49:54 +01:00
decabeza
abdeafc2dd
Fix hound warnings on dev_seeds
2019-02-25 15:34:15 +01:00
decabeza
6fd13c1701
Add missing settings to dev seeds
2019-02-25 14:59:03 +01:00
decabeza
840348a839
Replace legislation processes text to collaborative legislation
2019-02-25 14:22:29 +01:00
decabeza
2e135ca3f1
Remove unused place name setting
2019-02-19 14:08:44 +01:00
decabeza
25c8212e80
Remove proposal improvement path setting
2019-02-19 11:07:58 +01:00
decabeza
ccee843da7
Remove unused settings
...
These settings are customised for Madrid's fork. On CONSUL any user can include new links using site customisation content blocks from admin panel.
2019-02-18 15:40:11 +01:00
Julian Herrero
922600252c
Make budget headings translatable
2019-02-13 13:35:07 +01:00
Julian Herrero
1c35ec99c1
Make budget groups translatable
2019-02-13 12:30:37 +01:00
Julian Herrero
90d0a6e416
Make budget phases translatable
2019-02-13 11:44:56 +01:00