Bertocq
4becd0eb35
Change Newsletter's segment_recipient to string
...
Why:
Newsletter attribute `segment_recipient` is an integer to be used as
enum. There's no advantage to store a number instead of an string if the
ammount of elements in the table is not going to be huge, or we can take
advantage of using an enum.
Also maintaining both Newsletters enum paired with UserSegments::SEGMENTS
would be a maintenance burden.
How:
* Migration to change segment_recipient column from integer to string
* Removing enumeration from Newsletter model class
* Using UserSegments::SEGMENTS instead of Newsletter.segment_recipients
or integer values
2018-02-21 11:46:11 +01:00
María Checa
24bca36639
Merge branch 'master' into admin-newsletter-emails
2018-02-14 16:07:13 +01:00
María Checa
20de8c81f7
Added newsletters to dev_seeds
2018-02-14 16:06:33 +01:00
María Checa
7b71aaded7
Updated schema
2018-02-14 16:06:33 +01:00
María Checa
a22faadc1f
Added newsletter migration
2018-02-12 21:22:56 +01:00
Bertocq
31cece096b
Verify manager & moderator sample users in dev_seeds
2018-02-08 18:23:29 +01:00
BertoCQ
ec81f399bf
Merge pull request #2403 from consul/valuation_comments
...
Valuation comments
2018-01-31 13:46:22 +01:00
Bertocq
c84b2f0704
Add valuation boolean flag to Comment model
...
Why:
Budget Investment's valuators need to be able to comment on investments
without making those comments public. We need a way to clearly make a
distinction to avoid "leaking" internal valuation comments.
How:
Adding a boolean `valuation` attribute defaulted to false to the Comments
table, and index on it with concurrent algorithm as explained at
https://robots.thoughtbot.com/how-to-create-postgres-indexes-concurrently-in
The name `valuation` was chosen instead of `internal` because of the more
specific meaning as well as avoiding a collision with existing internal_comments
attribute on Budget::Investment model (soon to be deprecated & removed)
2018-01-30 19:22:27 +01:00
decabeza
fc89c899cc
Updates help url example on seeds
2018-01-30 18:28:05 +01:00
Bertocq
ffe7d4baad
Fix rubocop issues at dev seeds
2018-01-30 03:31:41 +01:00
Bertocq
a4fb568654
Improve dev seeds comments adding them to investments
2018-01-30 03:29:20 +01:00
María Checa
0dd71e6bea
Merge pull request #2349 from wairbut-m2c/iagirre-budgets-new-information-phase
...
Budget new "Information" phase
2018-01-23 19:46:49 +01:00
Bertocq
2b8a32198b
Improve dev_seeds generations around Budgets & Investments
2018-01-23 16:01:40 +01:00
Bertocq
c30c47cbb5
Improve default city map with 4 districts, and more real fake geozones
2018-01-23 15:59:24 +01:00
Bertocq
60515708e0
Fix indentations at dev seeds script
2018-01-23 15:57:38 +01:00
iagirre
846898f3ec
New phase "Information" added and UI modified to not show the links.
...
Specs to test the functionality added.
2018-01-23 15:42:01 +01:00
rgarcia
d3d05f9cee
Add guide to create a proposal or investment
...
During a Participatory Budget, some users are getting confused and
creating a proposal instead of a budget investment. This intermediate
page should help them create investments
Adding a feature flag just in case other forks don’t need this feature
and setting seeds and dev_seeds for appropriate initial setup
2018-01-18 21:09:21 +01:00
Bertocq
eeefa646a4
Default dev seeds geolocation at madrid, and geolocate all investments
2018-01-18 01:39:43 +01:00
Bertocq
66691b644a
Refactor Budget::PHASES constant to Budget::Phase::PHASE_KINDS
2018-01-16 12:18:13 +01:00
Bertocq
82d67258e8
Create Budget Phase table at database
2018-01-16 12:18:13 +01:00
Bertocq
6772f94c14
Add description publishing prices column to budgets table
2018-01-10 01:11:13 +01:00
Bertocq
baa3c5280f
Remove TODO's from code, write reminder action on related issue
2018-01-09 23:53:09 +01:00
María Checa
96859190be
Merge pull request #2280 from consul/2277-budgets_new_form
...
Budgets new form
2018-01-09 11:55:10 +01:00
María Checa
cd53884d72
Updated dev_seeds
2018-01-09 00:09:56 +01:00
Bertocq
d0937d7022
Add description_drafting column to budgets table
2018-01-08 22:55:37 +01:00
Bertocq
e1ec4ad967
Fix minimum Proposal title & question random length on dev seeds
2018-01-06 14:20:57 +01:00
Bertocq
46dc559301
Filter out nil related contents while listing them
2017-12-31 20:30:45 +01:00
BertoCQ
d534b02b3c
Merge pull request #2206 from consul/related-contents-score
...
Related contents score
2017-12-20 15:13:12 +01:00
María Checa
1e23281c28
Fixed related content tests
2017-12-20 13:43:56 +01:00
Bertocq
aa338484a7
Cleanup schemarb
2017-12-20 03:05:18 +01:00
Bertocq
2df7a92915
Cleanup db schema
2017-12-20 02:36:14 +01:00
Bertocq
2688f2a919
Add author user to related content
2017-12-20 02:36:13 +01:00
Bertocq
eac810cc6d
Add hidden at to Related Contents
2017-12-20 02:36:13 +01:00
Bertocq
065b0ed3c8
Create Related Content Scores
2017-12-20 02:36:10 +01:00
decabeza
a0192be46f
adds skip_map to dev_seeds
2017-12-20 02:18:21 +01:00
Bertocq
7cb20bb084
Remove related content positive/negative columsn from migrations & schema
2017-12-20 01:34:12 +01:00
María Checa
8e4a39a066
Updated schema and fixed tests
2017-12-19 20:45:23 +01:00
María Checa
a8ca3ec5f7
Added related content one positive score by default on create
2017-12-19 20:15:29 +01:00
María Checa
853e655e0c
Changed related_contents_report_threshold setting value
2017-12-19 13:13:20 +01:00
María Checa
e4e9ce9f3e
Added positive and negative score columns to related contents
2017-12-19 13:12:28 +01:00
María Checa
97f74ac531
Renamed related content times_reported column to flags_count
2017-12-18 18:21:46 +01:00
Bertocq
15e881b81a
Increase dev seeds creating communities, topics and comments on topics & polls
2017-12-15 13:47:10 +01:00
BertoCQ
50b4f50eac
Merge branch 'master' into aperez-dates-for-milestones
2017-12-14 15:42:35 +01:00
BertoCQ
ec0717b957
Merge pull request #2180 from consul/polls-timestamps
...
Adds timestamps to polls
2017-12-14 14:14:47 +01:00
Alberto García
19925de06b
Merge pull request #2170 from consul/design
...
Design improvements
2017-12-14 11:31:31 +01:00
Angel Perez
c14f9be567
Add 'publication_date' attribute to Budget::Investment::Milestone
2017-12-13 20:17:42 -04:00
rgarcia
e4b20efd04
adds timestamps to polls
2017-12-13 12:37:17 +01:00
Raimond Garcia
11e80fbc92
Merge pull request #1903 from wairbut-m2c/aperez-enable-disable-proposals
...
Add enable/disable option for 'Proposals' feature
2017-12-08 11:41:13 +01:00
decabeza
cbaf1ae6c1
adds setting to allow images for proposals and investment projects
2017-12-06 20:44:43 +01:00
María Checa
56e10f9532
Merge pull request #2160 from consul/relationables
...
Related Content model and Relatable concern
2017-12-05 15:19:42 +01:00