Closed pchainho closed 7 years ago
The policy engine also require an API to visualize, set or configure policies and user options.
Eventually we can have a runtime module or specific Hyperty to interact with the management API. This Hyperty would then be used by applications, which can provide custom graphical interfaces.
Shouldn't this admin UI be part of the Core Runtime itself and to be provided by the runtime provider?
I guess we should provide an API to configure Id Module, Graph Connector and policy engine in ReTHINK.js so that that the developer can decide the way it sets the required params. Does it make sense to you? We would provide also a demo GUI for testing purposes.
Thanks, @antonroman
If I understood you well, I agree. ie these management APIs would be part of the core runtime. On the other side, the GUI itself could also be part of the core runtime, but depending on the runtime type, they would be served in different ways. See what I've proposed at https://github.com/reTHINK-project/core-framework/issues/160#issue-127496881
Yes, what you propose in the initial comment https://github.com/reTHINK-project/core-framework/issues/160#issue-127496881 sounds good to me.
Having the core runtime providing a native GUI is interesting, specially to assure that the functionality can be used. Nevertheless, it should be effortless for some one to provide a different GUI (using the management APIs) and have it able to be used.
@dvilchez pls check whether this is possible in the Runtime Core iFrame.
@pchainho I was thinking about that, and I guess we have a bunch of options to face this problem, but the most straightforward to me, as app developer, would be a public API to get and set the configuration and an option (maybe another library) where I can activate a demo UI while I'm developing or debugging my app.
Answering your question, from my point of view, yes we can.
For security reasons we have agreed not to give apps access to Core Components settings API.
@dvilchez Your proposal for a debug view is interesting.
Last monday we have discussed about having runtime gui source code in the Browser Runtime. The idea is to have a small settings icon in, say, upper right corner, that on click, a separated Admin Window/Tab is opened. @antonroman ? @dvilchez ?
Some Runtime Core Components like Id Module and Graph Connector (any other?) will require some UI to set or configure some data including:
It is proposed for each component to have a management API that would be used by different GUI clients according to the runtime type: