Skip to content

feat: data output period types (DHIS2-21001)#3458

Open
janhenrikoverland wants to merge 11 commits intomasterfrom
feat/data-output-period-types
Open

feat: data output period types (DHIS2-21001)#3458
janhenrikoverland wants to merge 11 commits intomasterfrom
feat/data-output-period-types

Conversation

@janhenrikoverland
Copy link
Collaborator

@janhenrikoverland janhenrikoverland commented Mar 2, 2026

Implements DHIS2-21001

Requires dhis2/analytics#1801

Description

Uses useDataOutputPeriodTypes from @dhis2/analytics (^29.3.0) to get server-configured period display labels on v43+.

Adds OVERRIDE_METADATA reducer action so server labels can overwrite the default translated ones.

Plugin waits for period type config before fetching data, then injects custom names into analytics responses.

Adds missing test mocks for the new hook.

Quality checklist

Add N/A to items that are not applicable.

  • Dashboard tested
  • Cypress and/or Jest tests added/updated
  • N/A Docs added
  • Tester approved (@edoardo)

After

Screenshot_2026-03-06_17-49-46

@dhis2-bot
Copy link
Contributor

dhis2-bot commented Mar 3, 2026

🚀 Deployed on https://pr-3458.data-visualizer.netlify.dhis2.org

@dhis2-bot dhis2-bot temporarily deployed to netlify March 3, 2026 10:25 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 6, 2026 09:11 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 6, 2026 11:57 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 6, 2026 12:13 Inactive
edoardo
edoardo previously approved these changes Mar 6, 2026
@janhenrikoverland janhenrikoverland marked this pull request as ready for review March 6, 2026 16:52
@dhis2-bot dhis2-bot temporarily deployed to netlify March 6, 2026 16:58 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 6, 2026 17:01 Inactive
@janhenrikoverland janhenrikoverland added the e2e record Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud label Mar 6, 2026
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 6, 2026

@cypress
Copy link

cypress bot commented Mar 6, 2026

data-visualizer-app    Run #3130

Run Properties:  status check failed Failed #3130  •  git commit a98c16d42d ℹ️: Merge e866736bf5dc37189606edf0bc55c102bd8452b4 into 7786ab0d3ccffd9a1828db0d60e4...
Project data-visualizer-app
Branch Review feat/data-output-period-types
Run status status check failed Failed #3130
Run duration 10m 56s
Commit git commit a98c16d42d ℹ️: Merge e866736bf5dc37189606edf0bc55c102bd8452b4 into 7786ab0d3ccffd9a1828db0d60e4...
Committer Jan Henrik Øverland
View all properties for this run ↗︎

Test results
Tests that failed  Failures 3
Tests that were flaky  Flaky 4
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 740
View all changes introduced in this branch ↗︎

Tests for review

Failed  cypress/integration/dimensions/period.cy.js • 1 failed test • e2e-chrome-parallel-41-2

View Output Video

Test Artifacts
Period dimension > using period settings > works correctly when "weekly" is hidden Test Replay Screenshots Video
Failed  cypress/integration/dimensions/period.cy.js • 1 failed test • e2e-chrome-parallel-42-2

View Output Video

Test Artifacts
Period dimension > using period settings > works correctly when "weekly" is hidden Test Replay Screenshots Video
Failed  cypress/integration/dimensions/period.cy.js • 1 failed test • e2e-chrome-parallel-40-2

View Output Video

Test Artifacts
Period dimension > using period settings > works correctly when "weekly" is hidden Test Replay Screenshots Video
Flakiness  cypress/integration/dimensions/data.cy.js • 1 flaky test • e2e-chrome-parallel-40-4

View Output Video

Test Artifacts
Data dimension > displays Event data items correctly Test Replay Screenshots Video
Flakiness  cypress/integration/dimensions/data.cy.js • 2 flaky tests • e2e-chrome-parallel-41-4

View Output Video

Test Artifacts
Data dimension > displays Data elements correctly Test Replay Screenshots Video
Data dimension > displays Event data items correctly Test Replay Screenshots Video
Flakiness  cypress/integration/dimensions/data.cy.js • 1 flaky test • e2e-chrome-parallel-42-4

View Output Video

Test Artifacts
Data dimension > displays Indicators correctly Test Replay Screenshots Video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e record Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants