-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathsettingsKeyMapping.js
More file actions
826 lines (820 loc) · 29.1 KB
/
settingsKeyMapping.js
File metadata and controls
826 lines (820 loc) · 29.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
import i18n from '@dhis2/d2-i18n'
const canBeOverridenLabel = i18n.t(
'This setting can be overridden by user settings'
)
const parseLocale = (localeString) => {
const [language, country] = (localeString ?? 'en').split(/[-_]/)
return `${language}${country ? `-${country}` : ''}`
}
const parsedLocale = parseLocale(i18n.language)
const formatNumber = (value) =>
new Intl.NumberFormat(parsedLocale).format(value)
/**
* This file provides information about DHIS2 system settings and configuration options that are not otherwise
* available through the API.
*
* Each system settings key is mapped to an i18n label. In addition, certain special system
* settings that are not actually saved as system settings but rather as system configuration options are described
* here as well. This concerns any key that has a "configuration" property which is set to `true`.
*
* Settings that have an `appendLocale: true` property, are localizable settings. When these settings are saved, the
* code of the specified locale, such as "fr" or "ar_IQ" is appended to the key name.
*/
const settingsKeyMapping = {
/* ============================================================================================================ */
/* Category: General */
/* ============================================================================================================ */
keyAnalyticsMaxLimit: {
// Analytics
label: i18n.t('Maximum number of analytics records'),
type: 'dropdown',
options: {
50000: formatNumber(50000),
100000: formatNumber(100000),
200000: formatNumber(200000),
500000: formatNumber(500000),
1000000: formatNumber(1000000),
0: i18n.t('Unlimited'),
},
},
keySqlViewMaxLimit: {
label: i18n.t('Maximum number of SQL view records'),
type: 'dropdown',
options: {
'-1': i18n.t('Unlimited'),
50000: formatNumber(50000),
100000: formatNumber(100000),
200000: formatNumber(200000),
500000: formatNumber(500000),
1000000: formatNumber(1000000),
},
},
infrastructuralIndicators: {
label: i18n.t('Infrastructural indicators'),
configuration: true,
type: 'dropdown',
source: 'indicatorGroups',
},
infrastructuralDataElements: {
label: i18n.t('Infrastructural data elements'),
configuration: true,
type: 'dropdown',
source: 'dataElementGroups',
},
infrastructuralPeriodType: {
label: i18n.t('Infrastructural period type'),
configuration: true,
type: 'dropdown',
options: {
Daily: i18n.t('Daily'),
Weekly: i18n.t('Weekly'),
Monthly: i18n.t('Monthly'),
BiMonthly: i18n.t('Bi-monthly'),
Quarterly: i18n.t('Quarterly'),
SixMonthly: i18n.t('Six-monthly'),
SixMonthlyApril: i18n.t('Six-monthly April'),
Yearly: i18n.t('Yearly'),
FinancialApril: i18n.t('Financial-April'),
FinancialJuly: i18n.t('Financial-July'),
FinancialOct: i18n.t('Financial-Oct'),
},
},
feedbackRecipients: {
label: i18n.t('Feedback recipients'),
configuration: true,
type: 'dropdown',
source: 'userGroups',
includeEmpty: true,
emptyLabel: i18n.t('No message recipients'),
},
systemUpdateNotificationRecipients: {
label: i18n.t('System update notification recipients'),
configuration: true,
type: 'dropdown',
source: 'userGroups',
includeEmpty: true,
emptyLabel: i18n.t('No update notification recipients'),
},
offlineOrganisationUnitLevel: {
label: i18n.t('Max offline organisation unit levels'),
configuration: true,
type: 'dropdown',
source: 'organisationUnitLevels',
},
factorDeviation: {
label: i18n.t('Data analysis std dev factor'),
validators: ['positive_number'],
},
phoneNumberAreaCode: {
label: i18n.t('Phone number area code'),
validators: ['number'],
},
multiOrganisationUnitForms: {
label: i18n.t('Enable multi-organisation unit forms'),
type: 'checkbox',
},
keyAcceptanceRequiredForApproval: {
label: i18n.t('Acceptance required before approval'),
type: 'checkbox',
},
keyGatherAnalyticalObjectStatisticsInDashboardViews: {
label: i18n.t('Gather analytical object statistics in dashboard views'),
type: 'checkbox',
},
keyCountPassiveDashboardViewsInUsageAnalytics: {
label: i18n.t(
'Include passive dashboard views in usage analytics statistics'
),
type: 'checkbox',
},
/* ============================================================================================================ */
/* Category: Analytics */
/* ============================================================================================================ */
keyAnalysisRelativePeriod: {
label: i18n.t('Default relative period for analysis'),
type: 'dropdown',
options: {
THIS_WEEK: i18n.t('This week'),
LAST_WEEK: i18n.t('Last week'),
LAST_4_WEEKS: i18n.t('Last 4 weeks'),
LAST_12_WEEKS: i18n.t('Last 12 weeks'),
LAST_52_WEEKS: i18n.t('Last 52 weeks'),
THIS_MONTH: i18n.t('This month'),
LAST_MONTH: i18n.t('Last month'),
MONTHS_THIS_YEAR: i18n.t('Months this year'),
MONTHS_LAST_YEAR: i18n.t('Months last year'),
LAST_3_MONTHS: i18n.t('Last 3 months'),
LAST_6_MONTHS: i18n.t('Last 6 months'),
LAST_12_MONTHS: i18n.t('Last 12 months'),
THIS_BIMONTH: i18n.t('This bi-month'),
LAST_BIMONTH: i18n.t('Last bi-month'),
LAST_6_BIMONTHS: i18n.t('Last 6 bi-months'),
THIS_QUARTER: i18n.t('This quarter'),
LAST_QUARTER: i18n.t('Last quarter'),
QUARTERS_THIS_YEAR: i18n.t('Quarters this year'),
QUARTERS_LAST_YEAR: i18n.t('Quarters last year'),
LAST_4_QUARTERS: i18n.t('Last 4 quarters'),
THIS_SIX_MONTH: i18n.t('This six-month'),
LAST_SIX_MONTH: i18n.t('Last six-month'),
LAST_2_SIXMONTHS: i18n.t('Last 2 six-months'),
THIS_YEAR: i18n.t('This year'),
LAST_YEAR: i18n.t('Last year'),
LAST_5_YEARS: i18n.t('Last 5 years'),
LAST_10_YEARS: i18n.t('Last 10 years'),
THIS_FINANCIAL_YEAR: i18n.t('This financial year'),
LAST_FINANCIAL_YEAR: i18n.t('Last financial year'),
LAST_5_FINANCIAL_YEARS: i18n.t('Last 5 financial years'),
},
},
keyHideDailyPeriods: {
label: i18n.t('Hide daily periods'),
sectionLabel: i18n.t('Hidden period types in analytics apps'),
type: 'checkbox',
},
keyHideWeeklyPeriods: {
label: i18n.t('Hide weekly periods'),
type: 'checkbox',
},
keyHideBiWeeklyPeriods: {
label: i18n.t('Hide biweekly periods'),
type: 'checkbox',
},
keyHideMonthlyPeriods: {
label: i18n.t('Hide monthly periods'),
type: 'checkbox',
},
keyHideBiMonthlyPeriods: {
label: i18n.t('Hide bimonthly periods'),
type: 'checkbox',
},
analyticsFinancialYearStart: {
label: i18n.t('Financial year relative period start month'),
type: 'dropdown',
options: {
FINANCIAL_YEAR_APRIL: i18n.t('April'),
FINANCIAL_YEAR_JULY: i18n.t('July'),
FINANCIAL_YEAR_OCTOBER: i18n.t('October'),
},
},
keyCacheStrategy: {
label: i18n.t('Cache strategy'),
type: 'dropdown',
options: {
NO_CACHE: i18n.t('No cache'),
CACHE_15_MINUTES: i18n.t('Cache for 15 minutes'),
CACHE_30_MINUTES: i18n.t('Cache for 30 minutes'),
CACHE_1_HOUR: i18n.t('Cache for one hour'),
CACHE_6AM_TOMORROW: i18n.t('Cache until 6AM tomorrow'),
CACHE_TWO_WEEKS: i18n.t('Cache for two weeks'),
},
},
keyCacheability: {
label: i18n.t('Cacheability'),
type: 'dropdown',
options: {
PUBLIC: i18n.t('Public'),
PRIVATE: i18n.t('Private'),
},
},
keyAnalyticsCacheTtlMode: {
label: i18n.t('Analytics cache mode'),
type: 'dropdown',
options: {
PROGRESSIVE: i18n.t('Progressive'),
FIXED: i18n.t('Fixed'),
},
},
keyIgnoreAnalyticsApprovalYearThreshold: {
label: i18n.t(
'Max number of years to hide unapproved data in analytics'
),
type: 'dropdown',
options: {
'-1': i18n.t('Never check approval'),
0: i18n.t('Check approval for all data'),
1: i18n.t('Current year only'),
2: i18n.t('Last 2 years'),
3: i18n.t('Last 3 years'),
4: i18n.t('Last 4 years'),
5: i18n.t('Last 5 years'),
6: i18n.t('Last 6 years'),
7: i18n.t('Last 7 years'),
8: i18n.t('Last 8 years'),
9: i18n.t('Last 9 years'),
10: i18n.t('Last 10 years'),
},
},
keyRespectMetaDataStartEndDatesInAnalyticsTableExport: {
label: i18n.t(
'Respect category option start and end date in analytics table export'
),
type: 'checkbox',
},
keyIncludeZeroValuesInAnalytics: {
label: i18n.t('Include zero data values in analytics tables'),
type: 'checkbox',
},
keyAnalyticsCacheProgressiveTtlFactor: {
label: i18n.t('Caching factor'),
type: 'dropdown',
options: {
1: '1',
2: '2',
4: '4',
8: '8',
16: '16',
32: '32',
64: '64',
128: '128',
192: '192',
256: '256',
320: '320',
512: '512',
1024: '1024',
},
hideWhen: {
settingsKey: 'keyAnalyticsCacheTtlMode',
settingsValue: 'FIXED',
},
},
facilityOrgUnitGroupSet: {
label: i18n.t('Org unit group set in facility map layers'),
configuration: true,
type: 'dropdown',
source: 'organisationUnitGroupSets',
},
facilityOrgUnitLevel: {
label: i18n.t('Org unit level in facility map layers'),
configuration: true,
type: 'dropdown',
source: 'organisationUnitLevels',
},
keyDefaultBaseMap: {
label: i18n.t('Default basemap'),
type: 'dropdown',
source: 'basemaps',
options: {
osmLight: i18n.t('OSM Light (default)'),
openStreetMap: i18n.t('OSM Detailed'),
bingLight: i18n.t('Bing Road'),
bingDark: i18n.t('Bing Dark'),
bingAerial: i18n.t('Bing Aerial'),
bingHybrid: i18n.t('Bing Aerial Labels'),
},
},
/* ============================================================================================================ */
/* Category: Server */
/* ============================================================================================================ */
keyDatabaseServerCpus: {
label: i18n.t('Number of database server CPUs'),
type: 'dropdown',
options: {
0: i18n.t('Automatic (detect based on web server)'),
1: '1',
2: '2',
3: '3',
4: '4',
5: '5',
6: '6',
7: '7',
8: '8',
16: '16',
32: '32',
},
},
keySystemNotificationsEmail: {
label: i18n.t('System notifications email address'),
validators: ['email'],
},
googleAnalyticsUA: {
label: i18n.t('Google Analytics (Universal Analytics) key'),
},
keyGoogleMapsApiKey: {
label: i18n.t('Google Maps API key'),
type: 'password',
},
keyBingMapsApiKey: {
label: i18n.t('Bing Maps API key'),
type: 'password',
},
/* ============================================================================================================ */
/* Category: Appearance */
/* ============================================================================================================ */
localizedText: {
type: 'localizedAppearance',
searchLabels: [
i18n.t('Application title'),
i18n.t('Application introduction'),
i18n.t('Application notification'),
i18n.t('Application left-side footer'),
i18n.t('Application right-side footer'),
],
},
applicationTitle: {
label: i18n.t('Application title'),
appendLocale: true,
multiLine: true,
},
keyApplicationIntro: {
label: i18n.t('Application introduction'),
appendLocale: true,
multiLine: true,
},
keyApplicationNotification: {
label: i18n.t('Application notification'),
appendLocale: true,
multiLine: true,
},
keyApplicationFooter: {
label: i18n.t('Application left-side footer'),
appendLocale: true,
multiLine: true,
},
keyApplicationRightFooter: {
label: i18n.t('Application right-side footer'),
appendLocale: true,
multiLine: true,
},
keyStyle: {
label: i18n.t('Style'),
type: 'dropdown',
includeEmpty: false,
userSettingsOverride: true,
searchLabels: [i18n.t('Style'), canBeOverridenLabel],
source: 'styles',
},
startModule: {
label: i18n.t('Start page'),
type: 'dropdown',
source: 'startModules',
},
startModuleEnableLightweight: {
label: i18n.t('Enable light-weight start page'),
type: 'checkbox',
},
helpPageLink: {
label: i18n.t('Help page link'),
validators: ['relative_url'],
},
keyFlag: {
label: i18n.t('Flag'),
type: 'dropdown',
source: 'flags',
},
keyUiLocale: {
label: i18n.t('Interface language'),
type: 'dropdown',
userSettingsOverride: true,
searchLabels: [i18n.t('Style'), canBeOverridenLabel],
source: 'uiLocales',
},
keyDbLocale: {
label: i18n.t('Database language'),
type: 'dropdown',
userSettingsOverride: true,
searchLabels: [i18n.t('Style'), canBeOverridenLabel],
source: 'dbLocales',
},
keyAnalysisDisplayProperty: {
label: i18n.t('Property to display in analysis modules'),
type: 'dropdown',
userSettingsOverride: true,
searchLabels: [i18n.t('Style'), canBeOverridenLabel],
options: {
name: i18n.t('Name'),
shortName: i18n.t('Short name'),
},
},
keyAnalysisDigitGroupSeparator: {
label: i18n.t(
'Default digit group separator to display in analysis modules'
),
type: 'dropdown',
options: {
SPACE: i18n.t('Space'),
COMMA: i18n.t('Comma'),
NONE: i18n.t('None'),
},
},
keyRequireAddToView: {
label: i18n.t('Require authority to add to view object lists'),
type: 'checkbox',
},
loginPageLayout: {
label: i18n.t('Login page theme'),
type: 'dropdown',
options: {
DEFAULT: i18n.t('Default'),
SIDEBAR: i18n.t('Sidebar'),
CUSTOM: i18n.t('Custom'),
},
},
loginPageTemplate: {
label: i18n.t('Login page template'),
multiLine: true,
rowsMax: 10,
},
globalShellEnabled: {
label: i18n.t('Enable Global Shell'),
type: 'checkbox',
},
keyUseCustomLogoFront: {
label: i18n.t('Custom login page logo'),
type: 'staticContent',
name: 'logo_front',
},
keyUseCustomLogoBanner: {
label: i18n.t('Custom top menu logo'),
type: 'staticContent',
name: 'logo_banner',
},
keyDashboardContextMenuItemSwitchViewType: {
label: i18n.t('Allow users to switch dashboard items view type'),
type: 'checkbox',
},
keyDashboardContextMenuItemOpenInRelevantApp: {
label: i18n.t('Allow users to open dashboard items in relevant app'),
type: 'checkbox',
},
keyDashboardContextMenuItemShowInterpretationsAndDetails: {
label: i18n.t(
'Allow users to show dashboard items interpretations and details'
),
type: 'checkbox',
},
keyDashboardContextMenuItemViewFullscreen: {
label: i18n.t('Allow users to view dashboard items in fullscreen'),
type: 'checkbox',
},
/* ============================================================================================================ */
/* Category: Email */
/* ============================================================================================================ */
keyEmailHostName: { label: i18n.t('Host name') },
keyEmailPort: {
label: i18n.t('Port'),
type: 'dropdown',
options: {
587: '587',
465: '465',
25: '25',
},
},
keyEmailUsername: {
label: i18n.t('Username'),
},
keyEmailPassword: {
label: i18n.t('Password'),
type: 'password',
},
keyEmailTls: {
label: i18n.t('TLS'),
type: 'checkbox',
},
keyEmailSender: {
label: i18n.t('Email sender'),
helpText: i18n.t('The address that outgoing messages are sent from.'),
validators: ['email'],
},
emailTestButton: {
label: i18n.t('Send me a test email'),
type: 'postButton',
uri: '/email/test',
},
/* ============================================================================================================ */
/* Category: Access */
/* ============================================================================================================ */
selfRegistrationRole: {
label: i18n.t('Self registration account user role'),
configuration: true,
type: 'dropdown',
source: 'userRoles',
includeEmpty: true,
emptyLabel: i18n.t('Disable self registration'),
},
selfRegistrationOrgUnit: {
label: i18n.t('Self registration account organisation unit'),
configuration: true,
type: 'dropdown',
source: 'organisationUnits',
includeEmpty: true,
emptyLabel: i18n.t('Disable self registration'),
},
keySelfRegistrationNoRecaptcha: {
label: i18n.t('Do not require recaptcha for self registration'),
type: 'checkbox',
},
keyAccountRecovery: {
label: i18n.t('Enable user account recovery'),
type: 'checkbox',
},
keyLockMultipleFailedLogins: {
label: i18n.t(
'Lock user account temporarily after multiple failed login attempts'
),
type: 'checkbox',
},
keyEmbeddedDashboardsEnabled: {
label: i18n.t('Enable embedded dashboards'),
type: 'checkbox',
},
enforceVerifiedEmail: {
label: i18n.t('Enforce verified emails'),
type: 'emailCheckbox',
},
keyCanGrantOwnUserAuthorityGroups: {
label: i18n.t('Allow users to grant own user roles'),
type: 'checkbox',
},
keyAllowObjectAssignment: {
label: i18n.t(
'Allow assigning object to related objects during add or update'
),
type: 'checkbox',
},
credentialsExpires: {
label: i18n.t('Require user account password change'),
type: 'dropdown',
options: {
0: i18n.t('Never'),
3: i18n.t('3 months'),
6: i18n.t('6 months'),
12: i18n.t('12 months'),
},
},
credentialsExpiryAlert: {
label: i18n.t('Send reminders to users before their password expires'),
type: 'checkbox',
},
credentialsExpiresReminderInDays: {
label: i18n.t(
'Number of days before password expiry to send reminder (1–28)'
),
type: 'textfield',
inputType: 'number',
minValue: 1,
maxValue: 28,
hideWhen: {
settingsKey: 'credentialsExpiryAlert',
settingsValue: 'false',
},
},
minPasswordLength: {
label: i18n.t('Minimum characters in password'),
type: 'dropdown',
options: {
8: '8',
10: '10',
12: '12',
14: '14',
},
},
corsWhitelist: {
label: i18n.t('CORS allowlist'),
configuration: true,
multiLine: true,
hintText: i18n.t('One URL per line'),
validators: ['url_array'],
},
recaptchaSite: {
label: i18n.t('reCAPTCHA Site Key'),
type: 'password',
},
recaptchaSecret: {
label: i18n.t('reCAPTCHA Secret Key'),
type: 'password',
},
/* ============================================================================================================ */
/* Category: Calendar */
/* ============================================================================================================ */
keyCalendar: {
label: i18n.t('Calendar'),
type: 'dropdown',
options: {
coptic: i18n.t('Coptic'),
ethiopian: i18n.t('Ethiopian'),
gregorian: i18n.t('Gregorian'),
islamic: i18n.t('Islamic'),
iso8601: i18n.t('ISO 8601'),
julian: i18n.t('Julian'),
nepali: i18n.t('Nepali'),
thai: i18n.t('Thai'),
persian: i18n.t('Persian'),
},
showWarning: true,
warning: {
title: i18n.t('Change calendar setting'),
body: i18n.t(
'Changing your calendar setting after you have entered data can make your system unusable. If you have entered data, it is strongly recommended that you do not change your calendar setting.'
),
cancel: i18n.t('Cancel'),
proceed: i18n.t('Yes, change calendar'),
},
},
keyDateFormat: {
label: i18n.t('Date format'),
type: 'dropdown',
options: {
'yyyy-MM-dd': '1981-03-31 (yyyy-MM-dd)',
'dd-MM-yyyy': '31-03-1981 (dd-MM-yyyy)',
},
},
/* ============================================================================================================ */
/* Category: Data Import */
/* ============================================================================================================ */
keyDataImportStrictPeriods: {
label: i18n.t('Require periods to match period type of data set'),
type: 'checkbox',
},
keyDataImportStrictDataElements: {
label: i18n.t('Require data elements to be part of data set'),
type: 'checkbox',
},
keyDataImportStrictCategoryOptionCombos: {
label: i18n.t(
'Require category option combos to match category combo of data element'
),
type: 'checkbox',
},
keyDataImportStrictOrganisationUnits: {
label: i18n.t(
'Require organisation units to match assignment of data set'
),
type: 'checkbox',
},
keyDataImportStrictAttributeOptionCombos: {
label: i18n.t(
'Require attribute option combos to match category combo of data set'
),
type: 'checkbox',
},
keyDataImportRequireCategoryOptionCombo: {
label: i18n.t('Require category option combo to be specified'),
type: 'checkbox',
},
keyDataImportRequireAttributeOptionCombo: {
label: i18n.t('Require attribute option combo to be specified'),
type: 'checkbox',
},
/* ============================================================================================================ */
/* Category: Synchronization */
/* ============================================================================================================ */
keyRemoteInstanceUrl: {
label: i18n.t('Remote server URL'),
validators: ['url'],
},
keyRemoteInstanceUsername: {
label: i18n.t('Remote server username'),
},
keyRemoteInstancePassword: {
label: i18n.t('Remote server password'),
type: 'password',
},
keyMetadataDataVersioning: {
label: i18n.t('Metadata Versioning'),
type: 'metadataSettings',
},
/* ============================================================================================================ */
/* Category: oAuth2 clients */
/* ============================================================================================================ */
oauth2clients: {
type: 'oauth2clients',
searchLabels: [
'oauth2_clients',
'password',
'refresh_token',
'authorization_code',
],
},
/* ============================================================================================================ */
/* Category: oAuth2 clients v41 */
/* ============================================================================================================ */
oauth2clients41: {
type: 'oauth2clients41',
searchLabels: [
'oauth2_clients',
'password',
'refresh_token',
'authorization_code',
],
},
/* ============================================================================================================ */
/* Category: Scheduled jobs */
/* ============================================================================================================ */
jobsRescheduleAfterMinutes: {
label: i18n.t(
'Number of minutes after which a stale job is reset to scheduled state (1-60)'
),
type: 'textfield',
inputType: 'number',
minValue: 1,
maxValue: 60,
validators: ['positive_number'],
},
jobsCleanupAfterMinutes: {
label: i18n.t(
'Number of minutes after which a completed ad-hoc job is deleted (1+)'
),
type: 'textfield',
inputType: 'number',
minValue: 1,
maxValue: 2147483647,
validators: ['positive_number'],
},
jobsMaxCronDelayHours: {
label: i18n.t(
'Maximum number of hours a job may trigger after its intended time if job has not yet run (1-24)'
),
type: 'textfield',
inputType: 'number',
minValue: 1,
maxValue: 24,
validators: ['positive_number'],
},
jobsLogDebugBelowSeconds: {
label: i18n.t(
'Job execution interval (seconds) below which a job will be logged at debug (rather than info) level (20+)'
),
type: 'textfield',
inputType: 'number',
minValue: 20,
maxValue: 2147483647,
validators: ['positive_number'],
},
/* ============================================================================================================ */
// The following keys are present in the demo database but are not managed by dhis-web-maintenance-settings
//
// 'sendMessageScheduled'
// 'timeSendingMessage'
// 'keyCustomCss'
// 'aggregationStrategy'
// 'zeroValueSaveMode'
// 'reportFramework'
// 'systemSettings'
// 'keyLastSuccessfulSynch'
// 'dataEntryFormCompleted'
// 'keyTrackerDashboardDefaultLayout'
// 'keyLastSuccessfulAnalyticsTablesUpdate'
// 'SMS_CONFIG'
// 'orgUnitGroupSetAggregationLevel'
// 'keyScheduledPeriodTypes'
// 'keyLastSuccessfulResourceTablesUpdate'
// 'keySchedTasks'
// 'applicationIntro'
// 'systemTitle'
// 'keyAccountInvite'
// 'flag'
// 'scheduleAggregateQueryBuilderTackStrategy'
// 'appBaseUrl'
// 'mysetting'
// 'appFolderPath'
// 'keySystemIdentifier'
// 'keyScheduledTasks'
// 'keyLastSuccessfulDataSynch'
// 'appStoreUrl'
// 'App_TabularData_SettingData'
// 'keyLastMonitoringRun'
// 'scheduleAggregateQueryBuilder'
// 'keyDataSetCompletenessTask'
// 'keyDataMartTask'
}
export default settingsKeyMapping