Raimond Garcia
a8de5306c8
Merge pull request #3091 from dpgigorro/2791-homepage-for-legislation-process
...
add homepage for legislation processes
2018-12-19 11:14:24 +01:00
Javier Martín
4782ca37d6
Merge pull request #3111 from consul/backport-customize_toda_la_ciudad
...
Remove custom "toda la ciudad" code
2018-12-18 13:03:51 +01:00
Julian Nicolas Herrero
2175339609
Merge pull request #3106 from consul/2918-crud_budget_groups_headings
...
Change CRUD for budget groups and headings
2018-12-18 10:23:24 +01:00
dperez
bef404c443
add homepage for legislation processes
2018-12-15 18:04:24 +01:00
Javi Martín
e6a609e6e5
Extract method to filter investments by status
2018-12-14 18:15:51 +01:00
Javi Martín
b4b0b18a2d
Extract method to get investment milestone status
2018-12-14 18:15:51 +01:00
Javi Martín
91d91f2ebf
Remove city heading specific code
...
This code accidentally made it to consul, and it's specific to Madrid.
2018-12-14 18:15:51 +01:00
Javi Martín
0de8c884ac
Extract method to sort investments by heading
2018-12-14 17:26:54 +01:00
Julian Herrero
6439be44f1
change CRUD for budget groups and headings
...
To make it more consistent with the rest of the Admin panel,
the CRUD for budget groups and headings has been changed
from the old "all-in-one" form to a separate form for each resource.
2018-12-14 16:34:54 +01:00
Julian Herrero
25e1afea48
fix map rendering for budget headings
2018-12-14 15:37:22 +01:00
decabeza
df221b43a0
Fixes hound warnings on legislation processes
2018-12-12 18:23:11 +01:00
Javier Martín
8bcf713d10
Merge pull request #3100 from consul/backport-2743-add_milestones_to_legislation_processes
...
Add milestones to legislation processes
2018-12-12 15:12:36 +01:00
Javi Martín
b95ca9df8a
Add milestones to legislation process view
2018-12-11 20:18:53 +01:00
Javi Martín
03dc43a500
Manage legislation process milestones
2018-12-11 20:18:53 +01:00
Javi Martín
2fcbee6261
Manage proposal milestones
2018-12-11 20:09:47 +01:00
Javi Martín
d3f11c3b55
Add search form to proposals admin index
2018-12-11 20:09:30 +01:00
Javi Martín
4770217373
Add proposals index in admin
2018-12-11 20:09:30 +01:00
Julian Nicolas Herrero
6aa54d6c62
Merge branch 'master' into content_blocks_for_headings
2018-12-11 16:40:25 +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
Javier Martín
feb4af21c7
Merge pull request #3083 from consul/backport-milestone_polymorphic_path
...
Make milestones controller polymorphic
2018-12-10 18:37:15 +01:00
Javier Martín
d90f068c73
Merge pull request #3085 from consul/backport-1196-fix_flaky_legislation_random_order_spec
...
Fix flaky spec: Legislation Proposals Each user has a different and consistent random proposals order
2018-12-05 19:16:43 +01:00
Javier Martín
fc5a5e58de
Merge pull request #3073 from consul/backport-rename_hidden_proposals
...
[Backport] Rename Admin::Proposals to Admin::HiddenProposals
2018-12-05 13:30:23 +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
Javi Martín
35c18688e5
Remove obsolete method
...
It was used in the `Translatable` concern, but it isn't used there
anymore.
2018-12-05 12:28:36 +01:00
Javi Martín
ae22cd247a
Use milestoneable to find/create a milestone
...
This way we simplify the code and avoid strange cases like `params[:id]`
having an ID which doesn't belong to the current milestoneable.
2018-12-05 12:28:36 +01:00
Javi Martín
c4448faf70
Move milestones code to admin/milestones
...
All milestone controllers will inherit from `AdminMilestonesController`,
and all views will render the same content.
2018-12-05 12:28:34 +01:00
Javi Martín
2e778b4073
Use milestoneable instead of investment
2018-12-05 12:23:57 +01:00
Javi Martín
2c2831beb0
Use polymorphic paths for milestones
2018-12-05 12:23:52 +01:00
decabeza
37da986014
Adds settings for featured proposals
2018-12-04 18:04:36 +01:00
decabeza
609d2083f8
Changes proposals controller to always load featured proposals
2018-12-04 17:46:46 +01:00
Javi Martín
5cfc1592e4
Use %w[] instead of %w{}
...
As defined in our rubocop rules.
2018-11-30 18:04:55 +01:00
Javi Martín
45a41a7528
Rename Admin::Proposals to Admin::HiddenProposals
...
The same way we do it with users and budget investments.
2018-11-30 18:04:55 +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
Marko Lovic
81f516efd7
Change BudgetInvestmentStatus to Milestone::Status
...
Generalize the BudgetInvestmentStatus model to Milestone::Status so it
is not specific to budget investments, but can be used for any entity
which has milestones. This is in preparation to make the Milestone
model polymorphic and usable by entities other than budget investments.
2018-11-30 14:15:21 +01:00
Milber Champutiz Burbano
9f455b9165
Added feature to add content block to headings in sidebar -- rebase
2018-11-27 09:37:35 -05:00
Raimond Garcia
ed9e501ae7
Merge branch 'master' into add_map_to_heading_page
2018-11-27 11:07:16 +01:00
Raimond Garcia
2ef83619c3
Merge pull request #3048 from jaflutz/2930-draft-phase-processes
...
Adds draft phase functionality in legislation processes
2018-11-27 11:01:27 +01:00
decabeza
3670859fa3
Removes unused admin poll officers views, routes and controller
2018-11-22 11:40:11 +01:00
João Lutz
34b58a5208
Adds draft phase functionality in legislation processes
2018-11-19 22:18:50 -02: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
voodoorai2000
5856af03a5
Fix exception when no available milestones
...
We were getting an exception when quering[1] for milestones which were not present, due to for example having a publication date later than today
Adding a `try` statement and spec to avoid this situation
[1] 82efc3dd66/app/controllers/budgets/executions_controller.rb (L16)
2018-11-07 18:08:10 +01:00
María Checa
126941a335
Change headings reorder method
2018-11-06 13:02:35 +01:00
María Checa
d089cc14a5
Add logic to handle budget investments with an execution process
2018-11-06 13:02:35 +01:00
Marko Lovic
997db67104
Refactor how headings are ordered
2018-11-06 13:02:35 +01:00
Marko Lovic
375fbf775f
Order non-city headings by alphabetical order
2018-11-06 13:02:35 +01:00
Marko Lovic
4758c1b91a
Show city heading in first position on executions list
2018-11-06 13:02:35 +01:00