Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] [NRC] Add support for GL Beneficiaries data sets #330

Open
wants to merge 4 commits into
base: development
Choose a base branch
from

Conversation

tokland
Copy link

@tokland tokland commented Aug 27, 2024

📌 References

📝 Implementation

| dataSet                             | categoryCombo
| ------------------------------------------------------------------------------------|
| Normal                              | Project / CC(PhaseOfEmergency) / TargetActual |
|                                     |                                               |
| GL-Beneficiaries by Core Competency |           CC(PhaseOfEmergency) / TargetActual |
| GL-Beneficiaries Total by Location  |                                  TargetActual |
| GL-Beneficiaries by Project         | Project-ALL                    / TargetActual |

This PR adds support to export/import spreadsheets for the 3 GL-Beneficiaries data sets. Note that the categoryCombo->categories for these data Sets are a subset of what we already have for a normal project dataSet (project + phaseOfEmergency + targetActual), so we can expand the code and template.

  • Implement changes in NRCModule template.
  • Implement changes in NRCModule metadata.
  • Changes in NRC xlsx template (update formulas, make project B1 now a selector that fills B2)

🔥 Tested

As user Test.Goran:

  • Import/Export: GL-Beneficiaries by Core Competency
  • Import/Export: GL-Beneficiaries Total by Location
  • Import/Export: GL-Beneficiaries by Project
  • Import/Export: IQFM1931 (German Development Bank (KFW)) DataSet

I needed to do some small changes to the metadata to be able to complete the full process:

  • Add dataInputPeriods to the GL data Sets so the selector is filled (otherwise is empty, not possible to select any period)
  • remove closeData for project categoryOptions
  • set dataSet.expiryDays = 0
  • remove dataInputPeriods opening/closing dates limitations.

📑 Deploy

  • Build and deploy bulk-load.zip
  • Login to DHIS2 with some user with admin rights in Bulk Load
  • Bulk Load -> Settings > Template Configuration -> Templates
  • Search template "NRC" (+ sort by Type) -> Edit
  • Data Source Configuration -> File -> Click on the current xlsx file -> select NRCmodule_v1-gl-support.xlsx (
    NRCmodule_v1-gl-support.xlsx)

@tokland tokland marked this pull request as ready for review August 27, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant