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

#2058 moved unit measurement definitions to backend #2905

Conversation

IsaakKrut
Copy link
Contributor

@IsaakKrut IsaakKrut commented May 28, 2024

Purpose

Closes #2058

Remarks

I compared the contents of the unit-provider.service.ts and what already exists in the backend and the lists of Unit Descriptions were identical

PR introduces (a) breaking change(s): no

PR introduces (a) deprecation(s): no

@github-actions github-actions bot added java Pull requests that update Java code ui Anything that affects the UI backend Everything that is related to the StreamPipes backend labels May 28, 2024
}
}

return gson.toJson(unitDescriptionList);
Copy link
Member

Choose a reason for hiding this comment

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

Do you know if there is a reason why we return a serialized string instead of a List<UnitDescription>?
Then the REST API could serialize the result value automatically.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure, the other units endpoint is implemented like that. Would you like me to remove manual serialization for this one?

Copy link
Member

Choose a reason for hiding this comment

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

Thanks, this would be great!

@dominikriemer
Copy link
Member

@IsaakKrut great that you found this and thanks for the PR.
I raised one question in the comment above.

@dominikriemer dominikriemer added this to the 0.97.0 milestone May 31, 2024
@dominikriemer dominikriemer merged commit 1a8c6d2 into apache:dev May 31, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Everything that is related to the StreamPipes backend java Pull requests that update Java code ui Anything that affects the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move unit measurement definition to backend
2 participants