Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Remove Add-on Version from /metrics. Closes #3609 (#3656)
Browse files Browse the repository at this point in the history
* remove version metrics query

* remove version table

* bug fix (Unexpected token)

* Update model.js
  • Loading branch information
Apply55gx authored and ianb committed Oct 20, 2017
1 parent 8913d58 commit e702b22
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
18 changes: 0 additions & 18 deletions server/src/pages/metrics/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,24 +118,6 @@ const queries = {
{title: "Days the user has been creating shots", name: "days_plus_1"}
]
},

addonVersion: {
title: "Add-on Version",
description: "The version of the add-on used during login, in the last 14 days",
sql: `
SELECT COUNT(DISTINCT devices.id) AS count, devices.last_addon_version, last_login_day
FROM devices, date_trunc('day', last_login) AS last_login_day
WHERE CURRENT_TIMESTAMP - devices.last_login < INTERVAL '14 days'
GROUP BY devices.last_addon_version, last_login_day
ORDER BY devices.last_addon_version DESC, last_login_day DESC;
`,
columns: [
{title: "Number of users logging in", name: "count"},
{title: "Add-on version", name: "last_addon_version"},
{title: "Day", type: "date", name: "last_login_day"}
]
}

};

function executeQuery(query) {
Expand Down
2 changes: 0 additions & 2 deletions server/src/pages/metrics/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ class Body extends React.Component {
<GenericTable data={this.props.data.retention} />

<GenericTable data={this.props.data.retentionTotal} />

<GenericTable data={this.props.data.addonVersion} />
</reactruntime.BodyTemplate>
);
}
Expand Down

0 comments on commit e702b22

Please sign in to comment.