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
Alberto
098f4b6c5f
Merge pull request #3328 from consul/admin-settings
...
Improve Admin settings section
2019-02-27 10:49:54 +01:00
decabeza
8066b96fe3
Remove legacy banner images and banner styles settings
2019-02-25 14:59:38 +01:00
Julian Herrero
00bd7008bb
Show all system emails in Admin section
2019-02-22 16:13:49 +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
fc69c21ebb
Send newsletter emails in order
...
The list of emails for sending newsletters will always be ordered by
user creation date, so it will be easier to debug and to know for
which users the email has been sent.
2019-02-06 15:06:29 +01:00
decabeza
4d71a70e1e
Set tags max length to 160
2019-02-05 17:40:27 +01:00
Julian Herrero
2081269a67
fix Hound violations
2019-01-02 10:46:31 +01:00
Julian Herrero
5f8558a636
optimize task reset_hot_score
2018-12-18 18:08:53 +01:00
voodoorai2000
f4c402c3cb
Merge remote-tracking branch 'upstream/capistrano'
2018-12-14 10:42:08 +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
Julian Nicolas Herrero
9aab3ddd7b
Merge pull request #3038 from MatheusMiranda/add_map_to_heading_page
...
Add map to sidebar on Heading's page
2018-12-11 16:32:35 +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
Matheus Miranda
06f07b1139
Add map to sidebar on Heading's page
...
Signed-off-by: Matheus Miranda <matheusmirandalacerda@gmail.com >
2018-11-16 09:05:23 +01:00
Javi Martín
9404cb8b3a
Fix bug with non-underscored locales
...
Ruby can't have hyphens in method names, so sending something like
`record.title_pt-BR` would raise an exception.
Using globalize's `localized_attr_name_for` method fixes the bug.
Thanks Marko for the tip.
2018-10-23 16:29:14 +02:00
Javi Martín
934bce5932
Don't abort the migration if the simulation fails
...
We think aborting the migration will generate more headaches to system
administrators, who will have to manually check and fix every invalid
record before anything can be migrated.
2018-10-23 16:29:14 +02:00
Javi Martín
7fff57a25f
Add task to simulate data migration
...
This way we can check everything is OK before actually migrating the
data to the translations tables.
2018-10-23 16:29:14 +02:00
Javi Martín
3c48059f07
Log failed data migrations
...
In theory, it should never happen, but that's why exceptions exist.
2018-10-23 16:29:13 +02:00
Javi Martín
a84a0f2b7d
Migrate custom pages data to their locale
2018-10-23 16:29:13 +02:00
Javi Martín
ef7be4fc55
Add task to migrate data to translation tables
...
We forgot to do it when we created the translation tables, and so now we
need to make sure we don't overwrite existing translations.
2018-10-23 16:29:13 +02:00
decabeza
546105d989
Merge branch 'master' into dashboard-master
2018-10-19 01:48:37 +02:00
decabeza
4db54092e6
Removes unrelated dashboard changes
2018-10-18 01:26:07 +02:00
decabeza
16acb2a65f
Adds enable help page task
2018-10-09 13:01:43 +02:00
voodoorai2000
d0dbb16d72
Add unicorn restart task to deploy namespace
2018-09-21 18:11:21 +02:00
voodoorai2000
e3c6fc77c6
Update Unicorn restart task
...
We are using a simple unicorn.rb file in the Installer, which requires a different way of restarting the server
This task is still a little limited and hackish but it does the job for now 😌
We are killing any existing unicorn process and starting unicorn. It checks for existing processes in both the standard consul folder and in the capistrano `current` folder, and skipping any exception if unicorn was not running.
2018-09-21 15:39:56 +02:00
Raimond Garcia
ea72cd058b
Merge pull request #2876 from javierm/ckeditor4_update
...
Ckeditor4 update
2018-09-17 23:02:50 +02:00
Javi Martín
f917f5eed9
Filter image tags everywhere except in custom pages
...
Allowing image tags everywhere makes us vulnerable to CSRF attacks.
2018-09-12 12:35:28 +02:00
Javi Martín
9705360d98
Enable only a few headings in CKEditor
...
Allowing every format is way more than what we initially intended.
I've only added h2 and h3 because h1 is set somewhere else in the page
(like the title), and h4, h5 and h6 are usually not necessary.
2018-09-12 12:35:28 +02:00
Raúl Fuentes
d574657b77
Fixes for the review made by @javierm
...
this commit will be merged with the others when the chages
are accepted
2018-09-12 12:35:28 +02:00
Angel Perez
24adf4bc49
Improve Rake tasks performance replacing .all.each with .find_each
2018-09-10 11:38:19 -04:00
Juan Salvador Pérez García
6cc1ddb9af
Fixes #231
...
Implements a poster feature for the proposals dashboard
2018-07-31 12:50:25 +02:00
Juan Salvador Pérez García
50f73abb0c
Fixes #voodoorai2000 comments
...
Fixes some comments from #voodoorai2000 for the PR to consul
2018-07-27 16:30:03 +02:00
María Checa
3cc8b1d123
Removes rake task to send proposal notifications
...
This action will be performed manually by admin users from the `admin/system_emails` view.
2018-07-26 17:55:06 +02:00
María Checa
7bddd97ed3
Adds validation of email present in valid_email? method
2018-07-26 17:55:06 +02:00
María Checa
b7a1599fdf
Adds logic to send proposal notifications in batches
...
WIP batches tests
2018-07-26 17:55:06 +02:00
Juan Salvador Pérez García
8876b285ce
Fixes #229
...
Adds email feature for proposals dashboard
2018-07-25 13:28:44 +02:00
Juan Salvador Pérez García
256c0d72a5
Fixes issues with successful proposal generation task
2018-07-17 17:59:12 +02:00
Juan Salvador Pérez García
a872c5b5df
Fixes #200
...
Adds settings to complete the polls card and feature view.
2018-07-17 17:59:11 +02:00
Juan Salvador Pérez García
762c4faef6
Fixes #141
...
Adds ideal progress to progress graph
2018-07-17 17:59:11 +02:00
Juan Salvador Pérez García
6e75f5b494
Fixes #140
...
Adds a new setting that allows defining what is considered a successful
proposal.
2018-07-17 17:59:11 +02:00