Table of Contents | ||
---|---|---|
|
RDQA Metadata Transfer
Program Metadata Tansfer
The metadata from a DHIS2 program contains items necessary for rendering within the enabled DHIS2 server. The DHIS2 server includes an Import/Export tool to generate a JSON or CSV file with all configurations in the server. However, certain attributes may need cleaning to prevent errors during import to the target server. These attributes typically involve references to users that don’t exist in the target server. To streamline the process and avoid manual deletion of each attribute, we can use the Program Configuration App (PCA). You can read more about the PCA here.
...
Check the Summary Table to ensure that there are no issues.
Once the process has been completed without any problems, click on the ‘Start Import’ button.
Verify that the RDQA already exists on the server using the Maintenance App.
...
Dashboards Transfer
RDQA Program has some Dashboard used to review the Program and review the data over time, those Objects are not included in the RDQA Metadata, so we need to use the Import/Export tool in the source server.
Log in into the source server
Open the Import/Export tool
Select Metadata Dependency Export
Select ‘Dashboard’ in the Object Type field
Type ‘RDQA’ on the object field
Check the followings options
JSON
Uncompressed
Skip sharing and access settings
Click on the ‘Export Metadata Dependencies’ button
...
we need to open the JSON file using any tool to modify code, we recommend use VSCode , once the file has been opened, we need to eliminate the following attributes:
lastUpdatedBy
createdBy
...
Once the JSON file has been cleaned, we import the JSON in the target File
Verify the Summary Report to ensure there are no issues
Verify the Dashboard has been created properly
...
Preparing Organisation Units [Both OU match UIDs, OU do not match]
...