Skip to content

Commit

Permalink
mirage always include stats
Browse files Browse the repository at this point in the history
  • Loading branch information
velrest committed Aug 6, 2018
1 parent db9842e commit d89584a
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions frontend/mirage/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export default function() {
'/proxy/rt/tickets',
(
{ rtTickets },
{ queryParams: { page_size: pageSize, page, status, search, statistics } }
{ queryParams: { page_size: pageSize, page, status, search } }
) => {
let tickets = rtTickets.all()

Expand All @@ -228,18 +228,16 @@ export default function() {

let json = _pagination(tickets, page, pageSize)

if (statistics) {
json.meta.statistics = {
in_progress: 132,
all: 393,
states: {
new: 21,
open: 89,
stalled: 92,
resolved: 21,
rejected: 2,
deleted: 83
}
json.meta.statistics = {
in_progress: 132,
all: 393,
states: {
new: 21,
open: 89,
stalled: 92,
resolved: 21,
rejected: 2,
deleted: 83
}
}

Expand Down

0 comments on commit d89584a

Please sign in to comment.