Skip to content

Commit

Permalink
Merge branch 'master' into 36.x
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenrikoverland committed Mar 12, 2021
2 parents 9242a27 + b07f248 commit 43c4842
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [35.20.19](https://github.com/dhis2/data-visualizer-app/compare/v35.20.18...v35.20.19) (2021-03-12)


### Bug Fixes

* use VISUALIZATION_VIEW ([#1662](https://github.com/dhis2/data-visualizer-app/issues/1662)) ([05e2798](https://github.com/dhis2/data-visualizer-app/commit/05e2798906c1d924e9ce09f96f9eca05a5b90191))

## [35.20.18](https://github.com/dhis2/data-visualizer-app/compare/v35.20.17...v35.20.18) (2021-03-12)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "data-visualizer",
"description": "DHIS2 Data Visualizer",
"private": true,
"version": "35.20.18",
"version": "35.20.19",
"workspaces": [
"packages/*"
],
Expand Down
4 changes: 2 additions & 2 deletions packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "data-visualizer-app",
"version": "35.20.18",
"version": "35.20.19",
"description": "DHIS2 Data Visualizer app",
"license": "BSD-3-Clause",
"private": true,
Expand All @@ -17,7 +17,7 @@
"@dhis2/app-runtime": "^2.8.0",
"@dhis2/d2-i18n": "^1.1.0",
"@dhis2/d2-ui-interpretations": "^7.1.6",
"@dhis2/data-visualizer-plugin": "35.20.18",
"@dhis2/data-visualizer-plugin": "35.20.19",
"@dhis2/ui": "^6.5.5",
"@material-ui/icons": "^3.0.1",
"d2": "^31.9.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/api/dataStatistics.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { onError } from './index'

const EVENT_TYPE_CHART_VIEW = 'CHART_VIEW'
export const EVENT_TYPE = 'VISUALIZATION_VIEW'

const dataStatisticMutation = {
resource: 'dataStatistics',
params: ({ id }) => ({
favorite: id,
eventType: EVENT_TYPE_CHART_VIEW,
eventType: EVENT_TYPE,
}),
type: 'create',
}
Expand Down
5 changes: 4 additions & 1 deletion packages/app/src/api/mostViewedVisualizations.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
// TODO move into component StartScreen?

import { EVENT_TYPE } from './dataStatistics'

// most likely is not needed anywhere else
export const apiFetchMostViewedVisualizations = (dataEngine, pageSize) => {
const visualizationQuery = {
resource: 'dataStatistics/favorites',
params: {
eventType: 'VISUALIZATION_VIEW',
eventType: EVENT_TYPE,
pageSize: pageSize || 10,
},
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dhis2/data-visualizer-plugin",
"version": "35.20.18",
"version": "35.20.19",
"description": "DHIS2 Data Visualizer plugin",
"main": "./build/cjs/index.js",
"module": "./build/es/index.js",
Expand Down

0 comments on commit 43c4842

Please sign in to comment.