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

fix: load extended data whenever an event layer is shown in datatable #3076

Closed
wants to merge 6 commits into from

Conversation

jenniferarnesen
Copy link
Collaborator

@jenniferarnesen jenniferarnesen commented Dec 9, 2023

Fixes: https://dhis2.atlassian.net/browse/DHIS2-16269

The reason this was happening was because the layer Id was not being checked before showing the new data table, so the effect to load extended was not triggered.

Instead of having data table trigger loading the extended data through an useEffect, load the extended data in the Event Loader, and have datatable wait until that data is loaded.

Main changes are in:

  1. LayersLoader (checking if extended data needs loading): https://github.com/dhis2/maps-app/pull/3076/files#diff-44bc0dab44d3316d2cdc1282fbbc52adeb00bfa4422fa9b5173afa6971ca4227R28
  2. DataTable (removing the loading effect)

@dhis2-bot
Copy link
Contributor

dhis2-bot commented Dec 9, 2023

🚀 Deployed on https://pr-3076--dhis2-maps.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify December 9, 2023 13:12 Inactive
Copy link

cypress bot commented Dec 9, 2023

1 failed test on run #2898 ↗︎

1 55 15 0 Flakiness 0

Details:

Merge 472c02b into def0e0c...
Project: maps Commit: 7a23a42692 ℹ️
Status: Failed Duration: 03:36 💡
Started: Jan 29, 2024 10:51 AM Ended: Jan 29, 2024 10:54 AM
Failed  cypress/integration/datatable.cy.js • 1 failed test • e2e-chrome-parallel-2.40

View Output Video

Test Artifacts
Data table > opens the data table for a Thematic layer Screenshots Video

Review all test suite changes for PR #3076 ↗︎

@dhis2-bot dhis2-bot temporarily deployed to netlify December 20, 2023 09:43 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify January 12, 2024 10:55 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify January 29, 2024 10:45 Inactive
@jenniferarnesen
Copy link
Collaborator Author

Fixed for v40 in #3015

@jenniferarnesen jenniferarnesen deleted the fix/datatable-event-extended-data branch February 12, 2024 14:51
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.

2 participants