Javier Martín
8670cafa2e
Merge pull request #3611 from PierreMesure/adding-missing-subtasks-to-upgrade-task
...
Adding missing subtasks to upgrade task and adding info log
2019-09-11 21:26:45 +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
Javi Martín
d981e23cd7
Remove custom dashboard task
...
It was made for Madrid's repository, but was accidentally added to
CONSUL as well.
2019-08-07 20:37:02 +02:00
taitus
064235d29f
Add rake task to create remote census setting
2019-07-29 13:10:09 +02:00
taitus
95f848f021
Fix specs after rebase with translations branch
...
- Fix spec spec/features/management/proposals_spec.rb:24 adding single quotes.
- Remove spec related with 'proposal improvement info link' as master branch.
- Fix proposal rake task (now proposals have translations). We put the 'validate: false' to keep the existing html tags in the proposal's description. Without the sanitizable module deleting them.
2019-06-27 09:19:37 +02:00
Pierre Mesure
2705416842
Adding missing subtasks to upgrade task and adding info log
2019-06-11 22:35:57 +02:00
Javi Martín
1d0b05832c
Add info messages for release 1.0.0 tasks
...
So users know what's going on when they upgrade CONSUL.
2019-06-05 20:23:56 +02:00
Javi Martín
3ab2085e05
Move calculate_ballot_lines task to the right file
...
We already have a file with the proper budgets namespace.
2019-06-05 20:23:56 +02:00
Javi Martín
c78211af49
Add task to upgrade to version 1.0.0
...
It includes every task needed for the upgrade.
2019-06-05 20:23:54 +02:00
Javi Martín
e339ed94d1
Add new settings every time we deploy
...
This way we don't need to add and execute rake tasks every time we add a
new setting.
2019-05-31 19:33:31 +02:00
voodoorai2000
d0b8fef6b3
Delete spending proposals
2019-05-31 18:22:59 +02:00
Javi Martín
dd851cb6cc
Add task to regenerate ballot_lines_count cache
...
We've added this column recently to `budget_ballots`, and we use it to
calculate stats.
2019-05-29 20:39:19 +02:00
Javi Martín
9ae0cbb254
Add task to migrate enabled poll results and stats
2019-05-22 12:48:11 +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
13dd77dd1b
Add tasks to generate and expire stats cache
...
We're generating stats every 2 hours because it's less than the time it
will take to generate stats for every process. Once stats are generated,
this task should take less than a second.
The regenerate task has been added so we can manually execute it.
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
Javi Martín
3d84920c47
Add task to generate poll slugs
2019-05-17 08:15:41 +02:00
decabeza
f40787561d
Remove all references to question and external_url fields
2019-04-30 16:42:07 +02:00
decabeza
e88c66c92c
Dont use faker gem on simulate successful proposal rake
2019-04-29 15:45:35 +02:00
decabeza
ad41f23a98
Improve rake to add published_at to proposals
2019-04-29 15:44:47 +02:00
voodoorai2000
992f1d23a1
Change syntax to delay dashboard emails
...
After updating to Rails5 It seems the after_action[1] in the dashboard's mailer is not beind called.
Using this syntax the emails are still being delayed and the after_action being called correctly.
[1] https://github.com/AyuntamientoMadrid/consul/pull/1945/files#diff-fdf5590f3241c439fcc9d2225c3cf4d8R3
2019-04-29 15:44:45 +02:00
decabeza
2cff3767c1
Remove open in new tab option for links
2019-04-24 13:58:13 +02:00
decabeza
cb22e6cbfb
Merge branch 'master' into proposal-dashboard
2019-04-23 17:12:47 +02:00
voodoorai2000
e47a8be2a2
Add more log messages
2019-04-17 16:51:13 +02:00
voodoorai2000
aa04757e16
Add rake task to check for spending proposals
2019-04-17 16:50:32 +02:00
decabeza
91be3cf775
Fix more hound warnings
2019-03-27 15:22:14 +01:00
decabeza
b79061064b
Remove all texts of decide madrid
2019-03-26 18:22:02 +01:00
decabeza
eda6ea7f12
Merge branch 'master' into dashboard
2019-03-26 16:45:48 +01:00
Javi Martín
9d6bd7e788
Remove obsolete rake tasks
...
These tasks dealt with data migrations or stats generations which were
done only once, so we don't need them anymore.
New CONSUL installations don't need these tasks, and existing CONSUL
installations will execute them when upgrading one release at a time.
2019-03-22 13:07:09 +01:00
decabeza
ab8f04a71e
Add updated_at to proposals rake
2019-03-21 14:15:07 +01:00
decabeza
832f0c40a8
Add rake to move external_url to description
...
This rake move this field for Proposals and Legislation proposals.
2019-03-21 14:14:50 +01:00
taitus
8b1c458fdf
Allow detect new actions since a custom date
...
- Rename method "detect_new_actions" to "detect_new_actions_since". Add new param date.
2019-03-21 12:29:31 +01:00
taitus
b115c3af49
Rake task for create basic templates with actions and resources by default.
2019-03-21 12:29:30 +01:00
taitus
5177adb32a
New rake task for proposals to send new action email
...
Execute rake task every day to detect new actions available for not archived proposals. If there are new actions available for today, send email to proposal's author with information text, new actions available and link to proposal dashboard url.
2019-03-21 12:29:28 +01:00
Julian Herrero
e04fd74cf1
Add rake task to rename existing setting keys
2019-03-19 19:45:34 +01:00
Julian Herrero
002e16ce30
Use double quotes in lib/
2019-03-15 10:29:07 +01:00
Julian Herrero
87be6f302c
Add default site customization pages
...
From now on these static pages:
`/privacy'
`/conditions'
`/accesibility'
`/help/faq'
`/welcome'
have been moved to the DB and can be modified easily by any
administrator in `/admin/site_customization/pages'
2019-03-14 18:35:51 +01:00
decabeza
cfad56b872
Add rake to remove deprecated settings
2019-03-13 15:39:58 +01:00
decabeza
8066b96fe3
Remove legacy banner images and banner styles settings
2019-02-25 14:59:38 +01:00
decabeza
fbbf092015
Add rake task to calculate cached voted score
...
Run this task it's only necessary if already existing legislation proposals in DB.
2019-02-13 11:35:21 +01:00
Julian Herrero
5f8558a636
optimize task reset_hot_score
2018-12-18 18:08:53 +01:00
Julian Herrero
ef835bef1c
new algorithm for filter 'most active'
2018-12-13 11:42:22 +01:00
Julian Herrero
96dfa2fd65
add setting for new 'most active' algorithm
2018-12-13 11:41:27 +01:00
Alberto
05abcbe944
Merge pull request #3081 from consul/featured-proposals
...
[Backport] Featured proposals
2018-12-10 22:17:51 +01:00
decabeza
37da986014
Adds settings for featured proposals
2018-12-04 18:04:36 +01:00
Javi Martín
d3882df437
Fix milestones migration not updating ID sequence
...
When we insert a record in PostgreSQL and we specify the ID, the
internal ID sequence for that table isn't updated.
In order to keep the original IDs so we didn't break any foreign keys,
we specified the IDs when copying the table, resulting in a table having
its ID sequence with a value of an existing record. When trying to
insert a new record, we got a `PG::UniqueViolation` exception.
Updating the sequence after the data migration might not be the most
elegant solution, but it's easy to do and it's already been tested on a
production environment.
2018-11-30 14:15:21 +01:00
Javi Martín
87b073cbca
Migrate milestones images and documents
2018-11-30 14:15:21 +01:00
Javi Martín
cb891f21d4
Simplify count_rows check
...
We had a line which was too long according to rubocop, and simplifying
the code makes the line shorter.
2018-11-30 14:15:21 +01:00
Marko Lovic
4c3dadf1fb
Add Rake task to migrate milestone data to new tables
2018-11-30 14:15:21 +01:00
Marko Lovic
c0f6fa182f
Make Milestones general, and not specific to Budget Investments
...
Generalize the Budget::Investment::Milestone model to a
polymorphic Milestone model so it can be used for entities
other than Budget::Investment.
2018-11-30 14:15:21 +01:00