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: [DHIS2-17956] Display name for org unit in changelog #3826

Merged
merged 12 commits into from
Oct 15, 2024

Conversation

henrikmv
Copy link
Contributor

@henrikmv henrikmv commented Oct 2, 2024

DHIS2-17956:

  • checks whether the clientValue is submitted as a string or an object. From the changelog, the variable is sent as a string, but before these changes, the converting function only expected to get in an object with id

@henrikmv henrikmv marked this pull request as ready for review October 14, 2024 09:07
@henrikmv henrikmv requested a review from a team as a code owner October 14, 2024 09:07
@@ -88,9 +87,10 @@ function convertStatusForDisplay(clientValue: Object) {
);
}

function convertOrgUnitForDisplay(clientValue: { id: string }) {
function convertOrgUnitForDisplay(clientValue: string | Object) {
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: improve the flow type clientValue: string | {id: string}

Copy link

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 and 2.41.2 versions

@henrikmv henrikmv merged commit 5299f37 into master Oct 15, 2024
39 checks passed
@henrikmv henrikmv deleted the hv/feat/DHIS2-17956_DisplayNameForOrgUnitInChangelog branch October 15, 2024 13:08
dhis2-bot added a commit that referenced this pull request Oct 15, 2024
# [101.12.0](v101.11.2...v101.12.0) (2024-10-15)

### Features

* [DHIS2-17956] Display name for org unit in changelog ([#3826](#3826)) ([5299f37](5299f37))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 101.12.0 🎉

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

Successfully merging this pull request may close these issues.

4 participants