Julian Herrero
83e129d5b7
Fix failing tests
...
If tests run very fast all votes are created within the last 24
hours, so hot_score has the same value if the creation date for the
votes is Time.current or 1.day.ago.
Creating the votes 48 hours ago we make sure hot_score has the
correct value and the tests pass correctly.
2019-04-17 17:40:56 +02:00
rgarcia
f23fd6f3bb
Remove parameterise deprecation warning
...
DEPRECATION WARNING: Passing the separator argument as a positional
parameter is deprecated and will soon be removed. Use `separator: '_'`
instead.
2019-04-17 17:40:55 +02:00
rgarcia
aeb84108bc
Verify poll ballots
2019-04-10 18:29:01 +02:00
rgarcia
1eaa5cc77b
stores the heading where the user has voted
2019-04-10 18:15:43 +02:00
María Checa
394177213c
Adds Ballot Sheet model and business logic
2019-04-10 16:04:39 +02:00
Javier Martín
3ccdf039e4
Merge pull request #3344 from consul/backport-budget_ballots
...
Allow voting Budget Investments in booths
2019-04-09 13:54:00 +02:00
lalo
237a03552f
Move admin budget investments tabs filters to advanced filters component
2019-04-03 22:27:48 +02:00
rgarcia
7dd314c699
Do not display polls associated to a budget in admin poll questions
...
This section is used to select to which poll a question belongs to.
Budget polls are not meant to include questions that come from Citizen
Proposals or Government Questions, thus we do not display them
2019-04-03 22:20:01 +02:00
Javi Martín
f7f9fc15a5
Move todays_booths_for_officer to the model
...
This way we can easily add a test which will fail if by accident we
change the method to use `Date.today`. Until now using `Date.today`
would only fail if we ran specs in a time zone with a different date.
2019-03-28 15:49:17 +01:00
Bertocq
31428a5847
Add booth and officing assigments presence validation for booth votes, unskip specs
2019-03-28 15:47:52 +01:00
Javier Martín
0fd9570ea8
Merge pull request #3384 from consul/backport-simplify_poll_factories
...
Simplify poll factories
2019-03-20 14:32:47 +01:00
Julian Herrero
9ed6aae348
Refactor Setting model
...
- Make easier to group settings by using prefixes
- Add method to rename setting keys
- Add method to remove setting keys
2019-03-19 15:14:08 +01:00
Javi Martín
8118926ba7
Simplify tests creating poll voters
2019-03-19 13:29:43 +01:00
Javi Martín
4a3115607a
Simplify poll stats test
...
Adding the option to assign a poll to a poll recount factory meant we
didn't need to create so much data.
Also note we're removing the `create(:poll_voter, origin: "booth")`
code, since it isn't used in the stats calculations.
2019-03-19 13:24:24 +01:00
rgarcia
8125d470de
Add methods to obtain polls votable by a user
2019-03-06 17:42:46 +01:00
decabeza
4a532bf807
Use activerecord translations on admin legislation processes
2019-03-05 17:43:39 +01:00
Alberto
098f4b6c5f
Merge pull request #3328 from consul/admin-settings
...
Improve Admin settings section
2019-02-27 10:49:54 +01:00
Javi Martín
c5c56ad969
Use a virtual attribute to get valuation tags
...
It was strange to set the valuation tags using `valuation_tag_list=` but
then accessing the valuation tags using `tag_list_on(:valuation)`.
2019-02-26 14:16:10 +01:00
decabeza
8066b96fe3
Remove legacy banner images and banner styles settings
2019-02-25 14:59:38 +01:00
Julian Herrero
31ac8b7f55
Change single quotes to double quotes
2019-02-15 11:40:39 +01:00
Julian Nicolas Herrero
4a12425987
Merge pull request #3296 from consul/make_budgets_translatable
...
[Backport] Make budgets translatable
2019-02-13 19:01:13 +01:00
Julian Herrero
a963a99c55
Use correct scope to sort headings by name
2019-02-13 13:35:09 +01:00
Julian Herrero
29a704bd60
Show headings in budgets landing page when translations are missing
2019-02-13 13:35:09 +01:00
Julian Herrero
922600252c
Make budget headings translatable
2019-02-13 13:35:07 +01:00
Julian Herrero
1c35ec99c1
Make budget groups translatable
2019-02-13 12:30:37 +01:00
Julian Herrero
d76782f150
Make budgets translatable
2019-02-13 11:41:58 +01:00
decabeza
73a0f999ad
Add order to voted headings names
2019-02-12 17:19:36 +01:00
decabeza
3471cbb979
Fix hound warnings
2019-02-12 17:19:26 +01:00
Marko Lovic
e47cbe2a10
Extract "supported headings" logic to User method
...
In preparation to use this method from views where
it doesn't make sense for it to be associated with
a specific investment.
2019-02-12 17:16:29 +01:00
Alberto
f9b18667e6
Merge pull request #3280 from consul/next-filters
...
[Backport] Removes next/incoming filters
2019-02-11 20:43:09 +01:00
decabeza
060a4c684f
Remove legislation processes next filter
2019-02-08 14:29:43 +01:00
decabeza
bc1679550b
Remove incoming polls filter
2019-02-08 14:28:19 +01:00
Julian Herrero
54e59a8a58
LegacyLegislation migration cleanup
...
These legacy models are not used anymore.
2019-02-06 17:07:38 +01:00
decabeza
eb169ca435
Add models tag spec with 160 chars
2019-02-05 17:41:00 +01:00
rgarcia
9951d303d3
makes sure tagging_count is decreased when hidden a taggable
2019-02-05 17:41:00 +01:00
decabeza
cdb66ce23c
Refactor header process colors specs
2019-01-30 13:17:35 +01:00
decabeza
2695e19e2f
Fix hound warnings
2019-01-29 17:54:02 +01:00
Alberto
41fe1e3922
Merge pull request #3152 from NahiaSolutions/add_image_to_legislation_processes
...
Add image to legislation processes and banner colors
2019-01-29 16:06:54 +01:00
Alberto
bd4826b25e
Merge branch 'master' into add_cards_to_custom_pages
2019-01-28 14:49:39 +01:00
Alberto
c297595e49
Merge branch 'master' into add_image_to_legislation_processes
2019-01-28 14:49:19 +01:00
Manu
14d64e94d0
rspec tests were added for the process banner
2019-01-21 12:02:27 -05:00
Javi Martín
2926e4e375
Fix managing widget cards for homepage
...
The condition `params[:page_id] != 0` didn't work properly when editing
the homepage because in that case the parameter was `nil`, and the line
`SiteCustomization::Page.find(@card.site_customization_page_id)` raised
an exception because it couldn't find a page with a `nil` ID.
Fixing the issue while maintaining the check against `0` lead to complex
code, and so allowing `nil` in the database and assuming cards with no
`site_customization_page_id` belonged in the homepage seemed to be the
easiest solution.
2019-01-21 10:40:14 -05:00
Manu
162b61f94c
updated test file for cards
2019-01-18 09:54:43 -05:00
Javi Martín
eaea95ccfb
Add progress bar model
2019-01-18 14:17:12 +01:00
Julian Herrero
ab1e9a9310
Fix typo
2019-01-14 18:48:31 +01:00
Julian Herrero
2081269a67
fix Hound violations
2019-01-02 10:46:31 +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
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
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
Julian Herrero
25e1afea48
fix map rendering for budget headings
2018-12-14 15:37:22 +01:00