streampipes
streampipes copied to clipboard
Move unit measurement definition to backend
Body
Currently, our measurement units are only defined in the ui. Let's move them to a dedicated enum in the backend for which we can automatically & continuously generate the typescript representation (see #2055). This would allow us to make use of the measurement units even more.
StreamPipes Committer
I acknowledge that I am a maintainer/committer of the Apache StreamPipes project.
Oh yes, it would be great to remove this from the UI. There should be already everything we need in the backend (in streampipes-measurement-units
, so no need to define an enum with the units) - we just would need to create a REST interface and some asynchronous loading in the UI.
If I'm not mistaken, streampipes-measurement-utils
only has a fraction of the units available in the frontend...
The REST endpoint is even better 👍