Fixes #226
Achievements query returns executed proposed actions. Progress graph do not shows the achievements.
This commit is contained in:
@@ -175,10 +175,10 @@
|
|||||||
grid: {
|
grid: {
|
||||||
y: {
|
y: {
|
||||||
lines: this.goals
|
lines: this.goals
|
||||||
},
|
|
||||||
x: {
|
|
||||||
lines: this.achievements
|
|
||||||
}
|
}
|
||||||
|
//x: {
|
||||||
|
// lines: this.achievements
|
||||||
|
//}
|
||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
position: 'right'
|
position: 'right'
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class ProposalAchievementsQuery
|
|||||||
.joins(:proposal_dashboard_action)
|
.joins(:proposal_dashboard_action)
|
||||||
.includes(:proposal_dashboard_action)
|
.includes(:proposal_dashboard_action)
|
||||||
.where(proposal: proposal, executed_at: start_date.beginning_of_day..end_date.end_of_day)
|
.where(proposal: proposal, executed_at: start_date.beginning_of_day..end_date.end_of_day)
|
||||||
.where(proposal_dashboard_actions: { action_type: 1 })
|
.where(proposal_dashboard_actions: { action_type: 0 })
|
||||||
.order(executed_at: :asc)
|
.order(executed_at: :asc)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user