o2r-project / o2r-UI

User interface for creating and examining Executable Research Compendia (ERC)
https://o2r.uni-muenster.de/
Apache License 2.0
3 stars 5 forks source link

Move code detection for bindings from front-end to back-end and provide API-endpoint #211

Open njakuschona opened 3 years ago

njakuschona commented 3 years ago

While creating a binding the necessary code for one plot function is detected automatically. This detection works at the moment on the front-end. The detection is implemented with ES6, which does not work on the back-end side. However it will be useful to provide an API endpoint to the detection. And run the detection on the server and just provide the result to the user.

nuest commented 3 years ago

@NJaku01 can you be a bit more specific why ES6 does not work in the backend?

https://nodejs.org/en/docs/es6/

njakuschona commented 3 years ago

NodeJS supports ES6 with generation 13 and up. However, in the bindings we use version 8 https://github.com/o2r-project/o2r-UI/blob/master/ui/bindings/Dockerfile#L22. I have already tried to update it to version 13 some times ago, but it not worked so easy. I just remembered this enhancement, while working with the bindings and wanted to add it here.