Skip to content

Commit

Permalink
feat: use separate column for track and artists for track count table
Browse files Browse the repository at this point in the history
  • Loading branch information
mashb1t committed May 26, 2022
1 parent 4402467 commit 3acb4b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"iteration": 1646411549896,
"iteration": 1653581109794,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -2618,33 +2618,17 @@
]
}
},
{
"id": "calculateField",
"options": {
"alias": "track, artist",
"mode": "reduceRow",
"reduce": {
"include": [
"track",
"artists"
],
"reducer": "allValues"
},
"replaceFields": false
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"artists": true,
"track": true
"artists": false,
"track": false
},
"indexByName": {
"artists": 1,
"duration_ms (count)": 3,
"track": 0,
"track, artist": 2
"artists": 0,
"duration_ms (count)": 2,
"track": 1
},
"renameByName": {
"artists": "",
Expand Down Expand Up @@ -2910,6 +2894,6 @@
"timezone": "",
"title": "All Users",
"uid": "spotisights-admin",
"version": 20,
"version": 21,
"weekStart": ""
}
30 changes: 7 additions & 23 deletions grafana/dashboards/spotisights/spotify-insights-current-user.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"iteration": 1646413551100,
"iteration": 1653580999242,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -2618,33 +2618,17 @@
]
}
},
{
"id": "calculateField",
"options": {
"alias": "track, artist",
"mode": "reduceRow",
"reduce": {
"include": [
"track",
"artists"
],
"reducer": "allValues"
},
"replaceFields": false
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"artists": true,
"track": true
"artists": false,
"track": false
},
"indexByName": {
"artists": 1,
"duration_ms (count)": 3,
"track": 0,
"track, artist": 2
"artists": 0,
"duration_ms (count)": 2,
"track": 1
},
"renameByName": {
"artists": "",
Expand Down Expand Up @@ -2905,6 +2889,6 @@
"timezone": "",
"title": "Current User",
"uid": "spotisights",
"version": 9,
"version": 14,
"weekStart": ""
}

0 comments on commit 3acb4b4

Please sign in to comment.