Senén Rodero Rodríguez
caa9e1cd49
Enable soft_deletion of Poll::Question::Translations
2019-06-27 09:19:36 +02:00
Senén Rodero Rodríguez
e451c4657c
Enable soft_deletion of Poll::Translations
2019-06-27 09:19:36 +02:00
Senén Rodero Rodríguez
441f0773a6
Enable soft_deletion of Legislation::Question::Translations
2019-06-27 09:19:35 +02:00
Senén Rodero Rodríguez
e0649f983f
Enable soft_deletion of Legislation::QuestionOption::Translations
2019-06-27 09:19:35 +02:00
Senén Rodero Rodríguez
049c56e9f8
Enable soft_deletion of Legislation::Process::Translations
2019-06-27 09:19:35 +02:00
Senén Rodero Rodríguez
f6b41f916b
Enable soft_deletion of Legislation::DraftVersion::Translations
2019-06-27 09:19:35 +02:00
lalo
7c9c50f4c6
Add Model changes to work with votation_types
2019-06-12 19:32:41 +02:00
German Galia
74083df10f
Add historic fields to participatory budget
2019-06-12 18:03:53 +02:00
German Galia
9ce524e1f3
Create tracker rol
2019-06-12 16:23:40 +02:00
German Galia
16ffa2a259
Add change log in investment participatory budget
2019-06-12 13:06:20 +02:00
Raimond Garcia
259e05c3e0
Merge pull request #3410 from LextrendIT/report_generation
...
Report generation, download CSV
2019-06-12 11:45:59 +02:00
German Galia
9d1ca3bfd4
Report generation. Download csv
2019-06-12 10:17:31 +02:00
lalo
c2860dda0e
Add can_comment and can_edit_dossier abilities to valuators
2019-06-11 16:24:02 +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
Javi Martín
2a6c285257
Update migrations and schema file
...
It looks like they got out of sync when rebasing.
2019-06-07 17:36:22 +02:00
lalo
46e5d6a9fa
Create Legislation::PeopleProposal model
2019-06-06 17:22:49 +02:00
Javi Martín
69c6cd6737
Fix indentation in schema file
2019-06-06 16:20:27 +02:00
lalo
d0e1eff532
Add description field to administrator users like evaluators description
2019-06-05 16:18:12 +02:00
voodoorai2000
4f9f9a065a
Update schema.rb
2019-05-31 18:23:03 +02:00
Julian Nicolas Herrero
3ba7bd1cab
Merge pull request #3567 from consul/select_proposals_by_admins
...
Make proposals to be selected by administrators
2019-05-31 15:30:39 +02:00
Javi Martín
24236e654c
Fix column order in schema file
...
When introducing Rails 5 and the dashboard, we generated the schema file
without dropping the database first. When doing so locally, migrations
aren't always executed in order, changing the order of the columns.
2019-05-29 20:49:29 +02:00
Julian Herrero
9948804e21
Add selected attribute to proposals
2019-05-29 16:51:27 +02:00
Javi Martín
45a3d8daf0
Add option to enable advanced stats
2019-05-22 11:50:03 +02:00
Javi Martín
354b183e17
Create reports
...
This table will store which reports (stats, results, ...) will be shown
for a certain process (polls, budgets, ...).
Note Rails fails to save a poll and its report when both are new records
if we add a `validate :process, presence: true` rule. Since it caused a
lot of trouble when creating records for tests during factories rule
completely. Instead, I've created the `results_enabled=` and
`stats_enabled=` methods, so tests are easier to set up, while also
automatically creating a report if it doesn't already exist. This also
decouples form structure and database implemenation.
Originally I named this table `enabled_reports` and instead of having
`stats` and `results` columns, it had an `enabled` column and a `kind`
column, which would be set to "stats" or "results". However, although
that table would allow us to add arbitrary reports easily, I found the
way we had to handle the `has_many` relationship was a bit too complex.
2019-05-22 11:50:03 +02:00
Javier Martín
82e3c41aa9
Merge pull request #3512 from consul/backport-stats
...
Change stats layout
2019-05-21 17:18:47 +02:00
Javi Martín
7c0e499eee
Add table to store stats versions
...
We need a way to manually expire the cache for a budget or poll without
expiring the cache of every budget or poll.
Using the `updated_at` column would be dangerous because most of the
times we update a budget or a poll, we don't need to regenerate their
stats.
We've considered adding a `stats_updated_at` column to each of these
tables. However, in that case we would also need to add a similar column
in the future to every process type whose stats we want to generate.
2019-05-21 13:50:19 +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
Alberto
7c79965547
Merge pull request #3397 from consul/proposals-form
...
Remove question and external_url fields from proposals and legislation proposals
2019-05-17 17:08:56 +02:00
María Checa
e3b16230e6
Added slug to polls for named urls
2019-05-16 23:40:50 +02:00
Bertocq
63631f29a8
Add ballot_lines_count counter_cache to ballot -> ballot line relationship
2019-05-16 22:01:42 +02:00
decabeza
88852544fd
Fix indentation on schema
2019-05-10 17:17:39 +02:00
voodoorai2000
19b7526421
Add document upload from admin section
2019-04-30 11:59:08 +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
decabeza
4100bf2ddf
Update dashboard specs
2019-04-24 14:00:38 +02:00
decabeza
2cff3767c1
Remove open in new tab option for links
2019-04-24 13:58:13 +02:00
decabeza
14d85406c3
Fix merge conflicts
2019-04-23 23:38:08 +02:00
decabeza
cb22e6cbfb
Merge branch 'master' into proposal-dashboard
2019-04-23 17:12:47 +02:00
Julian Herrero
5486835661
Regenerate DB schema
2019-04-17 17:40:56 +02:00
rgarcia
aeb84108bc
Verify poll ballots
2019-04-10 18:29:01 +02:00
rgarcia
1eaa5cc77b
stores the heading where the user has voted
2019-04-10 18:15:43 +02:00
María Checa
394177213c
Adds Ballot Sheet model and business logic
2019-04-10 16:04:39 +02:00
rgarcia
20a3f6539d
Add association between polls and budgets
2019-04-03 22:19:44 +02:00
decabeza
eda6ea7f12
Merge branch 'master' into dashboard
2019-03-26 16:45:48 +01:00
Julian Herrero
884274c4ad
Add a description for open polls
2019-02-18 13:34:07 +01:00
Julian Nicolas Herrero
4a12425987
Merge pull request #3296 from consul/make_budgets_translatable
...
[Backport] Make budgets translatable
2019-02-13 19:01:13 +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
Julian Herrero
d76782f150
Make budgets translatable
2019-02-13 11:41:58 +01:00