-
Notifications
You must be signed in to change notification settings - Fork 182
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
#2058 moved unit measurement definitions to backend #2905
Conversation
} | ||
} | ||
|
||
return gson.toJson(unitDescriptionList); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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!
@IsaakKrut great that you found this and thanks for the PR. |
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