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: [DHIS2-16994] Image and File DE and TEA not Displayed in Changelog #3837

Merged

Conversation

henrikmv
Copy link
Contributor

@henrikmv henrikmv commented Oct 9, 2024

DHIS2-16994:

  • Added support for displaying files and images in the changelog for events and tracked entities.

  • Added asynchronous fetching of previous and current values for files and images in changelog entries using useEffect.

  • Created a new helper file getSubValueForChangelogData.js to handle fetching sub-values for files and images based on the entity type (event, trackedEntity).

  • Fixed a bug where values in the changelog do not utilize available space if the previous value is short and the current value is long.

  • Compared the changelog data to the event/tracked entity data to find out which image or file is the latest

@henrikmv henrikmv marked this pull request as ready for review October 13, 2024 19:08
@henrikmv henrikmv requested a review from a team as a code owner October 13, 2024 19:08
@henrikmv henrikmv marked this pull request as draft October 16, 2024 07:39
…/fix/DHIS2-16994_ImageAndFileDEAndTEANotDisplayedInChangelog
@henrikmv henrikmv marked this pull request as ready for review October 23, 2024 07:09
Copy link
Contributor

@simonadomnisoru simonadomnisoru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The The user can change changelog page size Cypress test is failing. Is this related to your changes @henrikmv? Thanks!

@henrikmv henrikmv added preview e2e record Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud and removed preview labels Oct 25, 2024
Copy link

github-actions bot commented Oct 25, 2024

@henrikmv henrikmv removed e2e-tests e2e record Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud labels Oct 25, 2024
Copy link
Member

@JoakimSM JoakimSM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good overall @henrikmv 👍

Made some comments in one of the files.

@henrikmv henrikmv added testing and removed testing labels Nov 12, 2024
…/fix/DHIS2-16994_ImageAndFileDEAndTEANotDisplayedInChangelog
@henrikmv henrikmv added testing and removed testing labels Nov 13, 2024
Copy link

@geethaalwan geethaalwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested successfully on 2.42,2.41.3 versions

@henrikmv henrikmv added testing and removed testing labels Nov 13, 2024
…/fix/DHIS2-16994_ImageAndFileDEAndTEANotDisplayedInChangelog
…angelog' of https://github.com/dhis2/capture-app into hv/fix/DHIS2-16994_ImageAndFileDEAndTEANotDisplayedInChangelog
@henrikmv henrikmv added testing and removed testing labels Nov 14, 2024
@eirikhaugstulen eirikhaugstulen added e2e record Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud testing and removed testing labels Nov 14, 2024
…/fix/DHIS2-16994_ImageAndFileDEAndTEANotDisplayedInChangelog
@henrikmv henrikmv added testing and removed testing labels Nov 18, 2024
@henrikmv henrikmv merged commit 9327210 into master Nov 19, 2024
35 of 40 checks passed
@henrikmv henrikmv deleted the hv/fix/DHIS2-16994_ImageAndFileDEAndTEANotDisplayedInChangelog branch November 19, 2024 07:56
dhis2-bot added a commit that referenced this pull request Nov 19, 2024
## [101.16.2](v101.16.1...v101.16.2) (2024-11-19)

### Bug Fixes

* [DHIS2-16994] Image and File DE and TEA not Displayed in Changelog ([#3837](#3837)) ([9327210](9327210))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 101.16.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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 released testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants