Implements #138 and #139

Implements graph with supports for the given  period.
This commit is contained in:
Juan Salvador Pérez García
2018-06-20 12:01:58 +02:00
parent 03e8d36fd1
commit 89f3da25b9
17 changed files with 398 additions and 262 deletions

View File

@@ -50,6 +50,15 @@ class ProposalsDashboardController < ApplicationController
end
end
def stats
authorize! :dashboard, proposal
end
def supports
authorize! :dashboard, proposal
render json: ProposalSupportsQuery.for(params)
end
private
def proposal_executed_dashboard_action_params