taitus
08383b9cac
Send new notification email after publish Proposal
...
After publish a proposal send email to proposal's author with information text and new actions available.
2019-03-21 12:29:30 +01:00
taitus
5177adb32a
New rake task for proposals to send new action email
...
Execute rake task every day to detect new actions available for not archived proposals. If there are new actions available for today, send email to proposal's author with information text, new actions available and link to proposal dashboard url.
2019-03-21 12:29:28 +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
taitus
c959e078b8
Send new action notification email after create Proposal
...
After create a proposal send email to proposal's author with information text and new actions available.
2019-03-20 11:50:47 +01:00
taitus
868c37ef35
Detect new actions for proposals
...
Create new Dashboard::Action class method to detect new actions between yesterday and today for a proposal.
- Published proposal: Only detect new actions with "published_proposal" field eq true
- Draft proposal: Only detect new actions with "published_proposal" field eq false
2019-03-20 11:50:46 +01:00
decabeza
3f1d3f3443
Fix hound warnings
2019-03-19 18:24:49 +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
taitus
9fac661f0c
Create scope by_proposal
...
Add to active_for class method and to active_resources controller method the new scope by_proposal.
- Published proposal: display all actions.
- Draft proposal: only display actions for draft proposals.
2019-02-10 00:18:50 +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
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
Julian Herrero
ef835bef1c
new algorithm for filter 'most active'
2018-12-13 11:42:22 +01:00
decabeza
534ef9c492
Hides process on index if draft dates match with date current
2018-12-12 18:23:17 +01:00