Skip to content

Commit ebd8950

Browse files
authored
Merge pull request #1450 from dhis2/DHIS2-19979/orgUnitCentroidsInEventsAnalytics
feat: add orgUnitCentroidsInEventsAnalytics to analytics settings
2 parents c8edaf2 + cb81cde commit ebd8950

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

i18n/en.pot

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ msgstr ""
55
"Content-Type: text/plain; charset=utf-8\n"
66
"Content-Transfer-Encoding: 8bit\n"
77
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
8-
"POT-Creation-Date: 2025-09-24T08:44:28.347Z\n"
9-
"PO-Revision-Date: 2025-09-24T08:44:28.348Z\n"
8+
"POT-Creation-Date: 2025-11-17T22:16:03.463Z\n"
9+
"PO-Revision-Date: 2025-11-17T22:16:03.464Z\n"
1010

1111
msgid "Failed to load: {{error}}"
1212
msgstr "Failed to load: {{error}}"
@@ -909,6 +909,18 @@ msgstr "Enable Gist Overview"
909909
msgid "Clean idle jobs after (in milliseconds)"
910910
msgstr "Clean idle jobs after (in milliseconds)"
911911

912+
msgid "Use centroids for organisation unit polygons in event analytics"
913+
msgstr "Use centroids for organisation unit polygons in event analytics"
914+
915+
msgid ""
916+
"When enabled, event analytics requests that normally return polygons for "
917+
"organisation units will return centroids instead. Improves performance for "
918+
"large datasets."
919+
msgstr ""
920+
"When enabled, event analytics requests that normally return polygons for "
921+
"organisation units will return centroids instead. Improves performance for "
922+
"large datasets."
923+
912924
msgctxt "Application title"
913925
msgid "__MANIFEST_APP_TITLE"
914926
msgstr "System Settings"

src/settingsCategories.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ export const categories = {
141141
{
142142
setting: 'keyDashboardContextMenuItemViewFullscreen',
143143
},
144+
{
145+
setting: 'orgUnitCentroidsInEventsAnalytics',
146+
},
144147
{
145148
setting: 'facilityOrgUnitGroupSet',
146149
},

src/settingsKeyMapping.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,13 @@ const settingsKeyMapping = {
832832
type: 'textfield',
833833
},
834834

835+
orgUnitCentroidsInEventsAnalytics: {
836+
label: i18n.t(
837+
'Use centroids for organisation unit polygons in event analytics'
838+
),
839+
type: 'checkbox',
840+
},
841+
835842
/* ============================================================================================================ */
836843
// The following keys are present in the demo database but are not managed by dhis-web-maintenance-settings
837844
//

0 commit comments

Comments
 (0)