-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:dhis2/dhis2-core into DHIS2-13334_2
- Loading branch information
Showing
123 changed files
with
1,951 additions
and
767 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,9 +33,6 @@ | |
* @author Ameen Mohamed <[email protected]> | ||
*/ | ||
public interface ProgramTempOwnerService { | ||
|
||
String ID = ProgramTempOwnerService.class.getName(); | ||
|
||
/** | ||
* Adds program temp owner | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,9 +33,6 @@ | |
* @author Ameen Mohamed <[email protected]> | ||
*/ | ||
public interface ProgramTempOwnerStore { | ||
|
||
String ID = ProgramTempOwnerStore.class.getName(); | ||
|
||
/** | ||
* Adds program temp owner record | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
...main/resources/data-integrity-checks/datasets/datasets_custom_data_entry_forms_empty.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Copyright (c) 2004-2022, University of Oslo | ||
# All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# Redistributions of source code must retain the above copyright notice, this | ||
# list of conditions and the following disclaimer. | ||
# | ||
# Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# Neither the name of the HISP project nor the names of its contributors may | ||
# be used to endorse or promote products derived from this software without | ||
# specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
# | ||
--- | ||
name: datasets_custom_data_entry_forms_empty | ||
description: Datasets which have custom data entry forms which are empty. | ||
section: Data sets | ||
section_order: 3 | ||
summary_sql: >- | ||
WITH rs as ( | ||
SELECT a.uid,a.name,b.name as comment from dataset a | ||
INNER JOIN ( | ||
SELECT dataentryformid, name from dataentryform WHERE | ||
length(replace(htmlcode, ' ', '')) = 0 OR htmlcode IS NULL) b | ||
ON a.dataentryform = b.dataentryformid) | ||
select count(*) as value, | ||
100*count(*) / NULLIF( (select count(*) from dataset),0) as percent | ||
from rs; | ||
details_sql: >- | ||
SELECT a.uid,a.name,b.name as comment from dataset a | ||
INNER JOIN ( | ||
SELECT dataentryformid, name from dataentryform WHERE | ||
length(replace(htmlcode, ' ', '')) = 0 OR htmlcode IS NULL) b | ||
ON a.dataentryform = b.dataentryformid; | ||
severity: WARNING | ||
introduction: > | ||
Custom data entry forms can be created with HTML code to provide | ||
a richer data entry experience for users. This check identifies | ||
datasets which have custom data entry forms that are empty. This | ||
may cause issues during data entry. | ||
details_id_type: dataSets | ||
recommendation: > | ||
If the dataset should have a custom data entry form, be sure to | ||
populate the HTML code field in the data entry form. If the dataset | ||
should not have a custom data entry form, you should assign delete | ||
the form and create a section form instead. |
79 changes: 79 additions & 0 deletions
79
.../main/resources/data-integrity-checks/programs/programs_custom_data_entry_form_empty.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Copyright (c) 2004-2022, University of Oslo | ||
# All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# Redistributions of source code must retain the above copyright notice, this | ||
# list of conditions and the following disclaimer. | ||
# | ||
# Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# Neither the name of the HISP project nor the names of its contributors may | ||
# be used to endorse or promote products derived from this software without | ||
# specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
# | ||
--- | ||
name: programs_custom_data_entry_forms_empty | ||
description: Programs which have custom data entry forms which are empty. | ||
section: Programs | ||
section_order: 1 | ||
summary_sql: >- | ||
WITH rs as ( | ||
SELECT p.uid,p.name, a.name as comment | ||
from programstage a | ||
INNER JOIN program p ON a.programid = p.programid | ||
INNER JOIN ( | ||
SELECT dataentryformid, name from dataentryform WHERE | ||
length(replace(htmlcode, ' ', '')) = 0 OR htmlcode IS NULL) b | ||
ON a.dataentryformid = b.dataentryformid | ||
UNION | ||
SELECT a.uid, a.name, 'Enrollment' as comment | ||
from program a | ||
INNER JOIN ( | ||
SELECT dataentryformid, name from dataentryform WHERE | ||
length(replace(htmlcode, ' ', '')) = 0 OR htmlcode IS NULL) b | ||
ON a.dataentryformid = b.dataentryformid | ||
) | ||
select count(*) as value, | ||
100.0 * count(*) / NULLIF( (select count(*) from program),0) as percent | ||
from rs; | ||
details_sql: >- | ||
SELECT p.uid,p.name, a.name as comment | ||
from programstage a | ||
INNER JOIN program p ON a.programid = p.programid | ||
INNER JOIN ( | ||
SELECT dataentryformid, name from dataentryform WHERE | ||
length(replace(htmlcode, ' ', '')) = 0 OR htmlcode IS NULL) b | ||
ON a.dataentryformid = b.dataentryformid | ||
UNION | ||
SELECT a.uid, a.name, 'Enrollment' as comment | ||
from program a | ||
INNER JOIN ( | ||
SELECT dataentryformid, name from dataentryform WHERE | ||
length(replace(htmlcode, ' ', '')) = 0 OR htmlcode IS NULL) b | ||
ON a.dataentryformid = b.dataentryformid; | ||
severity: WARNING | ||
introduction: > | ||
Custom data entry forms can be created with HTML code to provide | ||
a richer data entry experience for users. This check identifies | ||
any program stages which have custom data entry forms that are empty. This | ||
may cause issues during data entry. | ||
details_id_type: programs | ||
recommendation: > | ||
If the program stage, or event program, should have a custom data entry form, be sure to | ||
populate the HTML code field in the data entry form. If the program stage or event program | ||
should not have a custom data entry form, you should assign delete | ||
the empty custom form and create an appropriate form instead. |
Oops, something went wrong.