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

feat: Add data element name as a fallback when sorting [DHIS2-18871] #19729

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

muilpp
Copy link
Contributor

@muilpp muilpp commented Jan 20, 2025

Adding data element name as a fallback in case form name is not set when sorting data elements change logs

@muilpp muilpp marked this pull request as ready for review January 20, 2025 19:37
@muilpp muilpp requested a review from a team as a code owner January 20, 2025 19:37
.getItems();

assertNumberOfChanges(7, changeLogs);
assertAll(
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we could have an assertion just to check the order like mapping the changelogs to the order field (if possible) or to the UID and make a comment to show what is the value of the name.
Something like:
expected = List.of("with-option-set", "test-dataleement6", "test-dataelement1", "test-dataelement1", "test-dataelement1", "scheduledAt", "occurredAt")

This way would be easy to understand why the assertion makes sense.

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