Raimond Garcia
d583c93ebf
Merge pull request #3118 from consul/rubocop-not-to
...
Apply Rubocop not_to rule
2018-12-19 12:47:37 +01:00
Javier Martín
51f72ca812
Merge pull request #3113 from consul/fix_scroll
...
Fix scroll jump voting investments
2018-12-19 12:39:49 +01:00
Raimond Garcia
ea435ac56c
Merge pull request #3112 from consul/rubocop_not_to
...
Add not_to Rubocop rule
2018-12-19 11:29:44 +01:00
voodoorai2000
b8cc7c5389
Apply rubocop not_to rule
2018-12-19 11:23:53 +01:00
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
Julian Herrero
5f8558a636
optimize task reset_hot_score
2018-12-18 18:08:53 +01:00
Julian Herrero
7a690acf6c
fix flaky spec
...
bin/rspec --seed 53044
Failures:
1) Budget Investments Balloting Phase Confirm
Failure/Error: expect(page).not_to have_content "#{sp3.price}"
expected not to find text "100" in "Global Group - Global Heading You still have €999,989 to invest. Amount spent €11 Budget Investment 1006 title €10 Budget Investment 1005 title €1"
# ./spec/features/budgets/investments_spec.rb:1466:in `block (4 levels) in <top (required)>'
# ./spec/features/budgets/investments_spec.rb:1458:in `block (3 levels) in <top (required)>'
# -e:1:in `<main>'
Failed examples:
rspec ./spec/features/budgets/investments_spec.rb:1419 # Budget Investments Balloting Phase Confirm
2018-12-18 17:56:32 +01:00
Javi Martín
ef9f271c89
Fix scroll jump voting budget investments
...
Removing the padding in the investments header nav bar means it doesn't
leave any empty space when its position changes to a fixed one.
2018-12-18 13:25:51 +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
ff9a32c0a5
code reviewed
2018-12-15 18:04:24 +01:00
dperez
bef404c443
add homepage for legislation processes
2018-12-15 18:04:24 +01:00
voodoorai2000
c1455cb93c
Add not_to Rubocop rule to Hound
...
https://www.rubydoc.info/gems/rubocop-rspec/1.5.0/RuboCop/Cop/RSpec/NotToNot
2018-12-15 12:41:07 +01:00
voodoorai2000
7917cea676
Change to_not for not_to
...
Eventhough some of us sentimentals still like the syntax `to_not` the current trend is to move to the new syntax `not_to`.
In this commit we are updating the references of expectations that used `to_not` to `not_to`.
2018-12-15 12:33:28 +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
8fb8f70efd
cleanup (due to new CRUD for budget groups and headings)
2018-12-14 15:37:25 +01:00
Julian Herrero
25e1afea48
fix map rendering for budget headings
2018-12-14 15:37:22 +01:00
voodoorai2000
f4c402c3cb
Merge remote-tracking branch 'upstream/capistrano'
2018-12-14 10:42:08 +01:00
Alberto
b701a86c1b
Merge pull request #3105 from consul/draft-processes
...
[Backport] Draft phase on legislation processes
2018-12-13 15:53:11 +01:00
Julian Nicolas Herrero
1be64a5dc3
Merge pull request #3098 from consul/backport-1742-new_most_active_algorithm
...
[Backport] New algorithm for filter 'most active'
2018-12-13 12:46:18 +01:00
Javier Martín
e1620dfe8d
Merge pull request #3103 from consul/backport-update_legislation_milestone_form
...
Edit only existing languages in milestones summary
2018-12-13 12:09:10 +01:00
Javier Martín
0e252b618f
Merge pull request #3102 from consul/backport-milestone_status_texts
...
Update milestone status texts
2018-12-13 12:07:47 +01:00
Javier Martín
33ea9219ae
Merge pull request #3101 from consul/backport-fix_milestone_validation
...
Fix milestone validation
2018-12-13 12:05:31 +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
e7ab3778b5
Merge pull request #3104 from consul/seeds-widgets
...
[Backport] Widgets dev seeds
2018-12-13 07:14:39 +01:00
decabeza
534ef9c492
Hides process on index if draft dates match with date current
2018-12-12 18:23:17 +01:00
decabeza
df221b43a0
Fixes hound warnings on legislation processes
2018-12-12 18:23:11 +01:00
decabeza
c7309369b4
Updates deprecated constants on dev_seed widgets
2018-12-12 18:07:38 +01:00
Javi Martín
449f810255
Edit only existing languages in milestones summary
...
Adding languages using this form would result in validation errors since
there's no way to fill in the title for the new translation.
2018-12-12 15:15:01 +01:00
Javi Martín
70b4225542
Extract partial to display language tabs
2018-12-12 15:15:00 +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
Javier Martín
908c06bece
Merge pull request #3099 from consul/backport-2740-add_milestones_to_proposals
...
Add milestones to proposals
2018-12-12 15:05:01 +01:00
Javier Martín
a1df90c1b7
Merge pull request #3097 from consul/fix_milestone_translations_migration
...
Fix budget investment milestone translations migration
2018-12-12 14:48:59 +01:00
Javi Martín
1ff6390950
Fix proposal info rendering for managers
...
We were looking for the partial in management/proposals/info instead of
proposals/info.
2018-12-12 13:43:03 +01:00
Julian Herrero
01033e5371
change coordinates to make the map to be centered in Madrid
2018-12-12 11:00:16 +01:00
Javi Martín
041e1f3f7b
Remove obsolete reference to investment milestones
2018-12-11 20:27:54 +01:00
Javi Martín
f96cab2f1c
Update references to investment status
...
We've made milestone status polymorphic, and so the texts need to be
updated.
2018-12-11 20:27:54 +01:00
Javi Martín
dca95d608f
Display description validation error in milestones
...
We had a validation rule for milestones which made sure either the
status or the description was present. However, since the description is
now translatable, the validation error wasn't being displayed in the
admin form.
Moving the validation rule to the translation object fixes the problem.
However, the translation object needs to check an attribute in the
milestone object in order to know whether the description is required or
not. This is tricky because by default it loads the milestone object
from the database, meaning it doesn't work with new records and it
ignores params sent by the browser.
The solution is to manually assign the globalized model before
validating the object. It's a hack, but apparently Rails doesn't provide
a better way to handle this case [1].
[1] https://github.com/rails/rails/issues/32024
2018-12-11 20:25:38 +01:00
Javi Martín
6974b7d03a
Remove redundant specs
...
The same cases are tested in the previous `describe` block.
2018-12-11 20:25:38 +01:00
Javi Martín
281155dde5
Remove duplicate spec
2018-12-11 20:25:37 +01:00
Javi Martín
a42f5fab37
Add milestones summary to legislation processes
2018-12-11 20:19:48 +01:00
Javi Martín
b95ca9df8a
Add milestones to legislation process view
2018-12-11 20:18:53 +01:00
Javi Martín
87f7e6aa2e
Extract milestones content into a partial
...
We aren't going to use the `.tabs-panel` part when rendering milestones
in legislation processes.
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