dperez
bef404c443
add homepage for legislation processes
2018-12-15 18:04:24 +01:00
decabeza
df221b43a0
Fixes hound warnings on legislation processes
2018-12-12 18:23:11 +01:00
Javi Martín
b95ca9df8a
Add milestones to legislation process view
2018-12-11 20:18:53 +01:00
Javi Martín
1b46ba9ee6
Make legislation proposals random seed more robust
...
Using a number with only two decimals means the seed is going to be the
same 1% of the time. Using ruby's default value for random numbers makes
it almost impossible to generate the same seed twice.
Using `rand` also simplifies the code, and it's what we use in the
budget investments controller.
2018-12-05 13:03:10 +01:00
Javi Martín
07c22d289c
Change the random seed before storing it
...
Even though it probably doesn't change the behaviour, it's a bit strange
to set a seed, then storing it in the session, and then modifying it
again.
2018-12-05 13:03:10 +01:00
Javi Martín
6f62d76c71
Simplify random seed conversion to float
...
The method `to_f` already returns `0.0` instead of raising an exception
when handling non-numeric values.
2018-12-05 13:03:10 +01:00
Javi Martín
ba7ca11cd8
Fix buggy parallel assignment
...
In ruby, when we assign two variables to one value, the second variable
is set to `nil`.
2018-12-05 13:02:39 +01:00
João Lutz
34b58a5208
Adds draft phase functionality in legislation processes
2018-11-19 22:18:50 -02:00
Javi Martín
9c13f08c8e
Show selected legislation proposals by default
2018-10-04 16:31:00 +02:00
Javi Martín
8976280493
Order selected proposals by confidence score
...
The same way we order budget results.
2018-10-04 16:31:00 +02:00
Javi Martín
d9410a132a
Always show filters for legislation proposals
...
As done in the rest of the application: we show the filters even if
there isn't any data to display.
2018-10-04 16:31:00 +02:00
Javi Martín
ec2b4fe7ff
Use %w[] instead of %w{}
...
As agreed when discussing our rubocop rules.
2018-10-04 16:30:59 +02:00
Javi Martín
d6ff7e0f3f
Simplify code
2018-10-04 16:29:01 +02:00
Raúl Fuentes
05340e423c
Add select to Legislation::Proposals
...
Add admin interface for mark any proposal as selected
Add filter to public interface for selected proposals
2018-10-04 16:28:56 +02:00
voodoorai2000
422f3a5f47
Add tag filtering for legislation proposals
2018-10-04 15:43:41 +02:00
Javi Martín
ec18743251
Authorize resource after authenticating user
...
Just like it's done everywhere else in the application. Not doing so
means users who aren't logged in receive a "you aren't authorized"
message when they try to create a new legislation proposal instead of
being redirected to the login page.
2018-10-03 22:06:20 +02:00
María Checa
d73be15296
Added tests
2018-10-03 16:02:41 +02:00
María Checa
056086e81e
Allow admins to see legislation debates and proposals index
2018-10-03 16:02:12 +02:00
Bertocq
df3df71a54
Force postgresql setseed value in correct range
...
This commit partially backports commit AyuntamientoMadrid@f038399 by
taking only the parts affecting code already in CONSUL's main
repository.
2018-10-03 13:46:32 +02:00
Bertocq
c04b0ceda4
Add pagination to legislation process proposals list
2018-10-03 13:46:32 +02:00
Bertocq
349abffb20
Add random order based on seed to legislation process proposals list
2018-10-03 13:40:59 +02:00
Bertocq
599ddf8f41
Create @proposal variable con process controller for proposals list that use random seed
2018-10-03 13:40:59 +02:00
Bertocq
4ab9b8b767
Move onto proposals method the random seed call
2018-10-03 13:40:59 +02:00
Bertocq
0cabede68c
Add random seed on Legislation Proposal controller for index
2018-10-03 13:40:59 +02:00
decabeza
7c194f6042
Adds imageable to legislation proposals
2018-10-01 16:48:46 +02:00
Bertocq
f45cfc108a
Fix Style/AccessorMethodName rubocop issue
2017-11-13 02:34:00 +01:00
Bertocq
cd66ba5d54
Rubocop autocorrections
2017-11-13 02:22:00 +01:00
María Checa
5ae31a6d01
Prevent responsible_name and question from validation
2017-10-27 10:43:37 +02:00
María Checa
658d115c91
Removed share view for Legislation Proposals
2017-10-26 17:13:04 +02:00
María Checa
276baedcfa
Added votes to Legislation Proposals
2017-10-25 16:42:55 +02:00
María Checa
231a14c428
Fixed broken tests
2017-10-25 12:52:59 +02:00
María Checa
841ef2a3a2
Merge branch 'master' into 1856-legislation_processes_proposals_phase
2017-10-09 17:19:07 +02:00
Bertocq
22822aa173
Fix Style/RedundantParentheses rubocop issues
2017-09-25 22:44:58 +02:00
Bertocq
ef038b30ac
Remove trailing comma in arguments
2017-09-25 22:30:29 +02:00
María Checa
3c4f2426db
Removed unnecessary content
2017-09-22 11:39:30 +02:00
María Checa
ba041f90c8
Removed unnecessary parts in Legislation Proposals
2017-09-21 16:17:11 +02:00
María Checa
38ba5e159b
Legislation proposals show and edit views available
2017-09-20 17:45:17 +02:00
María Checa
d83bb9e31f
Legislation proposal controller adaptation
2017-09-19 10:08:36 +02:00
María Checa
0245605f19
Added Legislation Proposals controller
2017-09-14 12:51:36 +02:00
Bertocq
69f4e1c683
Fix all rubocop Metrics/LineLength issues (140+)
2017-07-10 13:22:49 +02:00
Eduardo Martinez Echevarria
9324b02ce1
Avoid set_process on legislation/processes controller member actions
2017-07-01 12:39:16 +02:00
Bertocq
d31e0ed79b
Bring set_process back to legislation process controller, still needed until is correctly loaded
2017-07-01 02:05:57 +02:00
Eduardo Martinez Echevarria
a599a0b91e
Set legislation processes visibility depending on publication
2017-06-30 15:08:23 +02:00
Eduardo Martinez Echevarria
3e5c5d7e49
Define some actions on legislation processes as member actions
2017-06-30 15:08:23 +02:00
Bertocq
9763931f55
Fix all Layout/SpaceBeforeComma rubocop issues and remove from rubocop_todo list
2017-06-26 17:57:53 +02:00
Bertocq
78efccc197
Fix all Layout/EmptyLinesAroundAccessModifier rubocop issues and remove files from rubocop_todo list
2017-06-25 15:46:46 +02:00
Bertocq
25e501c668
Fix Style/AndOr rubocop issue and remove from rubocop_todo list
2017-06-19 10:45:18 +02:00
Bertocq
21c6d1c4dd
Cleanup Lint/AssignmentInCondition rubocop issues on code and remove it from ruboco_todo list
2017-06-19 10:45:18 +02:00
Bertocq
2018fc0b7d
Fix Legislation Process Controller to correctly set both @phase and @process
2017-06-13 22:04:36 +02:00
Bertocq
8710d8c0d3
Replace old active_phase? for new phase/publication enabled? for legislation processes
2017-06-13 22:04:36 +02:00